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
context
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
Fields inherited from interface de.grogra.pf.ui.edit.Selection
DELETABLE, HIERARCHICAL, TRANSFERABLE
-
Constructor Summary
ConstructorDescriptionNodeSelection
(Context ctx, Node object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description, boolean invokeValueForPathChanged) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected FieldProperty
createProperty
(Context c, int i) protected PropertyEditorTree
getDescription
(String type) Returns the description associated with the giventype
.getGraphState
(int index) getObject
(int index) boolean
isNode
(int index) int
size()
Methods inherited from class de.grogra.pf.ui.edit.FieldSelection
createPropertyNodes, createPropertyNodesInGroup, equals, getEditorFor, getHierarchySource, getHierarchySourceRoot, getLabelFor, getProperties
Methods inherited from class de.grogra.pf.ui.edit.SelectionBase
createPropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, delete, getCapabilities, getContext, remove, toTransferable
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Described
Returns the description associated with the giventype
.type
has 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:
getDescription
in interfaceDescribed
- Overrides:
getDescription
in classFieldSelection
- Parameters:
type
- the type of description- Returns:
- the description, or
null
if no description is available
-
createTree
- Specified by:
createTree
in classSelectionBase
-
createProperty
- Specified by:
createProperty
in classFieldSelection
-
size
public int size()- Specified by:
size
in interfaceGraphSelection
-
getGraphState
- Specified by:
getGraphState
in interfaceGraphSelection
-
getObject
- Specified by:
getObject
in interfaceGraphSelection
-
isNode
public boolean isNode(int index) - Specified by:
isNode
in interfaceGraphSelection
-
contains
- Specified by:
contains
in interfaceGraphSelection
-