|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.customattribute.DirectoryLocationEditor
The DirectoryLocationEditor implementation based on a JFileChooser to let users select a directory destination.
| Constructor Summary | |
DirectoryLocationEditor()
Creates the FileEditor. |
|
| Method Summary | |
java.lang.Object |
getComponent(CustomAttributeEditorEnvironment environment)
As a FileEditor we do not return a Component for inplace editing, rather rely on our own implementation, which bases on the JFileChooser. |
java.lang.Object |
getValue()
Returns a File instance from the given text. |
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 DirectoryLocationEditor()
| Method Detail |
public void setValue(java.lang.Object value)
CustomAttributeEditor
setValue in interface CustomAttributeEditorvalue - the value to be edited.CustomAttributeEditor.setValue(Object)public java.lang.Object getValue()
getValue in interface CustomAttributeEditorCustomAttributeEditor.getValue()public 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 editingCustomAttributeEditor.isStandalone()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.CustomAttributeEditor.wasCanceled()public java.lang.Object getComponent(CustomAttributeEditorEnvironment environment)
getComponent in interface CustomAttributeEditorenvironment - The environment with information about where the editor
will be used.
Component to be used as an editor.CustomAttributeEditor.getComponent(CustomAttributeEditorEnvironment)public void showEditor(CustomAttributeEditorEnvironment environment)
CustomAttributeEditor
showEditor in interface CustomAttributeEditorenvironment - The environment with information about where the editor
will be used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||