Package adams.gui.goe
Class MavenArtifactExclusionEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- adams.gui.goe.AbstractPropertyEditorSupport
-
- adams.gui.goe.BaseObjectEditor
-
- adams.gui.goe.MavenArtifactExclusionEditor
-
- All Implemented Interfaces:
HelpProvider
,CustomStringRepresentationHandler
,InlineEditorSupport
,InlineEditorSupportWithFavorites
,MultiSelectionEditor
,PropertyEditor
public class MavenArtifactExclusionEditor extends BaseObjectEditor implements MultiSelectionEditor
Editor specifically designed for entering Maven artifact exclusions.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected JTextComponent
m_TextGroupID
The text field with the group ID.-
Fields inherited from class adams.gui.goe.BaseObjectEditor
m_ButtonHelp, m_TextValue
-
Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport
APPROVE_OPTION, CANCEL_OPTION, EMPTY, m_ChosenOption, m_CustomEditor, m_WindowAdapter, NULL
-
-
Constructor Summary
Constructors Constructor Description MavenArtifactExclusionEditor()
-
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 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, getStringToPaint, 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
-
-
-
-
Field Detail
-
m_TextGroupID
protected JTextComponent m_TextGroupID
The text field with the group ID.
-
-
Method Detail
-
acceptInput
protected void acceptInput()
Accepts the input and closes the dialog.- Overrides:
acceptInput
in classBaseObjectEditor
-
createCustomEditor
protected JComponent createCustomEditor()
Gets the custom editor component.- Overrides:
createCustomEditor
in classBaseObjectEditor
- Returns:
- the editor
-
initForDisplay
protected void initForDisplay()
Initializes the display of the value.- Overrides:
initForDisplay
in classBaseObjectEditor
-
toCustomStringRepresentation
public String toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object.- Specified by:
toCustomStringRepresentation
in interfaceCustomStringRepresentationHandler
- Overrides:
toCustomStringRepresentation
in classBaseObjectEditor
- 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 interfaceCustomStringRepresentationHandler
- Overrides:
fromCustomStringRepresentation
in classBaseObjectEditor
- 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 interfaceMultiSelectionEditor
- Overrides:
getSelectedObjects
in classBaseObjectEditor
- Parameters:
parent
- the parent container- Returns:
- the objects
-
-