Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

@Name(value="suggestionActions")
@Scope(value=EVENT)
public class SuggestionActionsBean
extends Object
implements Serializable

Suggestion actions helpers

Since:
5.2M4
Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
SuggestionActionsBean()
           
 
Method Summary
 void addBoundSelectionToList(ActionEvent event)
          Adds selection from selector as a list element
 void addSelectionToList(ActionEvent event)
          Deprecated. use addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method instead of retrieving suggestion input.
 void addSingleBoundSelection(ActionEvent event)
          Adds selection from selector as single element
 void addSingleSelection(ActionEvent event)
          Deprecated. use addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method instead of retrieving suggestion input.
 void clearSingleSelection(ActionEvent event)
          Clears single selection.
 String getSelectedValue()
           
 void setSelectedValue(String selectedValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuggestionActionsBean

public SuggestionActionsBean()
Method Detail

getSelectedValue

public String getSelectedValue()

setSelectedValue

public void setSelectedValue(String selectedValue)

addBoundSelectionToList

public void addBoundSelectionToList(ActionEvent event)
Adds selection from selector as a list element

Must pass request parameter "suggestionSelectionListId" holding the binding to model. Selection will be retrieved using the getSelectedValue() method.


addSelectionToList

@Deprecated
public void addSelectionToList(ActionEvent event)
Deprecated. use addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method instead of retrieving suggestion input.

Adds selection from selector as a list element

Must pass request parameters "suggestionInputSelectorId" holding the value to pass to the binding component, "suggestionSelectionListId" holding the binding to model.


addSingleBoundSelection

public void addSingleBoundSelection(ActionEvent event)
Adds selection from selector as single element

Must pass request parameters "suggestionSelectionOutputId" holding the value to show, and "suggestionSelectionHiddenId" holding the binding to model. Selection will be retrieved using the getSelectedValue() method.

Additional optional request parameter "suggestionSelectionDeleteId" can be used to show an area where the "clear" button is shown.


addSingleSelection

@Deprecated
public void addSingleSelection(ActionEvent event)
Deprecated. use addBoundSelectionToList(ActionEvent) which retrieves selected value from bound method instead of retrieving suggestion input.

Adds selection from selector as single element

Must pass request parameters "suggestionInputSelectorId" holding the value to pass to the binding component, "suggestionSelectionOutputId" holding the value to show, and "suggestionSelectionHiddenId" holding the binding to model.

Additional optional request parameter "suggestionSelectionDeleteId" can be used to show an area where the "clear" button is shown. *


clearSingleSelection

public void clearSingleSelection(ActionEvent event)
Clears single selection.

Must pass request parameters "suggestionSelectionOutputId" holding the value to show, and "suggestionSelectionHiddenId" holding the binding to model.

Additional optional request parameter "suggestionSelectionDeleteId" can be used to hide an area where the "clear" button is shown.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.