org.benow.web.action
Class XSLAction

java.lang.Object
  extended by org.benow.web.action.XSLAction
All Implemented Interfaces:
Action

public class XSLAction
extends java.lang.Object
implements Action


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.benow.web.action.Action
Action.ActionAppliesTo, Action.ActionType
 
Constructor Summary
XSLAction(java.lang.String forTypeName, java.lang.String actionName)
           
 
Method Summary
 java.lang.String getIconHTML(java.lang.Object forObject)
           
 java.lang.String getLabelHTML(java.lang.Object forObject)
           
 int getPosition(java.lang.Object forObject)
          Get position of action relative to other actions for given object.
 java.lang.String getResults(java.lang.String template, java.lang.Object forObject)
           
 java.lang.String getSupportHTML(java.lang.Object forObject)
           
 Action.ActionType getType(java.lang.Object forObject)
           
 boolean isActive(java.lang.Object forObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLAction

public XSLAction(java.lang.String forTypeName,
                 java.lang.String actionName)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getResults

public java.lang.String getResults(java.lang.String template,
                                   java.lang.Object forObject)

getLabelHTML

public java.lang.String getLabelHTML(java.lang.Object forObject)
Specified by:
getLabelHTML in interface Action
Returns:
text html label for the action as appropriate for the given object

getIconHTML

public java.lang.String getIconHTML(java.lang.Object forObject)
Specified by:
getIconHTML in interface Action
Returns:
html for the action as appropriate for the given object

getSupportHTML

public java.lang.String getSupportHTML(java.lang.Object forObject)
Specified by:
getSupportHTML in interface Action
Returns:
prefix support html (javascript, hidden objects, etc) for the action as appropriate for the given object

isActive

public boolean isActive(java.lang.Object forObject)
Specified by:
isActive in interface Action
Returns:
true if this action applies for the given object

getType

public Action.ActionType getType(java.lang.Object forObject)
Specified by:
getType in interface Action
Returns:
type of the action for the given object

getPosition

public int getPosition(java.lang.Object forObject)
Get position of action relative to other actions for given object. Defaults to ordering by alpha, which indicates that the label should be used to determine position.

Parameters:
forObject -
Returns: