java.lang.Object
de.grogra.pf.ui.edit.SelectionBase
de.grogra.pf.ui.edit.GraphSelectionImpl
- All Implemented Interfaces:
GraphSelection,Selection,Described
-
Field Summary
Fields inherited from class de.grogra.pf.ui.edit.SelectionBase
contextFields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLEFields inherited from interface de.grogra.pf.ui.edit.Selection
DELETABLE, HIERARCHICAL, TRANSFERABLE -
Constructor Summary
ConstructorsConstructorDescriptionGraphSelectionImpl(Context ctx, GraphState[] states, Object[] objects, boolean[] isNode) GraphSelectionImpl(Context ctx, GraphState state, Object obj, boolean asNode) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected PropertyEditorTree.NodecreatePropertyNodes(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceNode) protected PropertyEditorTree.NodecreatePropertyNodesInGroup(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceGroup) protected PropertyEditorTreevoiddelete(boolean includeChildren) Deletes this selection.booleanintReturns the capabilities of this selection.getDescription(String type) Returns the description associated with the giventype.protected PropertyEditorgetEditorFor(Property p, Item item) getGraphState(int i) protected UITreeprotected ObjectgetHierarchySourceRoot(UITree source) protected StringgetObject(int i) protected ListbooleanisNode(int i) intsize()Methods inherited from class de.grogra.pf.ui.edit.SelectionBase
createPropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, getContext, remove, toTransferableMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.pf.ui.edit.Selection
createPropertyEditorComponent, createPropertyEditorMenu, getContext, toTransferable
-
Constructor Details
-
GraphSelectionImpl
-
GraphSelectionImpl
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceGraphSelection
-
getGraphState
- Specified by:
getGraphStatein interfaceGraphSelection
-
getObject
- Specified by:
getObjectin interfaceGraphSelection
-
isNode
public boolean isNode(int i) - Specified by:
isNodein interfaceGraphSelection
-
contains
- Specified by:
containsin interfaceGraphSelection
-
equals
-
getDescription
Description copied from interface:DescribedReturns the description associated with the giventype.typehas to be one of the predefined constants of this interface, the returned value has to conform to the specification of the used constant.- Specified by:
getDescriptionin interfaceDescribed- Parameters:
type- the type of description- Returns:
- the description, or
nullif no description is available
-
getEditorFor
- Overrides:
getEditorForin classSelectionBase
-
getHierarchySource
- Specified by:
getHierarchySourcein classSelectionBase
-
getHierarchySourceRoot
- Specified by:
getHierarchySourceRootin classSelectionBase
-
createTree
- Specified by:
createTreein classSelectionBase
-
createPropertyNodes
protected PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceNode) - Specified by:
createPropertyNodesin classSelectionBase
-
createPropertyNodesInGroup
protected PropertyEditorTree.Node createPropertyNodesInGroup(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceGroup) - Specified by:
createPropertyNodesInGroupin classSelectionBase
-
getLabelFor
- Specified by:
getLabelForin classSelectionBase
-
getProperties
- Specified by:
getPropertiesin classSelectionBase
-
getCapabilities
public int getCapabilities()Description copied from interface:SelectionReturns the capabilities of this selection. The returned value is a combination of the flagsSelection.TRANSFERABLE,Selection.DELETABLE,Selection.HIERARCHICAL.- Specified by:
getCapabilitiesin interfaceSelection- Overrides:
getCapabilitiesin classSelectionBase- Returns:
- this selection's capabilities
-
delete
public void delete(boolean includeChildren) Description copied from interface:SelectionDeletes this selection. The precise semantics of deletion depends on the selection. This method is only invoked if this selection has the capabilitySelection.DELETABLE.- Specified by:
deletein interfaceSelection- Overrides:
deletein classSelectionBase- Parameters:
includeChildren-trueiff children in the hierarchy shall be included
-