@Name(value="selectionActions") @Scope(value=EVENT) public class SelectionActionsBean extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SelectionActionsBean.ShiftType |
Constructor and Description |
---|
SelectionActionsBean() |
public String getLookupLevelValue()
public void setLookupLevelValue(String lookupLevelValue)
public String getSelectedValue()
public void setSelectedValue(String selectedValue)
public String getSelectedValueHolder()
public void setSelectedValueHolder(String selectedValueHolder)
public SelectItem[] getEmptySelection()
public void shiftSelected(SelectionActionsBean.ShiftType stype, ActionEvent event)
public void shiftSelectedUp(ActionEvent event) throws ClientException
ClientException
public void shiftSelectedDown(ActionEvent event) throws ClientException
ClientException
public void shiftSelectedFirst(ActionEvent event) throws ClientException
ClientException
public void shiftSelectedLast(ActionEvent event) throws ClientException
ClientException
public void addToSelection(ActionEvent event) throws ClientException
ClientException
public void removeFromSelection(ActionEvent event) throws ClientException
ClientException
public void addAllToSelection(ActionEvent event)
public UISelectMany getSourceSelectComponent(ActionEvent event)
public UISelectItems getSourceSelectItems(ActionEvent event)
public void removeAllFromSelection(ActionEvent event) throws ClientException
ClientException
public void onSelection(ActionEvent event)
Must pass request parameters "selectorId" holding the id of component holding the value to pass to the other component, and "valueHolderId" holding the other component id.
event
- public void onClick(ActionEvent event)
getSelectedValue()
to a component
Must pass request parameters "valueHolderId" holding the id of the bound
component, and call setSelectedValue(String)
prior to this
call.
As an alternative, must call setSelectedValueHolder(String)
with the id of the bound component, and call
setSelectedValue(String)
prior to this call (this makes it
possible to use the same logic in command buttons that do not make it
possible to pass request parameters).
event
- Copyright © 2013 Nuxeo SA. All Rights Reserved.