Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.util
Class SelectionActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.util.SelectionActionsBean
All Implemented Interfaces:
Serializable

@Name(value="selectionActions")
@Scope(value=EVENT)
public class SelectionActionsBean
extends Object
implements Serializable

Helper for selection actions, useful when performing ajax calls on a "liste shuttle" widget.

See Also:
Serialized Form

Nested Class Summary
static class SelectionActionsBean.ShiftType
           
 
Constructor Summary
SelectionActionsBean()
           
 
Method Summary
 void addAllToSelection(ActionEvent event)
           
 void addToSelection(ActionEvent event)
           
 SelectItem[] getEmptySelection()
           
 UISelectMany getSourceSelectComponent(ActionEvent event)
           
 UISelectItems getSourceSelectItems(ActionEvent event)
           
 void removeAllFromSelection(ActionEvent event)
           
 void removeFromSelection(ActionEvent event)
           
 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

SelectionActionsBean

public SelectionActionsBean()
Method Detail

getEmptySelection

public SelectItem[] getEmptySelection()

shiftSelected

public void shiftSelected(SelectionActionsBean.ShiftType stype,
                          ActionEvent event)

shiftSelectedUp

public void shiftSelectedUp(ActionEvent event)
                     throws ClientException
Throws:
ClientException

shiftSelectedDown

public void shiftSelectedDown(ActionEvent event)
                       throws ClientException
Throws:
ClientException

shiftSelectedFirst

public void shiftSelectedFirst(ActionEvent event)
                        throws ClientException
Throws:
ClientException

shiftSelectedLast

public void shiftSelectedLast(ActionEvent event)
                       throws ClientException
Throws:
ClientException

addToSelection

public void addToSelection(ActionEvent event)
                    throws ClientException
Throws:
ClientException

removeFromSelection

public void removeFromSelection(ActionEvent event)
                         throws ClientException
Throws:
ClientException

addAllToSelection

public void addAllToSelection(ActionEvent event)

getSourceSelectComponent

public UISelectMany getSourceSelectComponent(ActionEvent event)

getSourceSelectItems

public UISelectItems getSourceSelectItems(ActionEvent event)

removeAllFromSelection

public void removeAllFromSelection(ActionEvent event)
                            throws ClientException
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.