public class ToolUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ToolUtils.RestorableAction
Provides an action that can be restored to a particular (initial) state.
|
Constructor and Description |
---|
ToolUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.