org.benow.web.action
Class ActionImpl

java.lang.Object
  extended by org.benow.web.action.ActionImpl
All Implemented Interfaces:
Action
Direct Known Subclasses:
JavaBasedAction

public abstract class ActionImpl
extends java.lang.Object
implements Action


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.benow.web.action.Action
Action.ActionAppliesTo, Action.ActionType
 
Field Summary
protected  boolean active
           
 
Constructor Summary
  ActionImpl()
           
protected ActionImpl(Action.ActionType type)
           
 
Method Summary
abstract  java.lang.String getIconHTML(java.lang.Object forObject)
           
abstract  java.lang.String getLabelHTML(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
 

Field Detail

active

protected boolean active
Constructor Detail

ActionImpl

public ActionImpl()

ActionImpl

protected ActionImpl(Action.ActionType type)
Method Detail

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

getLabelHTML

public abstract 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 abstract 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