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
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
ConstructorsConstructorDescriptionFieldSelection(Context ctx, Object object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, String[] labels, Item description) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FieldPropertycreateProperty(Context c, int i) protected PropertyEditorTree.NodecreatePropertyNodes(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceNode) protected PropertyEditorTree.NodecreatePropertyNodesInGroup(PropertyEditorTree t, Property p, UITree sourceTree, Object sourceGroup) booleangetDescription(String type) Returns the description associated with the giventype.protected PropertyEditorgetEditorFor(Property p, Item item) protected UITreeprotected ObjectgetHierarchySourceRoot(UITree source) protected Stringprotected ListMethods 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: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.- Parameters:
type- the type of description- Returns:
- the description, or
nullif no description is available
-
getHierarchySource
- Specified by:
getHierarchySourcein classSelectionBase
-
getHierarchySourceRoot
- Specified by:
getHierarchySourceRootin 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
-
getEditorFor
- Overrides:
getEditorForin classSelectionBase
-
getProperties
- Specified by:
getPropertiesin classSelectionBase
-
createProperty
-