|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.tool.base.ToolUtils
public class ToolUtils
Nested Class Summary | |
---|---|
static interface |
ToolUtils.RestorableAction
Provides an action that can be restored to a particular (initial) state. |
Constructor Summary | |
---|---|
ToolUtils()
|
Method Summary | |
---|---|
static JButton |
createCloseButton()
Convenience method to create a close button that closes this dialog. |
static JButton |
createExportButton(ExportAware<?> aToolDialog)
Factory method for creating an "export" button that -upon execution- calls the methods #storeToCsvFile(File, Object) or
#storeToHtmlFile(File, Object) . |
static JButton |
createRunAnalysisButton(ToolDialog aToolDialog)
Factory method for creating a "run analysis" button that -upon execution- creates and starts the tool worker. |
static void |
setComboBoxIndex(JComboBox aComboBox,
int aIndex)
|
static void |
showErrorMessage(Window aParent,
String aMessage)
Convenience method to show an error message. |
static void |
showMessage(Window aParent,
String aMessage)
Convenience method to show a (information) message. |
static void |
showWarningMessage(Window aParent,
String aMessage)
Convenience method to show a warning message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolUtils()
Method Detail |
---|
public static JButton createCloseButton()
StandardActionFactory.CloseAction
instance, never
null
.public static JButton createExportButton(ExportAware<?> aToolDialog)
#storeToCsvFile(File, Object)
or
#storeToHtmlFile(File, Object)
.
null
.public static JButton createRunAnalysisButton(ToolDialog aToolDialog)
null
.public static void setComboBoxIndex(JComboBox aComboBox, int aIndex)
aComboBox
- aIndex
- public static void showErrorMessage(Window aParent, String aMessage)
aParent
- the parent window to use, can be null
;aMessage
- the error message to show, cannot be null
.public static void showMessage(Window aParent, String aMessage)
aParent
- the parent window to use, can be null
;aMessage
- the message to show, cannot be null
.public static void showWarningMessage(Window aParent, String aMessage)
aParent
- the parent window to use, can be null
;aMessage
- the warning message to show, cannot be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |