java.lang.Object
de.grogra.pf.ui.edit.SelectionBase
de.grogra.pf.ui.edit.FieldSelection
de.grogra.pf.ui.edit.NodeSelection
- 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
ConstructorsConstructorDescriptionNodeSelection(Context ctx, Node object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description, boolean invokeValueForPathChanged) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected FieldPropertycreateProperty(Context c, int i) protected PropertyEditorTreegetDescription(String type) Returns the description associated with the giventype.getGraphState(int index) getObject(int index) booleanisNode(int index) intsize()Methods inherited from class de.grogra.pf.ui.edit.FieldSelection
createPropertyNodes, createPropertyNodesInGroup, equals, getEditorFor, getHierarchySource, getHierarchySourceRoot, getLabelFor, getPropertiesMethods inherited from class de.grogra.pf.ui.edit.SelectionBase
createPropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, delete, getCapabilities, 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, delete, getCapabilities, getContext, toTransferable
-
Constructor Details
-
NodeSelection
public NodeSelection(Context ctx, Node object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description, boolean invokeValueForPathChanged)
-
-
Method Details
-
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- Overrides:
getDescriptionin classFieldSelection- Parameters:
type- the type of description- Returns:
- the description, or
nullif no description is available
-
createTree
- Specified by:
createTreein classSelectionBase
-
createProperty
- Specified by:
createPropertyin classFieldSelection
-
size
public int size()- Specified by:
sizein interfaceGraphSelection
-
getGraphState
- Specified by:
getGraphStatein interfaceGraphSelection
-
getObject
- Specified by:
getObjectin interfaceGraphSelection
-
isNode
public boolean isNode(int index) - Specified by:
isNodein interfaceGraphSelection
-
contains
- Specified by:
containsin interfaceGraphSelection
-