|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.actions.BaseAction
org.openxava.actions.ViewBaseAction
org.openxava.actions.CollectionElementViewBaseAction
org.openxava.actions.CollectionBaseAction
public abstract class CollectionBaseAction
Base class for creating actions to be used as list actions.
That is in <list-action/> of <collection-view/> or
in @ListAction annotation.
| Field Summary |
|---|
| Fields inherited from interface org.openxava.actions.IChangeModeAction |
|---|
DETAIL, LIST, PREVIOUS_MODE, SPLIT |
| Constructor Summary | |
|---|---|
CollectionBaseAction()
|
|
| Method Summary | |
|---|---|
protected java.util.List |
getMapsSelectedValues()
A list of selected collection element when each element is a map with the values of the collection element. |
protected java.util.List |
getMapValues()
A list of all collection element when each element is a map with the values of the collection element. |
protected java.util.List |
getObjects()
A list of all objects (POJOs or EntityBeans) in the collection. |
int |
getRow()
This property has value when the action has been clicked from the row. |
protected java.util.List |
getSelectedObjects()
A list of selected objects (POJOs or EntityBeans) in the collection. |
void |
setRow(int row)
|
| Methods inherited from class org.openxava.actions.CollectionElementViewBaseAction |
|---|
closeDialog, execute, getCollectionElementView, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, setCloseDialogDisallowed, setViewObject, showDialog |
| Methods inherited from class org.openxava.actions.ViewBaseAction |
|---|
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView |
| Methods inherited from class org.openxava.actions.BaseAction |
|---|
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, returnToPreviousControllers, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionBaseAction()
| Method Detail |
|---|
protected java.util.List getMapValues()
throws XavaException
The values only include the displayed data in the row.
XavaException
protected java.util.List getMapsSelectedValues()
throws XavaException
If row property has value it returns the resulting list
will contain the value of that row only.
The values only include the displayed data in the row.
XavaException
protected java.util.List getObjects()
throws java.rmi.RemoteException,
FinderException,
XavaException
Generally the objects are POJOs, although if you use EJBPersistenceProvider
the they will be EntityBeans (of EJB2).
java.rmi.RemoteException
FinderException
XavaException
protected java.util.List getSelectedObjects()
throws java.rmi.RemoteException,
FinderException,
XavaException
Generally the objects are POJOs, although if you use EJBPersistenceProvider
the they will be EntityBeans (of EJB2).
If row property has value it returns the resulting list
will contain the object of that row only.
java.rmi.RemoteException
FinderException
XavaExceptionpublic void setRow(int row)
public int getRow()
If not its value is -1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||