org.openxava.controller.meta
Class MetaAction

java.lang.Object
  extended by org.openxava.util.meta.MetaElement
      extended by org.openxava.controller.meta.MetaAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class MetaAction
extends MetaElement
implements java.lang.Cloneable

Author:
Javier Paniza
See Also:
Serialized Form

Field Summary
static int ALMOST_ALWAYS
           
static int ALMOST_NEVER
           
static int ALWAYS
           
static int IF_POSSIBLE
           
static int NEVER
           
 
Constructor Summary
MetaAction()
           
MetaAction(java.lang.String name)
           
 
Method Summary
 void _addMetaSet(MetaSet metaSet)
           
 void addMetaUseObject(MetaUseObject object)
           
 boolean appliesToMode(java.lang.String mode)
           
 MetaAction cloneMetaAction()
           
 IAction createAction()
           
 boolean equals(java.lang.Object action)
           
 int getByDefault()
           
 java.lang.String getClassName()
           
 java.lang.String getConfirmMessage()
           
 java.lang.String getConfirmMessage(java.util.Locale locale, java.lang.String... argv)
           
 java.lang.String getConfirmMessage(ServletRequest request)
           
 java.lang.String getConfirmMessage(ServletRequest request, java.lang.String argv)
           
 java.lang.String getControllerName()
           
 java.lang.String getId()
          Unique id of element, normally used to search the label in the resources files.
 java.lang.String getImage()
           
 java.lang.String getKeystroke()
           
 java.lang.String getLabel(java.util.Locale locale)
           
 MetaController getMetaController()
           
 java.util.Collection getMetaSets()
           
 java.util.Collection getMetaUseObjects()
           
 java.lang.String getMethod()
           
 char getMnemonic()
           
 java.lang.String getMode()
           
 java.lang.String getQualifiedName()
           
 int hashCode()
           
 boolean hasImage()
           
 boolean hasKeystroke()
           
 boolean hasMetaSets()
           
 boolean isAfterEachRequest()
           
 boolean isBeforeEachRequest()
           
 boolean isConfirm()
           
 boolean isHidden()
           
 boolean isInEachRow()
           
 boolean isOnEachRequest()
           
 boolean isOnInit()
           
 boolean isTakesLong()
           
 void setAfterEachRequest(boolean afterEachRequest)
           
 void setBeforeEachRequest(boolean beforeEachRequest)
           
 void setByDefault(int i)
           
 void setClassName(java.lang.String string)
           
 void setConfirm(boolean confirm)
           
 void setHidden(boolean b)
           
 void setImage(java.lang.String image)
           
 void setInEachRow(boolean inEachRow)
           
 void setKeystroke(java.lang.String keystroke)
           
 void setMetaController(MetaController controller)
           
 void setMethod(java.lang.String method)
           
 void setMode(java.lang.String string)
           
 void setName(java.lang.String newName)
           
 void setOnEachRequest(boolean b)
           
 void setOnInit(boolean b)
           
 void setTakesLong(boolean takesLong)
           
 java.lang.String toString()
           
 boolean usesObjects()
           
 
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getLabel, getLabel, getLocale, getName, has18nLabel, hasName, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NEVER

public static final int NEVER
See Also:
Constant Field Values

ALMOST_NEVER

public static final int ALMOST_NEVER
Since:
4m6
See Also:
Constant Field Values

IF_POSSIBLE

public static final int IF_POSSIBLE
See Also:
Constant Field Values

ALMOST_ALWAYS

public static final int ALMOST_ALWAYS
See Also:
Constant Field Values

ALWAYS

public static final int ALWAYS
See Also:
Constant Field Values
Constructor Detail

MetaAction

public MetaAction()

MetaAction

public MetaAction(java.lang.String name)
Method Detail

getQualifiedName

public java.lang.String getQualifiedName()

setName

public void setName(java.lang.String newName)
Overrides:
setName in class MetaElement

getKeystroke

public java.lang.String getKeystroke()

setKeystroke

public void setKeystroke(java.lang.String keystroke)

cloneMetaAction

public MetaAction cloneMetaAction()

hasKeystroke

public boolean hasKeystroke()

getImage

public java.lang.String getImage()

setImage

public void setImage(java.lang.String image)

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)

getLabel

public java.lang.String getLabel(java.util.Locale locale)
Overrides:
getLabel in class MetaElement

getMnemonic

public char getMnemonic()

equals

public boolean equals(java.lang.Object action)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String string)

usesObjects

public boolean usesObjects()

getMetaUseObjects

public java.util.Collection getMetaUseObjects()

addMetaUseObject

public void addMetaUseObject(MetaUseObject object)

getMetaController

public MetaController getMetaController()

setMetaController

public void setMetaController(MetaController controller)

getControllerName

public java.lang.String getControllerName()

hasImage

public boolean hasImage()

_addMetaSet

public void _addMetaSet(MetaSet metaSet)

createAction

public IAction createAction()
                     throws XavaException
Throws:
XavaException

hasMetaSets

public boolean hasMetaSets()

getMetaSets

public java.util.Collection getMetaSets()

appliesToMode

public boolean appliesToMode(java.lang.String mode)

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean b)

getMode

public java.lang.String getMode()

setMode

public void setMode(java.lang.String string)

getByDefault

public int getByDefault()

setByDefault

public void setByDefault(int i)

getId

public java.lang.String getId()
Description copied from class: MetaElement
Unique id of element, normally used to search the label in the resources files.

Specified by:
getId in class MetaElement

isOnInit

public boolean isOnInit()

setOnInit

public void setOnInit(boolean b)

isTakesLong

public boolean isTakesLong()

setTakesLong

public void setTakesLong(boolean takesLong)

isConfirm

public boolean isConfirm()

getConfirmMessage

public java.lang.String getConfirmMessage()

getConfirmMessage

public java.lang.String getConfirmMessage(java.util.Locale locale,
                                          java.lang.String... argv)
Parameters:
argv - Since 4m5

getConfirmMessage

public java.lang.String getConfirmMessage(ServletRequest request,
                                          java.lang.String argv)
Since:
4m5

getConfirmMessage

public java.lang.String getConfirmMessage(ServletRequest request)

setConfirm

public void setConfirm(boolean confirm)

isOnEachRequest

public boolean isOnEachRequest()

setOnEachRequest

public void setOnEachRequest(boolean b)

isBeforeEachRequest

public boolean isBeforeEachRequest()

setBeforeEachRequest

public void setBeforeEachRequest(boolean beforeEachRequest)

setInEachRow

public void setInEachRow(boolean inEachRow)

isInEachRow

public boolean isInEachRow()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isAfterEachRequest

public boolean isAfterEachRequest()

setAfterEachRequest

public void setAfterEachRequest(boolean afterEachRequest)