org.openxava.controller.meta
Class MetaAction
java.lang.Object
org.openxava.util.meta.MetaElement
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
| 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 |
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
MetaAction
public MetaAction()
MetaAction
public MetaAction(java.lang.String name)
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)