Package org.openxava.controller.meta
Class MetaController
- java.lang.Object
-
- org.openxava.util.meta.MetaElement
-
- org.openxava.controller.meta.MetaController
-
- All Implemented Interfaces:
java.io.Serializable
public class MetaController extends MetaElement
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetaAction(MetaAction action)voidaddMetaControllerElement(MetaControllerElement controllerElement)voidaddMetaSubcontroller(MetaSubcontroller subcontroller)voidaddParent(java.lang.String parentName, java.lang.String excludedActions)booleancontainsMetaAction(java.lang.String actionName)java.util.CollectiongetAllMetaActions()The MetaActions of this controller and all its parents.java.util.Collection<MetaControllerElement>getAllMetaControllerElements()java.util.CollectiongetAllNotHiddenMetaActions()The not hidden MetaActions of this controller and all its parents.java.util.CollectiongetAllNotHiddenMetaActionsRecursive()The not hidden MetaActions of this controller and all its parents and subcontrollers recursively.java.lang.StringgetClassName()Only for spanish/swing versionjava.lang.StringgetIcon()java.lang.StringgetId()Unique id of element, normally used to search the label in the resources files.java.lang.StringgetImage()MetaActiongetMetaAction(java.lang.String name)java.util.CollectiongetMetaActions()java.util.CollectiongetMetaActionsAfterEachRequest()Actions from father and subcontrollers are included.java.util.CollectiongetMetaActionsBeforeEachRequest()Actions from father and subcontrollers are included.java.util.CollectiongetMetaActionsOnEachRequest()Actions from father and subcontrollers are included.java.util.CollectiongetMetaActionsOnInit()Actions from father and subcontrollers are included.java.util.Collection<MetaControllerElement>getMetaControllerElements()java.util.Collection<MetaSubcontroller>getMetaSubcontrollers()java.util.Collection<MetaController>getParents()booleanhasParents()voidsetClassName(java.lang.String className)Only for spanish/swing versionvoidsetIcon(java.lang.String icon)voidsetImage(java.lang.String image)-
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setLabel, setName, setPlaceholder
-
-
-
-
Method Detail
-
addMetaControllerElement
public void addMetaControllerElement(MetaControllerElement controllerElement)
-
getMetaControllerElements
public java.util.Collection<MetaControllerElement> getMetaControllerElements()
-
getAllMetaControllerElements
public java.util.Collection<MetaControllerElement> getAllMetaControllerElements()
-
getClassName
public java.lang.String getClassName()
Only for spanish/swing version
-
setClassName
public void setClassName(java.lang.String className)
Only for spanish/swing version
-
addMetaSubcontroller
public void addMetaSubcontroller(MetaSubcontroller subcontroller)
- Since:
- 4.8
-
addMetaAction
public void addMetaAction(MetaAction action)
-
addParent
public void addParent(java.lang.String parentName, java.lang.String excludedActions)
-
getMetaAction
public MetaAction getMetaAction(java.lang.String name) throws ElementNotFoundException
- Throws:
ElementNotFoundException
-
getMetaActions
public java.util.Collection getMetaActions()
- Returns:
- Not null, of type MetaAction and read only.
-
getMetaSubcontrollers
public java.util.Collection<MetaSubcontroller> getMetaSubcontrollers()
- Since:
- 4.8
-
containsMetaAction
public boolean containsMetaAction(java.lang.String actionName)
-
getAllMetaActions
public java.util.Collection getAllMetaActions() throws XavaExceptionThe MetaActions of this controller and all its parents.- Throws:
XavaException
-
getAllNotHiddenMetaActions
public java.util.Collection getAllNotHiddenMetaActions() throws XavaExceptionThe not hidden MetaActions of this controller and all its parents.- Throws:
XavaException
-
getAllNotHiddenMetaActionsRecursive
public java.util.Collection getAllNotHiddenMetaActionsRecursive() throws XavaExceptionThe not hidden MetaActions of this controller and all its parents and subcontrollers recursively.- Throws:
XavaException- Since:
- 5.5.1
-
getId
public java.lang.String getId()
Description copied from class:MetaElementUnique id of element, normally used to search the label in the resources files.- Specified by:
getIdin classMetaElement
-
getMetaActionsOnInit
public java.util.Collection getMetaActionsOnInit() throws XavaExceptionActions from father and subcontrollers are included.- Throws:
XavaException
-
hasParents
public boolean hasParents()
-
getParents
public java.util.Collection<MetaController> getParents() throws XavaException
- Returns:
- of type MetaController
- Throws:
XavaException
-
getMetaActionsOnEachRequest
public java.util.Collection getMetaActionsOnEachRequest() throws XavaExceptionActions from father and subcontrollers are included.- Throws:
XavaException
-
getMetaActionsAfterEachRequest
public java.util.Collection getMetaActionsAfterEachRequest() throws XavaExceptionActions from father and subcontrollers are included.- Throws:
XavaException
-
getMetaActionsBeforeEachRequest
public java.util.Collection getMetaActionsBeforeEachRequest() throws XavaExceptionActions from father and subcontrollers are included.- Throws:
XavaException
-
getIcon
public java.lang.String getIcon()
-
setIcon
public void setIcon(java.lang.String icon)
-
getImage
public java.lang.String getImage()
-
setImage
public void setImage(java.lang.String image)
-
-