Class AbstractCheckedOperation
- java.lang.Object
-
- org.opennms.features.topology.api.AbstractCheckedOperation
-
- All Implemented Interfaces:
CheckedOperation
,HistoryOperation
,Operation
- Direct Known Subclasses:
AutoRefreshToggleOperation
,HideLeafElementToggleOperation
,InheritStateOperation
,LayoutOperation
,MetaTopologySelectorOperation
,SimulationModeOperation
public abstract class AbstractCheckedOperation extends java.lang.Object implements CheckedOperation
-
-
Field Summary
-
Fields inherited from interface org.opennms.features.topology.api.Operation
OPERATION_CONTEXT_LOCATION, OPERATION_LABEL, OPERATION_MENU_LOCATION
-
-
Constructor Summary
Constructors Constructor Description AbstractCheckedOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
createHistory(GraphContainer container)
By default, save the state based on the checked status of the operation, independent of any currently-selected vertices.boolean
enabled(java.util.List<VertexRef> vertices, OperationContext context)
By default, callenabled(GraphContainer)
protected boolean
enabled(GraphContainer container)
boolean
isChecked(java.util.List<VertexRef> vertices, OperationContext context)
By default, callisChecked(GraphContainer)
protected boolean
isChecked(GraphContainer container)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.features.topology.api.HistoryOperation
applyHistory
-
-
-
-
Method Detail
-
enabled
protected boolean enabled(GraphContainer container)
-
isChecked
protected boolean isChecked(GraphContainer container)
-
enabled
public boolean enabled(java.util.List<VertexRef> vertices, OperationContext context)
By default, callenabled(GraphContainer)
-
isChecked
public boolean isChecked(java.util.List<VertexRef> vertices, OperationContext context)
By default, callisChecked(GraphContainer)
- Specified by:
isChecked
in interfaceCheckedOperation
-
createHistory
public java.util.Map<java.lang.String,java.lang.String> createHistory(GraphContainer container)
By default, save the state based on the checked status of the operation, independent of any currently-selected vertices.- Specified by:
createHistory
in interfaceHistoryOperation
-
-