Package adams.gui.goe
Class DockerDirectoryMappingEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- adams.gui.goe.AbstractPropertyEditorSupport
-
- adams.gui.goe.BaseObjectEditor
-
- adams.gui.goe.DockerDirectoryMappingEditor
-
- All Implemented Interfaces:
adams.core.HelpProvider
,adams.gui.goe.CustomStringRepresentationHandler
,adams.gui.goe.InlineEditorSupport
,adams.gui.goe.InlineEditorSupportWithFavorites
,adams.gui.goe.MultiSelectionEditor
,PropertyEditor
public class DockerDirectoryMappingEditor extends adams.gui.goe.BaseObjectEditor implements adams.gui.goe.MultiSelectionEditor
A PropertyEditor for DockerDirectoryMapping objects that lets the user select a directory.
Based onweka.gui.FileEditor
.- Author:
- Len Trigg ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.gui.chooser.DirectoryChooserPanel
m_TextLocal
The text field with the key.
-
Constructor Summary
Constructors Constructor Description DockerDirectoryMappingEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
acceptInput()
Accepts the input and closes the dialog.protected JComponent
createCustomEditor()
Gets the custom editor component.Object
fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation.Object[]
getSelectedObjects(Container parent)
Returns the selected objects.protected String
getStringToPaint()
Returns the string to paint.protected void
initForDisplay()
Initializes the display of the value.String
toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object.-
Methods inherited from class adams.gui.goe.BaseObjectEditor
discardInput, getHelpDescription, getInlineFavoritesClass, getInlineValue, getJavaInitializationString, isInlineEditingAvailable, isInlineFavoritesEnabled, isInlineValueValid, isUnchanged, isValid, paintValue, parse, setInlineValue
-
Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport
addWindowAdapter, cleanUp, closeDialog, createPopup, createTipText, createWindowAdapter, getChosenOption, getCustomEditor, getHelpIcon, getHelpTitle, getHelpURL, getParentDialog, getParentFrame, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource
-
-
-
-
Method Detail
-
acceptInput
protected void acceptInput()
Accepts the input and closes the dialog.- Overrides:
acceptInput
in classadams.gui.goe.BaseObjectEditor
-
createCustomEditor
protected JComponent createCustomEditor()
Gets the custom editor component.- Overrides:
createCustomEditor
in classadams.gui.goe.BaseObjectEditor
- Returns:
- the editor
-
initForDisplay
protected void initForDisplay()
Initializes the display of the value.- Overrides:
initForDisplay
in classadams.gui.goe.BaseObjectEditor
-
getStringToPaint
protected String getStringToPaint()
Returns the string to paint.- Overrides:
getStringToPaint
in classadams.gui.goe.BaseObjectEditor
- Returns:
- the string
- See Also:
BaseObjectEditor.paintValue(Graphics, Rectangle)
-
toCustomStringRepresentation
public String toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object.- Specified by:
toCustomStringRepresentation
in interfaceadams.gui.goe.CustomStringRepresentationHandler
- Overrides:
toCustomStringRepresentation
in classadams.gui.goe.BaseObjectEditor
- Parameters:
obj
- the object to turn into a string- Returns:
- the string representation
-
fromCustomStringRepresentation
public Object fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation.- Specified by:
fromCustomStringRepresentation
in interfaceadams.gui.goe.CustomStringRepresentationHandler
- Overrides:
fromCustomStringRepresentation
in classadams.gui.goe.BaseObjectEditor
- Parameters:
str
- the string to turn into an object- Returns:
- the object
-
getSelectedObjects
public Object[] getSelectedObjects(Container parent)
Returns the selected objects.- Specified by:
getSelectedObjects
in interfaceadams.gui.goe.MultiSelectionEditor
- Overrides:
getSelectedObjects
in classadams.gui.goe.BaseObjectEditor
- Parameters:
parent
- the parent container- Returns:
- the objects
-
-