Package limn.scene
Enum Class EditCommand
- All Implemented Interfaces:
Serializable,Comparable<EditCommand>,Constable
One of the six commands of an Edit menu, done by whichever widget has the keyboard.
A widget says which of them it can do now and does them, through
Widget.onCanEdit(limn.scene.EditCommand) and Widget.onEdit(limn.scene.EditCommand); Scene.canEdit(limn.scene.EditCommand) and
Scene.edit(limn.scene.EditCommand) ask the focused widget and then its ancestors. A menu's item made for one,
MenuItem.of(MenuItem.Role.COPY), is enabled and acts by them, so a Copy in a menu bar,
in a tool bar and on the keyboard are the same copy.
A 1.x minor release may add constants to this enum: a switch over it needs a
default branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EditCommandReturns the enum constant of this class with the specified name.static EditCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDO
Takes back the last edit. -
REDO
Does again the edit last taken back. -
CUT
Moves the selection to the clipboard. -
COPY
Copies the selection to the clipboard. -
PASTE
Puts the clipboard's content in, over the selection. -
SELECT_ALL
Selects everything the widget holds.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-