@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() |
Modifier and Type | Method and Description |
---|---|
void |
addAllToSelection(ActionEvent event) |
void |
addToSelection(ActionEvent event) |
SelectItem[] |
getEmptySelection() |
String |
getSelectedValue() |
UISelectMany |
getSourceSelectComponent(ActionEvent event) |
UISelectItems |
getSourceSelectItems(ActionEvent event) |
void |
onClick(ActionEvent event)
Adds value retrieved from
getSelectedValue() to a component |
void |
onSelection(ActionEvent event)
Adds selection retrieved from a selector to another component
|
void |
removeAllFromSelection(ActionEvent event) |
void |
removeFromSelection(ActionEvent event) |
void |
setSelectedValue(String selectedValue) |
void |
shiftSelected(SelectionActionsBean.ShiftType stype,
ActionEvent event) |
void |
shiftSelectedDown(ActionEvent event) |
void |
shiftSelectedFirst(ActionEvent event) |
void |
shiftSelectedLast(ActionEvent event) |
void |
shiftSelectedUp(ActionEvent event) |
public String getSelectedValue()
public void setSelectedValue(String selectedValue)
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.
event
- Copyright © 2011 Nuxeo SA. All Rights Reserved.