|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GUIConfigurable
Generically represents an object that can be configured by
the MetamorphoSysGUI.
| Method Summary | |
|---|---|
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that responds to configuration changes. |
Color |
getColor()
Returns the Color that should be used to display
the name. |
GUIConfigurable |
getGUIConfigurableForValidationFailure()
Returns the GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning. |
JPanel |
getHelpPanel()
Returns a JPanel that will be displayed when the
user selects the corresponding menu item from the Help menu
and will provide the user with detailed instructions on the tab's use. |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Returns a JPanel containing configuration options. |
String |
getTabDescription()
Returns the description to be used in conjunction with the panel when presented to the user. |
String[] |
getValidationErrors()
Returns the messages indicating why validation failed. |
String[] |
getValidationWarnings()
Returns warnings that were indicated during validation. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
hasDataChanged()
Indicates whether or not the configuration information has changed. |
void |
removeDataChangeListener(DataChangeListener dcl)
Removes the specified DataChangeListener. |
void |
resetDataChanged()
Sets the data changed flag to false. |
void |
setDataChanged(boolean b)
Sets the value of the data changed flag. |
void |
setPanelSelections()
Updates the view to reflect the data model. |
void |
showOptions()
Presents an advanced options GUI to the user. |
boolean |
validate()
Indicates whether or not the validation rules have passed. |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
getConfigurationDetails, getProperties, resetToDefaults, setConfiguration, setConfiguration, setProperties |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
JPanel getPanel()
JPanel containing configuration options.
JPanel containing configuration optionsboolean hasDataChanged()
true if data has changed;
false otherwisevoid setDataChanged(boolean b)
b - the boolean value for the data changed flagvoid resetDataChanged()
false.
void addDataChangeListener(DataChangeListener dcl)
DataChangeListener that responds to configuration changes.
Allows main GUI to record all changes to
this gui in the undo/redo mechanism.
dcl - the DataChangeListener to addvoid removeDataChangeListener(DataChangeListener dcl)
DataChangeListener.
dcl - the DataChangeListener to removeColor getColor()
Color that should be used to display
the name.
Color that should be used to display the name.String getName()
String getTabDescription()
void showOptions()
boolean hasAdvancedOptions()
true if so; false otherwiseJPanel getHelpPanel()
JPanel that will be displayed when the
user selects the corresponding menu item from the Help menu
and will provide the user with detailed instructions on the tab's use.
JPanel to be used when showing user helpvoid setPanelSelections()
boolean validate()
booleantrue if so;
false otherwiseString[] getValidationErrors()
validate() returns false.
String[] getValidationWarnings()
GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||