Package adams.gui.goe

Class 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 on weka.gui.FileEditor.
    Author:
    Len Trigg (trigg@cs.waikato.ac.nz)
    • Field Detail

      • m_TextLocal

        protected adams.gui.chooser.DirectoryChooserPanel m_TextLocal
        The text field with the key.
    • Constructor Detail

      • DockerDirectoryMappingEditor

        public DockerDirectoryMappingEditor()
    • Method Detail

      • acceptInput

        protected void acceptInput()
        Accepts the input and closes the dialog.
        Overrides:
        acceptInput in class adams.gui.goe.BaseObjectEditor
      • createCustomEditor

        protected JComponent createCustomEditor()
        Gets the custom editor component.
        Overrides:
        createCustomEditor in class adams.gui.goe.BaseObjectEditor
        Returns:
        the editor
      • initForDisplay

        protected void initForDisplay()
        Initializes the display of the value.
        Overrides:
        initForDisplay in class adams.gui.goe.BaseObjectEditor
      • getStringToPaint

        protected String getStringToPaint()
        Returns the string to paint.
        Overrides:
        getStringToPaint in class adams.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 interface adams.gui.goe.CustomStringRepresentationHandler
        Overrides:
        toCustomStringRepresentation in class adams.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 interface adams.gui.goe.CustomStringRepresentationHandler
        Overrides:
        fromCustomStringRepresentation in class adams.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 interface adams.gui.goe.MultiSelectionEditor
        Overrides:
        getSelectedObjects in class adams.gui.goe.BaseObjectEditor
        Parameters:
        parent - the parent container
        Returns:
        the objects