|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.customattribute.ItemListAttributeEditor
ItemListAttributeEditor
: Editor forItemListAttributes.
| Constructor Summary | |
ItemListAttributeEditor(java.lang.Object[] items)
Constructor |
|
| Method Summary | |
java.lang.Object |
getComponent(CustomAttributeEditorEnvironment environment)
All those editors which return false in the
isStandalone method *must* return a valid instance of a
Component here to let the AttributeTable layout it as an
in-place editor. |
java.lang.Object |
getValue()
Returns the currently edited value of the editor. |
boolean |
isStandalone()
Returns true for all editors that display a modal dialog for
editing of the value. |
void |
setValue(java.lang.Object value)
Sets the value on the editor. |
void |
showEditor(CustomAttributeEditorEnvironment environment)
This method will be invoked to initiate the editing process. |
boolean |
wasCanceled()
This method is checked right after the showEditor
method returns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ItemListAttributeEditor(java.lang.Object[] items)
items - The items of the combo| Method Detail |
public void setValue(java.lang.Object value)
CustomAttributeEditor
setValue in interface CustomAttributeEditorvalue - the value to be edited.public java.lang.Object getValue()
CustomAttributeEditor
getValue in interface CustomAttributeEditorpublic boolean isStandalone()
CustomAttributeEditortrue for all editors that display a modal dialog for
editing of the value. It returns false if the editor will provide an in-place
editor which will be shown inside of the AttributeEditor.
isStandalone in interface CustomAttributeEditortrue for editors that are using a modal dialog for editingpublic java.lang.Object getComponent(CustomAttributeEditorEnvironment environment)
CustomAttributeEditorfalse in the
isStandalone method *must* return a valid instance of a
Component here to let the AttributeTable layout it as an
in-place editor. If isStandalone returns true, this method
is ignored.
NOTE: the implementation of CustomAttributeEditor is then responsible to delegate the setValue and getValue calls to this Component.
getComponent in interface CustomAttributeEditorenvironment - The environment with information about where the editor
will be used.
Component to be used as an editor.public void showEditor(CustomAttributeEditorEnvironment environment)
CustomAttributeEditor
showEditor in interface CustomAttributeEditorenvironment - The environment with information about where the editor
will be used.public boolean wasCanceled()
CustomAttributeEditorshowEditor
method returns. If an editor returns true, no further changes are made
to the value and the whole editing process is treated as it was canceled
by the user.
wasCanceled in interface CustomAttributeEditortrue, if the editor was canceled.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||