de.grogra.pf.ui.edit
public interface Selection extends Described
Selection represents a selection for the GUI.
Only instances of Selection may be used as values
of the workbench selection (see
UIProperty.WORKBENCH_SELECTION).| Modifier and Type | Field and Description |
|---|---|
static int |
DELETABLE
Capability flag indicating that this selection can be deleted
by
delete(boolean). |
static int |
HIERARCHICAL
Capability flag indicating that this selection is part of
a hierarchical structure.
|
static int |
TRANSFERABLE
Capability flag indicating that this selection can be converted
to
Transferable via toTransferable(boolean). |
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Modifier and Type | Method and Description |
|---|---|
ComponentWrapper |
createPropertyEditorComponent()
Returns an editor component for the GUI.
|
ComponentWrapper |
createPropertyEditorMenu()
Returns an editor menu component for the GUI.
|
void |
delete(boolean includeChildren)
Deletes this selection.
|
int |
getCapabilities()
Returns the capabilities of this selection.
|
Context |
getContext() |
java.awt.datatransfer.Transferable |
toTransferable(boolean includeChildren)
Converts this selection into
Transferable for the
clipboard. |
getDescriptionstatic final int DELETABLE
delete(boolean).static final int HIERARCHICAL
static final int TRANSFERABLE
Transferable via toTransferable(boolean).ComponentWrapper createPropertyEditorComponent()
ComponentWrapper createPropertyEditorMenu()
void delete(boolean includeChildren)
DELETABLE.includeChildren - true iff children in the hierarchy
shall be includedint getCapabilities()
TRANSFERABLE,
DELETABLE, HIERARCHICAL.Context getContext()
java.awt.datatransfer.Transferable toTransferable(boolean includeChildren)
Transferable for the
clipboard. This method is only invoked if this selection
has the capability TRANSFERABLE.includeChildren - true iff children in the hierarchy
shall be included