Package adams.gui.goe.popupmenu
Class AbstractGenericObjectEditorPopupMenuCustomizer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.goe.popupmenu.AbstractGenericObjectEditorPopupMenuCustomizer
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,GenericObjectEditorPopupMenuCustomizer
,Serializable
- Direct Known Subclasses:
Edit
,EncloseBooleanCondition
,EncloseClassifier
,EncloseClusterer
,EncloseConversion
,Favorites
,History
,InvertInstancesColumnFinder
,InvertInstancesRowFinder
,InvertSpreadSheetColumnFinder
,InvertSpreadSheetRowFinder
,PullUpBooleanCondition
,PullUpClassifier
,PullUpClusterer
,PullUpInstancesColumnFinder
,PullUpInstancesRowFinder
,PullUpSpreadSheetColumnFinder
,PullUpSpreadSheetRowFinder
,SwapActor
,Variables
public abstract class AbstractGenericObjectEditorPopupMenuCustomizer extends LoggingObject implements GenericObjectEditorPopupMenuCustomizer
Ancestor for classes that customize the GOE popup menu.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractGenericObjectEditorPopupMenuCustomizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSeparator(GenericObjectEditorPopupMenu menu)
Adds a separator if necessary.void
customize(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.protected abstract void
doCustomize(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.protected abstract boolean
handles(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.gui.goe.popupmenu.GenericObjectEditorPopupMenuCustomizer
getName
-
-
-
-
Method Detail
-
handles
protected abstract boolean handles(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.- Parameters:
menu
- the menu to customizeeditor
- the current editorcomp
- the GUI context
-
addSeparator
protected void addSeparator(GenericObjectEditorPopupMenu menu)
Adds a separator if necessary.- Parameters:
menu
- the menu to add the separator to
-
doCustomize
protected abstract void doCustomize(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.- Parameters:
menu
- the menu to customizeeditor
- the current editorcomp
- the GUI context
-
customize
public void customize(GenericObjectEditorPopupMenu menu, PropertyEditor editor, JComponent comp)
Customizes the GOE popup menu.- Specified by:
customize
in interfaceGenericObjectEditorPopupMenuCustomizer
- Parameters:
menu
- the menu to customizeeditor
- the current editorcomp
- the GUI context
-
-