|
Nuxeo ECM Projects 5.6-RC1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.platform.ui.web.util.SelectionActionsBean
@Name(value="selectionActions") @Scope(value=EVENT) public class SelectionActionsBean
Helper for selection actions, useful when performing ajax calls on a "liste shuttle" widget for instance, or to retrieve the selected value on a JSF component and set it on another.
Nested Class Summary | |
---|---|
static class |
SelectionActionsBean.ShiftType
|
Constructor Summary | |
---|---|
SelectionActionsBean()
|
Method Summary | |
---|---|
void |
addAllToSelection(ActionEvent event)
|
void |
addToSelection(ActionEvent event)
|
SelectItem[] |
getEmptySelection()
|
String |
getSelectedValue()
|
String |
getSelectedValueHolder()
|
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 |
setSelectedValueHolder(String selectedValueHolder)
|
void |
shiftSelected(SelectionActionsBean.ShiftType stype,
ActionEvent event)
|
void |
shiftSelectedDown(ActionEvent event)
|
void |
shiftSelectedFirst(ActionEvent event)
|
void |
shiftSelectedLast(ActionEvent event)
|
void |
shiftSelectedUp(ActionEvent event)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionActionsBean()
Method Detail |
---|
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
-
|
Nuxeo ECM Projects 5.6-RC1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |