|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.actionprovider.ActionOrderList
public class ActionOrderList
These lists are the templates that determine the content, order and structure
of the ActionLists
that are presented
by viewer components.
Certain elements in an ActionOrderList map to certain elements of an ActionList.
At the support class level, there is default ActionOrderList for each areaType that a particular class supports. By modifying or replacing such an ActionOrderList, a user may customize the order and structure of the Actions and SEPARATORS that are returned by the APF. Further, a user is able to hide unwanted Actions or SEPARATORS by removing their respective entries from the appropriate ActionOrderList.
A basic understanding of the ActionProvider Framework, of which this class is a part, is recommended before attempting to use this class.
For general information on the ActionProvider Framework, including an overview of how
the primary classes of the framework work together, refer to the
package documentation.
com.sas.actionprovider
For examples demonstrating how to use the ActionProvider Framework, including how to override default Actions or add new custom Actions, refer to the Samples Site.
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
BaseActionProvider.setActionOrderList(java.lang.String, com.sas.actionprovider.ActionOrderList, com.sas.actionprovider.ActionProviderViewInterface, java.lang.String)
,
ActionList.SEPARATOR
,
Serialized FormConstructor Summary | |
---|---|
ActionOrderList()
Default constructor |
|
ActionOrderList(java.lang.String name)
List name Constructor |
|
ActionOrderList(java.lang.String name,
int initialCapacity)
Name and initialCapacity constructor. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
Add an element to this ActionOrderList at the specified index. |
boolean |
add(java.lang.Object element)
Appends an element to the end of this ActionOrderList. |
boolean |
addAll(java.util.Collection collection)
Appends all elements of the given collection to the end of this ActionOrderList. |
boolean |
addAll(int index,
java.util.Collection collection)
Add all the elements of the given collection to this ActionOrderList beginning at the specified index. |
void |
addElement(java.lang.Object element)
Appends the specified element to the end of this ActionOrderList. |
boolean |
contains(java.lang.Object element)
Returns the boolean indicating whether the specified element is in the ActionOrderList. |
java.lang.String |
getActionType()
Returns the actionType attribute which identifies the Action to which this ActionOrderList is associated at the support class level. |
java.lang.String |
getName()
Returns the name of this ActionOrderList. |
java.util.Map |
getRootRenderInfoMap()
Returns the Map that contains rendering information for the root level ActionList. |
boolean |
isEnabledIfEmpty()
Returns the boolean indicating if the ActionList corresponding to this ActionOrderList should be returned if the ActionList is empty. |
void |
setActionType(java.lang.String actionType)
Sets the actionType attribute which identifies the Action to which this ActionOrderList is associated at the support class level. |
void |
setEnabledIfEmpty(boolean enabledIfEmpty)
Sets the boolean indicating if the ActionList corresponding to this ActionOrderList should be returned if the ActionList is empty. |
void |
setName(java.lang.String name)
The name of this ActionOrderList If this ActionOrderList's actionType attribute is not set, then this value is used as the Action.NAME
on the corresponding ActionList. |
void |
setRootRenderInfoMap(java.util.Map rootRenderInfoMap)
Set the Map that contains rendering information for the root level ActionList. |
Constructor Detail |
---|
public ActionOrderList()
public ActionOrderList(java.lang.String name)
List name Constructor
name
- The name of this ActionOrderListpublic ActionOrderList(java.lang.String name, int initialCapacity)
Name and initialCapacity constructor.
name
- The name of this ActionOrderListinitialCapacity
- The initial capacity of this list.Method Detail |
---|
public void setName(java.lang.String name)
If this ActionOrderList's actionType attribute is not
set, then this value is used as the Action.NAME
on the corresponding ActionList.
name
- The name of this ActionOrderListgetName()
,
Action.NAME
public java.lang.String getName()
If this ActionOrderList's actionType attribute is not
set, then this value is used as the Action.NAME
on the corresponding ActionList.
setName(java.lang.String)
,
Action.NAME
public boolean isEnabledIfEmpty()
Returns the boolean indicating if the ActionList corresponding to this ActionOrderList should be returned if the ActionList is empty.
setEnabledIfEmpty(boolean)
public void setEnabledIfEmpty(boolean enabledIfEmpty)
Sets the boolean indicating if the ActionList corresponding to this ActionOrderList should be returned if the ActionList is empty.
enabledIfEmpty
- the boolean indicating if the ActionList corresponding to this
ActionOrderList should be returned if the ActionList is empty.isEnabledIfEmpty()
public java.lang.String getActionType()
A user may customize the appearance, availability or functionality of the returned ActionList by changing the attributes of the registered Action to which this actionType maps.
setActionType(java.lang.String)
public void setActionType(java.lang.String actionType)
If this value is not set, the framework assumes that there is no Action associated with this list and just returns an ActionList with the same name as this ActionOrderList.
If the value is set, the framework returns an ActionList whose Action attributes are derived from the registered action with the same actionType.
A user may customize the appearance, availability or functionality of the returned ActionList by changing the attributes of the registered Action to which this actionType maps.
actionType
- an String representing the action supportType.getActionType()
,
getName()
public void add(int index, java.lang.Object element)
Only the following types of Objects are valid:
String
ActionOrderList
ActionList.SEPARATOR
add
in interface java.util.List
add
in class java.util.Vector
index
- The position to add the element.element
- The element to add.
java.lang.IllegalArgumentException
- if element is not one of the valid types.public boolean add(java.lang.Object element)
Only the following types of Objects are valid:
String
ActionOrderList
ActionList.SEPARATOR
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.Vector
element
- The object to add.
java.lang.IllegalArgumentException
- if element is not one of the valid types.public boolean addAll(java.util.Collection collection)
Only the following types of Objects are valid:
String
ActionOrderList
ActionList.SEPARATOR
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.Vector
collection
- The collection of items to add.
java.lang.IllegalArgumentException
- if one of the elements in the Collection is not one of the valid types.public boolean addAll(int index, java.util.Collection collection)
Only the following types of Objects are valid:
String
ActionOrderList
ActionList.SEPARATOR
addAll
in interface java.util.List
addAll
in class java.util.Vector
index
- The index position to begin adding items.collection
- The collection of items to add.
java.lang.IllegalArgumentException
- if one of the elements in the Collection is not one of the valid types.public void addElement(java.lang.Object element)
Only the following types of Objects are valid:
String
ActionOrderList
ActionList.SEPARATOR
addElement
in class java.util.Vector
element
- The Object to add
java.lang.IllegalArgumentException
- if the specified element is not one of the valid types.public boolean contains(java.lang.Object element)
The element must be one of the following:
String
ActionList.SEPARATOR
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class java.util.Vector
element
- The Object to look for in the list.
java.lang.IllegalArgumentException
- if the specified element is not one of the valid types.public void setRootRenderInfoMap(java.util.Map rootRenderInfoMap)
For example:
map.put( com.sas.swing.util.Action.STYLE_MAP, yourStyleMap );
rootRenderInfoMap
- the Map that contains rendering information for the
root level ActionList.ActionList
public java.util.Map getRootRenderInfoMap()
Returns the Map that contains rendering information for the root level ActionList.
ActionList
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |