Class UpdateID<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
- java.lang.Object
-
- adams.gui.visualization.container.datacontainerpanel.AbstractPopupCustomizer<T,M,C>
-
- adams.gui.visualization.container.datacontainerpanel.containerlistpopup.AbstractContainerListPopupCustomizer<T,M,C>
-
- adams.gui.visualization.container.datacontainerpanel.containerlistpopup.UpdateID<T,M,C>
-
- All Implemented Interfaces:
Serializable
public class UpdateID<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer> extends AbstractContainerListPopupCustomizer<T,M,C>
For updating the IDs of the selected containers.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.gui.visualization.container.datacontainerpanel.containerlistpopup.AbstractContainerListPopupCustomizer
AbstractContainerListPopupCustomizer.Context<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
-
-
Field Summary
Fields Modifier and Type Field Description protected IDExtractor
m_LastExtractor
the last extraction used.
-
Constructor Summary
Constructors Constructor Description UpdateID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(AbstractContainerListPopupCustomizer.Context<T,M,C> context, JPopupMenu menu)
Returns a popup menu for the table of the container list.String
getGroup()
The group this customizer belongs to.String
getName()
The name.boolean
handles(DataContainerPanelWithContainerList<T,M,C> panel)
Checks whether this action can handle the panel.protected void
update(AbstractContainerListPopupCustomizer.Context<T,M,C> context)
Allows the user to choose extraction/updating schemes for updating the IDs and the applies them.-
Methods inherited from class adams.gui.visualization.container.datacontainerpanel.containerlistpopup.AbstractContainerListPopupCustomizer
createContext
-
-
-
-
Field Detail
-
m_LastExtractor
protected IDExtractor m_LastExtractor
the last extraction used.
-
-
Method Detail
-
getName
public String getName()
The name.- Specified by:
getName
in classAbstractPopupCustomizer<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
- Returns:
- the name
-
getGroup
public String getGroup()
The group this customizer belongs to.- Specified by:
getGroup
in classAbstractPopupCustomizer<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
- Returns:
- the group
-
handles
public boolean handles(DataContainerPanelWithContainerList<T,M,C> panel)
Checks whether this action can handle the panel.- Specified by:
handles
in classAbstractPopupCustomizer<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
- Parameters:
panel
- the panel to check- Returns:
- true if handled
-
update
protected void update(AbstractContainerListPopupCustomizer.Context<T,M,C> context)
Allows the user to choose extraction/updating schemes for updating the IDs and the applies them.- Parameters:
context
- the current context
-
customize
public void customize(AbstractContainerListPopupCustomizer.Context<T,M,C> context, JPopupMenu menu)
Returns a popup menu for the table of the container list.- Specified by:
customize
in classAbstractContainerListPopupCustomizer<T extends DataContainer,M extends AbstractContainerManager,C extends AbstractContainer>
- Parameters:
context
- the contextmenu
- the popup menu to customize
-
-