Interface JDrawable
- All Known Implementing Classes:
BooleanScalarCheckBoxViewer,ConfirmCommandViewer,DigitalNumberScalarViewer,EnumScalarComboEditor,MultiNumberSpectrumViewer,NumberImageJViewer,NumberImageViewer,NumberScalarCheckBoxViewer,NumberScalarComboEditor,NumberScalarWheelEditor,NumberSpectrumViewer,SignalScalarCheckBoxViewer,SimpleEnumScalarViewer,SimpleScalarViewer,StatusViewer,StringScalarComboEditor,StringScalarEditor,Trend,VoidVoidCommandViewer
public interface JDrawable
An interface that must be implemented by a JComponent which can be edited with JDrawEditor.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetDescription(String extName) Get a description of this extensions.getExtendedParam(String name) Returns the specified parameter value.String[]voidCall after a component of a JDSwingObject is created, this give a default look and feel for editing.booleansetExtendedParam(String name, String value, boolean popupAllowed) Sets the specified param.
-
Method Details
-
initForEditing
void initForEditing()Call after a component of a JDSwingObject is created, this give a default look and feel for editing. -
getComponent
JComponent getComponent()- Returns:
- the JComponent that implements this interface.
-
getExtensionList
String[] getExtensionList()- Returns:
- list of extension name for this objects (Empty array for none).
-
setExtendedParam
Sets the specified param.- Parameters:
name- Parameter name (Case unsensitive).value- Parameter value.popupAllowed- true when the JDrawable should display a popup if the parameter value is incorrect, false otherwise. Note that the JDrawable must not display an error message if the parameter does not exists even if popupAllowed is true.- Returns:
- true if parameters has been succesfully applied, false otherwise.
-
getExtendedParam
Returns the specified parameter value.- Parameters:
name- Param name (Case unsensitive).- Returns:
- Empty string if not exists, the value otherwise.
-
getDescription
Get a description of this extensions.- Parameters:
extName- Extension name- Returns:
- Empty string for no description.
-