public static enum ActionList.EntryType extends java.lang.Enum<ActionList.EntryType>
ActionList
.Enum Constant and Description |
---|
ACTION_ID
References a single action to be added.
|
ACTION_LIST_ID
Links an entry to another
ActionList instance. |
ACTION_SET_ID
Points to a collection of
Action s encapsulated in
an ActionSet . |
CUSTOM
Mightiest type to assign to an entry.
|
EMPTY
Inserts an implementation specific placeholder that typically
is roughly the same size as a regular action component for the
current container.
|
GLUE
Inserts an implementation specific 'glue' component that consumes
free space when available.
|
LABEL
Makes the framework insert a
JLabel that will be
localized using the corresponding value as key to obtain
the localized String for JLabel.setText(String) . |
SEPARATOR
Marks the separation of two elements in the list.
|
Modifier and Type | Method and Description |
---|---|
static ActionList.EntryType |
parse(java.lang.String text) |
static ActionList.EntryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActionList.EntryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionList.EntryType SEPARATOR
addSeparator()
methods in the Swing
classes or
add a new instance of JSeparator
depending on the value
of the entry.public static final ActionList.EntryType ACTION_LIST_ID
ActionList
instance. An implementation
specific component (typically a button) will be placed at the
corresponding index that expands the referenced list when clicked.public static final ActionList.EntryType ACTION_SET_ID
Action
s encapsulated in
an ActionSet
. Each element of this collection will be
added in sequential order.public static final ActionList.EntryType ACTION_ID
public static final ActionList.EntryType LABEL
JLabel
that will be
localized using the corresponding value
as key to obtain
the localized String
for JLabel.setText(String)
.public static final ActionList.EntryType EMPTY
public static final ActionList.EntryType GLUE
public static final ActionList.EntryType CUSTOM
When asked to build action based components the framework can
be supplied a Map
of properties. For each placeholder
encountered this map will be queried with the actual value
of the entry as key. When not null
the result will be
handled in the following way:
String
then it will be handled as LABEL
Action
then it will be added directlyActionSet
all its elements will be added sequentiallyActionList
the framework will either wrap the
list into a new implementation specific Component
and add
an Action
responsible for showing this component or it will
"inline" the list into the current construction processComponent
it will be added directly (some members
of the framework might resize the component to fit their requirementspublic static ActionList.EntryType[] values()
for (ActionList.EntryType c : ActionList.EntryType.values()) System.out.println(c);
public static ActionList.EntryType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ActionList.EntryType parse(java.lang.String text)