java.lang.Object
de.grogra.pf.ui.edit.SelectionBase
de.grogra.pf.ui.edit.FieldSelection
- Direct Known Subclasses:
NodeSelection
,ObjectSelection
-
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
ConstructorDescriptionFieldSelection
(Context ctx, Object object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FieldProperty
createProperty
(Context c, int i) protected PropertyEditorTree.Node
createPropertyNodes
(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceNode) protected PropertyEditorTree.Node
createPropertyNodesInGroup
(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceGroup) boolean
getDescription
(String type) Returns the description associated with the giventype
.protected PropertyEditor
getEditorFor
(Property p, Item item) protected UITree
protected Object
getHierarchySourceRoot
(UITree source) protected String
protected List
Methods inherited from class de.grogra.pf.ui.edit.SelectionBase
createPropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, createTree, delete, getCapabilities, getContext, remove, toTransferable
-
Constructor Details
-
FieldSelection
public FieldSelection(Context ctx, Object object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description)
-
-
Method Details
-
equals
-
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.- Parameters:
type
- the type of description- Returns:
- the description, or
null
if no description is available
-
getHierarchySource
- Specified by:
getHierarchySource
in classSelectionBase
-
getHierarchySourceRoot
- Specified by:
getHierarchySourceRoot
in classSelectionBase
-
createPropertyNodes
protected PropertyEditorTree.Node createPropertyNodes(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceNode) - Specified by:
createPropertyNodes
in classSelectionBase
-
createPropertyNodesInGroup
protected PropertyEditorTree.Node createPropertyNodesInGroup(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceGroup) - Specified by:
createPropertyNodesInGroup
in classSelectionBase
-
getLabelFor
- Specified by:
getLabelFor
in classSelectionBase
-
getEditorFor
- Overrides:
getEditorFor
in classSelectionBase
-
getProperties
- Specified by:
getProperties
in classSelectionBase
-
createProperty
-