public abstract class EditorBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DISABLED |
static int |
EXCLUSIVE |
Constructor and Description |
---|
EditorBase(Main main,
EditorManager editManager) |
Modifier and Type | Method and Description |
---|---|
void |
addActions(EditActionMap actions,
SelectionManager selManager)
Adds editing actions that can be provided by this editor, for
a given selection context, to an action map.
|
void |
applyAction(java.lang.String actionCommand,
java.util.LinkedList<ModelComponent> selectedItems,
java.awt.Rectangle popupBounds) |
boolean |
containsDoubleSelection(java.util.LinkedList<ModelComponent> selection,
java.lang.Class<?> cls)
Returns true if the selection list contains two selections, which are both
instances of the specified class.
|
boolean |
containsMultipleCommonParentSelection(java.util.LinkedList<ModelComponent> selection,
java.lang.Class<?> cls)
Returns true if the selection list contains components which are all
instances of a specified class and have the same parent.
|
boolean |
containsMultipleSelection(java.util.LinkedList<ModelComponent> selection,
java.lang.Class<?> cls)
Returns true if the selection list contains components which are all
instances of a specified class.
|
boolean |
containsSingleSelection(java.util.LinkedList<ModelComponent> selection,
java.lang.Class<?> cls)
Returns true if the selection list contains a single component, which is
also an instance of a specified class.
|
public static final int EXCLUSIVE
public static final int DISABLED
public EditorBase(Main main, EditorManager editManager)
public void addActions(EditActionMap actions, SelectionManager selManager)
actions
- action map to which actions are appended.selManager
- used to query the current selection contextpublic void applyAction(java.lang.String actionCommand, java.util.LinkedList<ModelComponent> selectedItems, java.awt.Rectangle popupBounds)
public boolean containsSingleSelection(java.util.LinkedList<ModelComponent> selection, java.lang.Class<?> cls)
public boolean containsMultipleSelection(java.util.LinkedList<ModelComponent> selection, java.lang.Class<?> cls)
public boolean containsMultipleCommonParentSelection(java.util.LinkedList<ModelComponent> selection, java.lang.Class<?> cls)
public boolean containsDoubleSelection(java.util.LinkedList<ModelComponent> selection, java.lang.Class<?> cls)