public abstract class OnSelectElementBaseAction extends CollectionBaseAction
This type of action is defined using {link org.openxava.annoations.OnSelectElementAction}
annotation, or its XML counterpart on-select-element-action
.
This is a convenience class, if you want you can extend directly from
{link CollectionBaseAction} and add the properties row
and selected
to your own action.
DETAIL, LIST, PREVIOUS_MODE, SPLIT
Constructor and Description |
---|
OnSelectElementBaseAction() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute() |
int |
getRow()
Row number of the selected or unselected element.
|
boolean |
isSelected()
If the element has been selected or unselected.
|
protected boolean |
mustRefreshCollection() |
void |
setRow(int row) |
void |
setSelected(boolean selected) |
getMapsSelectedValues, getMapValues, getObjects, getSelectedKeys, getSelectedObjects
closeDialog, getCollectionElementView, getMetaCollection, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, setCloseDialogDisallowed, setViewObject, showDialog, validateMaximum, validateMinimum
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValues
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, commit, executeAction, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getQualifiedActionIfAvailable, getRequest, removeActions, returnToPreviousControllers, rollback, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
public abstract void execute() throws java.lang.Exception
execute
in interface IAction
execute
in class CollectionElementViewBaseAction
java.lang.Exception
protected boolean mustRefreshCollection()
mustRefreshCollection
in class CollectionElementViewBaseAction
public int getRow()
getRow
in class CollectionBaseAction
public void setRow(int row)
setRow
in class CollectionBaseAction
public boolean isSelected()
public void setSelected(boolean selected)