|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
planetj.property.PropertyGroup
planetj.property.DefaultPropertyGroup
planetj.dataengine.action.ActionDescriptor
An ActionDisplayDescriptor property group contains all the information needed in order to display the action.
Field Summary | |
static java.lang.String |
ACTION_DISPLAY_DESCRIPTOR
Used for the default ActionDisplayDescriptor's property group name. |
static java.lang.String |
ACTION_NAME
Action name (e.g. |
static java.lang.String |
ACTION_TYPE
Action type (e.g. |
static java.util.List |
ALL_ACTION_DESCRIPTOR_PROPERTIES
List of String property names. |
static java.lang.String |
className
Class name. |
static java.lang.String |
DESCRIPTION
Description of action to display. |
static java.lang.String |
DETAILS_LOCATION
|
static java.lang.String |
DETAILS_MODE
When showing details, during which modes do we generate actions? |
static java.lang.String |
DETAILS_MODE_COPY
|
static java.lang.String |
DETAILS_MODE_DELETE
|
static java.lang.String |
DETAILS_MODE_EDIT
|
static java.lang.String |
DETAILS_MODE_INSERT
|
static java.lang.String |
DETAILS_MODE_VIEW
|
static java.lang.String |
DISPLAY_TYPE
How to display the action (e.g. |
static java.lang.String |
DISPLAY_TYPE_BUTTON
|
static java.lang.String |
DISPLAY_TYPE_CHECKBOX
|
static java.lang.String |
DISPLAY_TYPE_LINK
|
static java.lang.String |
IMAGE_SRC
Image URI to use for generated action's background. |
static java.lang.String |
LABEL
Label when displaying action. |
static java.lang.String |
LOCATION
Location of where to generate the action. |
static java.lang.String |
LOCATION_BOTTOM_LEFT
|
static java.lang.String |
LOCATION_BOTTOM_RIGHT
|
static java.lang.String |
LOCATION_BUTTONS_FAR_LEFT
|
static java.lang.String |
LOCATION_BUTTONS_FAR_RIGHT
|
static java.lang.String |
LOCATION_BUTTONS_LEFT
|
static java.lang.String |
LOCATION_BUTTONS_RIGHT
|
static java.lang.String |
LOCATION_HEADER
|
static java.lang.String |
LOCATION_INLINE
|
static java.lang.String |
LOCATION_NONE
|
static java.lang.String |
LOCATION_PARAMETER_SEARCH_LEFT
|
static java.lang.String |
LOCATION_PARAMETER_SEARCH_RIGHT
|
static java.lang.String |
LOCATION_TOOLBAR
|
static java.lang.String |
LOCATION_TOP_LEFT
|
static java.lang.String |
LOCATION_TOP_RIGHT
|
static java.lang.String |
LOCATION_UNKNOWN
|
static java.lang.String |
NAVIGATION_GROUP_END
Whether or not this action should end the current navigation group. |
static java.lang.String |
NAVIGATION_GROUP_START
Whether or not this action should start a new navigation group. |
static java.lang.String |
NEW_WINDOW_PROPERTIES
Properties for the new window (only applicable if a target is specified). |
static java.lang.String |
NO_SELECTION_ERROR
The error message to display when no row is selected |
static java.lang.String |
TARGET
Target window to load action in. |
Fields inherited from class planetj.property.PropertyGroup |
ALL, ALL_FALSE, ALL_TRUE, BOOLEAN_PROPERTY, DATE_PROPERTY, DOUBLE_PROPERTY, FLOAT_PROPERTY, INTEGER_PROPERTY, JAVA_CLASS_PROPERTY, LIST_PROPERTY, MAP_PROPERTY, NONE, ROW_COLLECTION_KEY, STRING_PROPERTY |
Constructor Summary | |
ActionDescriptor()
ActionDescriptor constructor comment. |
|
ActionDescriptor(int initialCapacity)
ActionDescriptor constructor comment. |
|
ActionDescriptor(java.lang.String propertyGroupName)
ActionDescriptor constructor comment. |
Method Summary | |
static ActionDescriptor |
createDescriptor(java.lang.String actionType,
java.lang.String actionName)
Convience method to create an ActionDescriptor for the given type and name. |
Property |
createProperty(java.lang.String pName,
java.lang.Object pValue)
Creates a new Property object based on a name and value (the Property is not added to this PropertyGroup). |
java.lang.String |
getActionName()
Get the name of action being described for display. |
java.lang.String |
getActionType()
Get the type of action being described for display. |
java.util.List |
getAllPropertyNames()
Gets a List containing the names of all the supported properties, not including metaproperties. |
java.lang.String |
getDescription()
Get the description of the action. |
java.util.List |
getDetailsLocations()
Gets the List of locations where the action should be displayed on the details page. |
java.util.List |
getDetailsModes()
Gets the List of modes when the action should be displayed in the details view |
java.lang.String |
getDisplayType()
Get the display type to generate for action. |
java.lang.String |
getImageSource()
Get the URI of image to use for the background of the display type. |
java.lang.String |
getLabel()
Get the label of the action to generate when displayed. |
java.util.List |
getLayoutPropertyNames()
Gets a List containing the names of all the supported properties, not including metaproperties. |
java.lang.String |
getLocation()
Deprecated. Replaced by getLocations() since there could be more than one location |
java.util.List |
getLocations()
Gets the List of locations where the action should be displayed. |
java.lang.String |
getNewWindowProperties()
Gets the string containing properties for the new window |
java.lang.String |
getNoSelectionErrorMessage()
Get the error message to display when a required selection hasn't been made |
java.lang.String |
getTarget()
Get the target window the action should execute in. |
boolean |
hasNavigationEnd()
Method to check whether or not this action discriptor specifies whether or not to end the current navigation group. |
boolean |
hasNavigationStart()
Method to check whether or not this action discriptor specifies whether or not to start a new navigation group. |
boolean |
isNavigationEnd()
Method to check whether or not this action discriptor specifies should end the current navigation group. |
boolean |
isNavigationStart()
Method to check whether or not this action discriptor specifies should start a new navigation group. |
protected short |
propertyType(java.lang.String name)
Gets the type of property for a specified property name. |
void |
setActionName(java.lang.String actionName)
Set the name of action being described for display. |
void |
setActionType(java.lang.String actionType)
Set the type of action being described for display. |
void |
setDisplayType(java.lang.String dspType)
Set the display type for the action being displayed (button or link). |
void |
setEndNavigationGroup(boolean val)
Set the if the action ends the navigation group or not |
void |
setImageSource(java.lang.String imgSource)
Set the source image for the action being displayed. |
void |
setLabel(java.lang.String val)
Set the label for the action being displayed |
void |
setLocation(java.lang.String location)
Set the location where the action should be generated. |
void |
setStartNavigationGroup(boolean val)
Set the if the action ends the navigation group or not |
void |
setTarget(java.lang.String target)
Set the target window the action should execute in. |
java.lang.Object |
updateProperty(java.lang.String pName,
java.lang.Object pValue)
Updates a Property's value. |
protected void |
validate()
Validates this property group, throwing a validation exception if there is a problem. |
Methods inherited from class planetj.property.DefaultPropertyGroup |
getDefaultPropertiesString, getRequiredPropertyNames |
Methods inherited from class java.util.HashMap |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Field Detail |
public static final java.lang.String className
public static final java.lang.String ACTION_DISPLAY_DESCRIPTOR
public static final java.lang.String ACTION_TYPE
public static final java.lang.String ACTION_NAME
public static final java.lang.String DESCRIPTION
public static final java.lang.String DETAILS_MODE
public static final java.lang.String DETAILS_MODE_EDIT
public static final java.lang.String DETAILS_MODE_DELETE
public static final java.lang.String DETAILS_MODE_VIEW
public static final java.lang.String DETAILS_MODE_COPY
public static final java.lang.String DETAILS_MODE_INSERT
public static final java.lang.String DISPLAY_TYPE
public static final java.lang.String DISPLAY_TYPE_BUTTON
public static final java.lang.String DISPLAY_TYPE_LINK
public static final java.lang.String DISPLAY_TYPE_CHECKBOX
public static final java.lang.String IMAGE_SRC
public static final java.lang.String LABEL
public static final java.lang.String LOCATION
public static final java.lang.String DETAILS_LOCATION
public static final java.lang.String LOCATION_TOOLBAR
public static final java.lang.String LOCATION_HEADER
public static final java.lang.String LOCATION_INLINE
public static final java.lang.String LOCATION_TOP_LEFT
public static final java.lang.String LOCATION_TOP_RIGHT
public static final java.lang.String LOCATION_BOTTOM_LEFT
public static final java.lang.String LOCATION_BOTTOM_RIGHT
public static final java.lang.String LOCATION_BUTTONS_LEFT
public static final java.lang.String LOCATION_BUTTONS_RIGHT
public static final java.lang.String LOCATION_BUTTONS_FAR_LEFT
public static final java.lang.String LOCATION_BUTTONS_FAR_RIGHT
public static final java.lang.String LOCATION_PARAMETER_SEARCH_LEFT
public static final java.lang.String LOCATION_PARAMETER_SEARCH_RIGHT
public static final java.lang.String LOCATION_UNKNOWN
public static final java.lang.String LOCATION_NONE
public static final java.lang.String TARGET
public static final java.lang.String NAVIGATION_GROUP_START
public static final java.lang.String NAVIGATION_GROUP_END
public static final java.lang.String NO_SELECTION_ERROR
public static final java.lang.String NEW_WINDOW_PROPERTIES
public static final java.util.List ALL_ACTION_DESCRIPTOR_PROPERTIES
Constructor Detail |
public ActionDescriptor()
public ActionDescriptor(int initialCapacity)
initialCapacity
- intpublic ActionDescriptor(java.lang.String propertyGroupName)
Method Detail |
public Property createProperty(java.lang.String pName, java.lang.Object pValue)
createProperty
in class PropertyGroup
public static ActionDescriptor createDescriptor(java.lang.String actionType, java.lang.String actionName)
public java.lang.String getActionName()
public java.lang.String getActionType()
public java.util.List getAllPropertyNames()
getAllPropertyNames
in class DefaultPropertyGroup
public java.lang.String getDescription()
public java.util.List getDetailsLocations()
public java.util.List getDetailsModes()
public java.lang.String getDisplayType()
public java.lang.String getImageSource()
public java.lang.String getLabel()
public java.util.List getLayoutPropertyNames()
public java.lang.String getLocation()
public java.util.List getLocations()
public java.lang.String getNewWindowProperties()
public java.lang.String getNoSelectionErrorMessage()
public java.lang.String getTarget()
public boolean isNavigationEnd()
public boolean isNavigationStart()
public boolean hasNavigationEnd()
public boolean hasNavigationStart()
protected short propertyType(java.lang.String name)
propertyType
in class DefaultPropertyGroup
public void setActionName(java.lang.String actionName)
public void setActionType(java.lang.String actionType)
public void setDisplayType(java.lang.String dspType)
public void setEndNavigationGroup(boolean val)
public void setImageSource(java.lang.String imgSource)
public void setLabel(java.lang.String val)
public void setLocation(java.lang.String location)
public void setStartNavigationGroup(boolean val)
public void setTarget(java.lang.String target)
public java.lang.Object updateProperty(java.lang.String pName, java.lang.Object pValue)
PropertyGroup
updateProperty
in class PropertyGroup
protected void validate() throws ValidationException
PropertyGroup
validate
in class PropertyGroup
ValidationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |