Class CCMultiValueSelection

java.lang.Object
org.eclnt.jsfserver.pagebean.PageBean
org.eclnt.jsfserver.pagebean.component.PageBeanComponentBase
org.eclnt.jsfserver.pagebean.component.PageBeanComponent
org.eclnt.ccaddons.pbc.CCMultiValueSelection
All Implemented Interfaces:
Serializable, org.eclnt.jsfserver.elements.IConfiguredByLayout, org.eclnt.jsfserver.pagebean.component.IPageBeanComponent, org.eclnt.jsfserver.pagebean.componentascontrol.IPageBeanComponentAsControlImplicitlyCreateInstance, org.eclnt.jsfserver.pagebean.IPageBean, org.eclnt.jsfserver.util.valuemgmt.IDynamicContentBindingObject

public class CCMultiValueSelection extends org.eclnt.jsfserver.pagebean.component.PageBeanComponent implements Serializable, org.eclnt.jsfserver.pagebean.componentascontrol.IPageBeanComponentAsControlImplicitlyCreateInstance
See Also:
  • Field Details

  • Constructor Details

    • CCMultiValueSelection

      public CCMultiValueSelection()
  • Method Details

    • getRootExpressionUsedInPage

      public String getRootExpressionUsedInPage()
      Specified by:
      getRootExpressionUsedInPage in interface org.eclnt.jsfserver.pagebean.IPageBean
      Specified by:
      getRootExpressionUsedInPage in class org.eclnt.jsfserver.pagebean.PageBean
    • openAsPopup

      public static CCMultiValueSelection openAsPopup(org.eclnt.jsfserver.pagebean.IPageBean caller, int width, int height)
    • prepare

      public void prepare(CCMultiValueSelection.IListener listener)
    • initializePageBean

      public void initializePageBean(Map<String,String> initData)
      Specified by:
      initializePageBean in interface org.eclnt.jsfserver.pagebean.component.IPageBeanComponent
      Overrides:
      initializePageBean in class org.eclnt.jsfserver.pagebean.component.PageBeanComponent
    • getRenderMode

      public int getRenderMode()
      There are two render modes:

      MODE_DEFAULT renders per grid row one checkbox - if text is too long it is cut

      1 renders per grid row a checkbox and of text pane - if text is too long the it is broken and the size of the row is increase
    • setRenderMode

      public void setRenderMode(int renderMode)
    • setAvailableButtonBar

      public void setAvailableButtonBar(boolean value)
      Commands like "select all", "remove selection" are available via right mouse button menu and via buttons. If you do NOT want the buttons to show up, then set this property to false.
    • getAvailableButtonBar

      public boolean getAvailableButtonBar()
    • getAvailableFilterBar

      public boolean getAvailableFilterBar()
      There is an optional filter bar containing a text field, by which the user can search for items. The matching items are sorted to the top of the list.
    • setAvailableFilterBar

      public void setAvailableFilterBar(boolean availableFilterBar)
    • getAvailablePopupMenuButton

      public boolean getAvailablePopupMenuButton()
      If using the filter bar (setAvailableFilterBar(boolean)) then there are quite a lot of popup menu items that have to do with selecting the right items. To better present these items to the user you can activate a button which shows all the popup menu items when pressed.
    • setAvailablePopupMenuButton

      public void setAvailablePopupMenuButton(boolean value)
    • getStylevariantFilterField

      public String getStylevariantFilterField()
    • setStylevariantFilterField

      public void setStylevariantFilterField(String value)
    • getStylevariantButton

      public String getStylevariantButton()
    • setStylevariantButton

      public void setStylevariantButton(String value)
    • getStylevariantFixgrid

      public String getStylevariantFixgrid()
    • setStylevariantFixgrid

      public void setStylevariantFixgrid(String value)
    • getStylevariantCheckbox

      public String getStylevariantCheckbox()
    • setStylevariantCheckbox

      public void setStylevariantCheckbox(String value)
    • getSearchText

      public String getSearchText()
    • setSearchText

      public void setSearchText(String value)
    • getSelectedValuesAtTop

      public boolean getSelectedValuesAtTop()
    • setSelectedValuesAtTop

      public void setSelectedValuesAtTop(boolean selectedValuesAtTop)
    • getHotkeyInvertSelection

      public String getHotkeyInvertSelection()
    • setHotkeyInvertSelection

      public void setHotkeyInvertSelection(String value)
    • getHotkeySelectFiltered

      public String getHotkeySelectFiltered()
    • setHotkeySelectFiltered

      public void setHotkeySelectFiltered(String value)
    • getHotkeyDeselectAll

      public String getHotkeyDeselectAll()
    • setHotkeyDeselectAll

      public void setHotkeyDeselectAll(String value)
    • getHotkeySelectAll

      public String getHotkeySelectAll()
    • setHotkeySelectAll

      public void setHotkeySelectAll(String value)
    • getBackgroundColorFiltered

      public String getBackgroundColorFiltered()
    • setBackgroundColorFiltered

      public void setBackgroundColorFiltered(String value)
    • getBackgroundColorNonFiltered

      public String getBackgroundColorNonFiltered()
    • setBackgroundColorNonFiltered

      public void setBackgroundColorNonFiltered(String value)
    • getHeight

      public String getHeight()
    • setHeight

      public void setHeight(String value)
    • getWidth

      public String getWidth()
    • setWidth

      public void setWidth(String value)
    • getFilterFieldRequestFocus

      public Long getFilterFieldRequestFocus()
    • setFilterFieldRequestFocus

      public void setFilterFieldRequestFocus(Long value)
    • getGrid

      public org.eclnt.jsfserver.elements.impl.FIXGRIDListBinding<CCMultiValueSelection.GridItem> getGrid()
    • getColWidthCheckbox

      public String getColWidthCheckbox()
    • getColWidthTextPane

      public String getColWidthTextPane()
    • getRenderedColTextPane

      public boolean getRenderedColTextPane()
    • getGridDynamicHeightSizing

      public boolean getGridDynamicHeightSizing()
    • clear

      public void clear()
    • addValue

      public void addValue(String id, String text)
      Adds a value to the list of selectable values.
    • addValue

      public void addValue(String id, String text, String background, String foreground)
      Adds a value to the list of selectable values - with definitions of background and foreground colors. - Mandatory values are id and text all others only to be filled if required.
    • addValue

      public void addValue(String id, String text, String background, String foreground, String tooltip)
      Adds a value to the list of selectable values - with definitions of background and foreground colors and tooltip. - Mandatory values are id and text all others only to be filled if required.
    • setSelectedIds

      public void setSelectedIds(Set<String> selectedIds)
      Defines which values are selected. If not passed then no value is selected. Please note: the Set-instance that you pass will be used and updated by the component in the follow on processing.
    • getSelectedIds

      public Set<String> getSelectedIds()
    • setDisabledIds

      public void setDisabledIds(Set<String> disabledIds)
      You can disable certain values so that are not select-able.
    • onDeselectAll

      public void onDeselectAll(org.eclnt.jsfserver.base.faces.event.ActionEvent event)
    • getAvailableSelectAllFiltered

      public boolean getAvailableSelectAllFiltered()
    • onSelectAll

      public void onSelectAll(org.eclnt.jsfserver.base.faces.event.ActionEvent event)
    • onSelectAllFiltered

      public void onSelectAllFiltered(org.eclnt.jsfserver.base.faces.event.ActionEvent event)
    • onInvertSelection

      public void onInvertSelection(org.eclnt.jsfserver.base.faces.event.ActionEvent event)
    • onSearchTextAction

      public void onSearchTextAction(org.eclnt.jsfserver.base.faces.event.ActionEvent event)
    • sortGridItems

      public void sortGridItems()
    • sortGridItems

      public void sortGridItems(boolean forced)