@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(javax.faces.event.ActionEvent event) |
void |
addToSelection(javax.faces.event.ActionEvent event) |
javax.faces.model.SelectItem[] |
getEmptySelection() |
String |
getLookupLevelValue() |
String |
getSelectedValue() |
String |
getSelectedValueHolder() |
javax.faces.component.UISelectMany |
getSourceSelectComponent(javax.faces.event.ActionEvent event) |
javax.faces.component.UISelectItems |
getSourceSelectItems(javax.faces.event.ActionEvent event) |
void |
onClick(javax.faces.event.ActionEvent event)
Deprecated.
since 6.0: use
onClick(AjaxBehaviorEvent)
instead. |
void |
onClick(javax.faces.event.AjaxBehaviorEvent event) |
void |
onSelection(javax.faces.event.ActionEvent event)
Deprecated.
since 6.0: use
onSelection(AjaxBehaviorEvent) instead. |
void |
onSelection(javax.faces.event.AjaxBehaviorEvent event) |
void |
removeAllFromSelection(javax.faces.event.ActionEvent event) |
void |
removeFromSelection(javax.faces.event.ActionEvent event) |
void |
setLookupLevelValue(String lookupLevelValue) |
void |
setSelectedValue(String selectedValue) |
void |
setSelectedValueHolder(String selectedValueHolder) |
void |
setStaticValue(javax.faces.event.ActionEvent event) |
void |
setStaticValue(javax.faces.event.AjaxBehaviorEvent event)
Retrieves a value passed as an attribute with id "selectedValue" on the
event component attributes and sets it on the target component.
|
void |
setValueFromComponent(javax.faces.event.ActionEvent event) |
void |
setValueFromComponent(javax.faces.event.AjaxBehaviorEvent event)
Retrieves a value from another component and sets it on the target
component.
|
void |
shiftSelected(SelectionActionsBean.ShiftType stype,
javax.faces.event.ActionEvent event) |
void |
shiftSelectedDown(javax.faces.event.ActionEvent event) |
void |
shiftSelectedFirst(javax.faces.event.ActionEvent event) |
void |
shiftSelectedLast(javax.faces.event.ActionEvent event) |
void |
shiftSelectedUp(javax.faces.event.ActionEvent event) |
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 javax.faces.model.SelectItem[] getEmptySelection()
public void shiftSelected(SelectionActionsBean.ShiftType stype, javax.faces.event.ActionEvent event)
public void shiftSelectedUp(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void shiftSelectedDown(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void shiftSelectedFirst(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void shiftSelectedLast(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void addToSelection(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void removeFromSelection(javax.faces.event.ActionEvent event) throws ClientException
ClientException
public void addAllToSelection(javax.faces.event.ActionEvent event)
public javax.faces.component.UISelectMany getSourceSelectComponent(javax.faces.event.ActionEvent event)
public javax.faces.component.UISelectItems getSourceSelectItems(javax.faces.event.ActionEvent event)
public void removeAllFromSelection(javax.faces.event.ActionEvent event) throws ClientException
ClientException
@Deprecated public void onSelection(javax.faces.event.ActionEvent event)
onSelection(AjaxBehaviorEvent)
instead.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 onSelection(javax.faces.event.AjaxBehaviorEvent event)
@Deprecated public void onClick(javax.faces.event.ActionEvent event)
onClick(AjaxBehaviorEvent)
instead.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
- public void onClick(javax.faces.event.AjaxBehaviorEvent event)
public void setValueFromComponent(javax.faces.event.AjaxBehaviorEvent event)
Source component id must be passed in the event component attributes with id "sourceComponentId".
Target component id must be passed in the event component attributes
with id "targetComponentId". If target component is an
EditableValueHolder
, its submitted value is set. Otherwise, its
local value is set.
event
- public void setValueFromComponent(javax.faces.event.ActionEvent event)
setValueFromComponent(ActionEvent)
public void setStaticValue(javax.faces.event.AjaxBehaviorEvent event)
Target component id must be passed in the event component attributes
with id "targetComponentId". If target component is an
EditableValueHolder
, its submitted value is set. Otherwise, its
local value is set.
event
- public void setStaticValue(javax.faces.event.ActionEvent event)
setStaticValue(ActionEvent)
Copyright © 2014 Nuxeo SA. All rights reserved.