@Component(value="cuba_BulkEditAction") @Scope(value="prototype") public class BulkEditAction extends ItemTrackingAction implements Action.HasBeforeActionPerformedHandler
BulkEditor
visual component.
In order to provide your own implementation globally, create a subclass and register it in web-spring.xml
,
for example:
<bean id="cuba_BulkEditAction" class="com.company.sample.gui.MyBulkEditAction" scope="prototype"/>
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.BeforeActionPerformedHandler, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasSecurityConstraint, Action.HasTarget, Action.Status, Action.UiPermissionAware
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
BulkEditAction(ListComponent target) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component when an action occurs.
|
static BulkEditAction |
create(ListComponent target)
Creates an action with default id.
|
Action.BeforeActionPerformedHandler |
getBeforeActionPerformedHandler() |
java.lang.String |
getExcludePropertyRegex() |
java.util.Map<java.lang.String,Field.Validator> |
getFieldValidators() |
java.util.List<Field.Validator> |
getModelValidators() |
WindowManager.OpenType |
getOpenType() |
void |
setBeforeActionPerformedHandler(Action.BeforeActionPerformedHandler handler) |
void |
setExcludePropertyRegex(java.lang.String exclude) |
void |
setFieldValidators(java.util.Map<java.lang.String,Field.Validator> fieldValidators) |
void |
setModelValidators(java.util.List<Field.Validator> modelValidators) |
void |
setOpenType(WindowManager.OpenType openType) |
getConstraintCode, getConstraintOperationType, setConstraintCode, setConstraintOperationType
addEnabledRule, getTarget, isEnabledByUiPermissions, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setTarget, setVisible, setVisibleByUiPermissions, withCaption, withDescription, withHandler, withIcon, withShortcut
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public BulkEditAction(ListComponent target)
public static BulkEditAction create(ListComponent target)
target
- component containing this actionpublic WindowManager.OpenType getOpenType()
public void setOpenType(WindowManager.OpenType openType)
public java.lang.String getExcludePropertyRegex()
public void setExcludePropertyRegex(java.lang.String exclude)
public java.util.List<Field.Validator> getModelValidators()
public void setModelValidators(java.util.List<Field.Validator> modelValidators)
public java.util.Map<java.lang.String,Field.Validator> getFieldValidators()
public void setFieldValidators(java.util.Map<java.lang.String,Field.Validator> fieldValidators)
public void actionPerform(Component component)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentpublic Action.BeforeActionPerformedHandler getBeforeActionPerformedHandler()
getBeforeActionPerformedHandler
in interface Action.HasBeforeActionPerformedHandler
public void setBeforeActionPerformedHandler(Action.BeforeActionPerformedHandler handler)
setBeforeActionPerformedHandler
in interface Action.HasBeforeActionPerformedHandler