|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.databinding.AbstractDynaPickList
net.sf.jzeno.echo.databinding.DynaLargePickList
public class DynaLargePickList
A component for selecting one or multiple options from a list of many. It visualizes 2 tables, left with options not yet selected, and right with options that were selected. Items can be moved between both tables by using move buttons. This component is recommended when the number of options is large. Search-functionality is enabled by default but can disabled if you want.
A list of java beans that the user can select from can be set on this
component using the method.
setList(List)
You should bind this component to a property of type
java.util.Collection. This collection will be filled with the
selected java beans, from the list of possible java beans.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.jzeno.echo.databinding.AbstractDynaPickList |
|---|
AbstractDynaPickList.DefaultValidator |
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class net.sf.jzeno.echo.databinding.AbstractDynaPickList |
|---|
addAllButton, addButton, allOptions, buttonGrid, cssButtonClass, cssButtonClassDisabled, decorator, invalidMessageKey, leftSelection, leftTitle, leftTitleText, PERCENT_UNITS, PIXEL_UNITS, removeAllButton, removeButton, rightSelection, rightTitle, rightTitleText, selectedTitle, unselectedTitle |
| Constructor Summary | |
|---|---|
DynaLargePickList()
Creates an unbound component. |
|
DynaLargePickList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints,
ConstructionList cl)
Creates a databound component. |
|
DynaLargePickList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints,
ConstructionList leftCl,
ConstructionList rightCl)
Creates a databound component. |
|
| Method Summary | |
|---|---|
void |
applyContext()
|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
void |
changed(java.util.Collection collection)
|
java.lang.String |
getClearButtonText()
|
int |
getClearButtonWidth()
|
java.lang.String |
getFilterTitleExtension()
|
Color |
getLeftBorderColor()
Gets the color of the border (between cells) of the left table. |
Color |
getLeftEvenBackgroundColor()
Gets the color that is used for the even rows in the left table. |
protected ListBoxInterface |
getLeftListBox()
|
Color |
getLeftOddBackgroundColor()
Gets the color that is used for the odd rows in the left table. |
Color |
getLeftRolloverBackground()
|
int |
getLeftTablePreferredRowsPerPage()
|
int |
getLeftTableRowsPerPage()
|
java.util.List |
getList()
|
Color |
getRightBorderColor()
Gets the color of the border (between cells) of the right table. |
Color |
getRightEvenBackgroundColor()
Gets the color that is used for the even rows in the right table. |
protected ListBoxInterface |
getRightListBox()
|
Color |
getRightOddBackgroundColor()
Gets the color that is used for the odd rows in the right table. |
Color |
getRightRolloverBackground()
|
int |
getRightTablePreferredRowsPerPage()
|
int |
getRightTableRowsPerPage()
|
java.lang.String |
getSearchButtonText()
|
int |
getSearchButtonWidth()
|
boolean |
isFireOnSelection()
|
boolean |
isLeftListSearchable()
|
boolean |
isLeftRolloverEnabled()
|
boolean |
isRightListSearchable()
|
boolean |
isRightRolloverEnabled()
|
boolean |
isSearchable()
Deprecated. use isLeftListSearchable |
boolean |
isSelectionHandlesShown()
|
void |
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component. |
void |
propagateEvent(ActionEvent event)
|
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
setClearButtonText(java.lang.String text)
|
void |
setClearButtonWidth(int width)
|
void |
setFilterTitleExtension(java.lang.String filterTitleExtension)
|
void |
setFireOnSelection(boolean fireOnSelection)
|
void |
setLeftBorderColor(Color color)
Sets the color of the border (between cells) of the left table. |
void |
setLeftEvenBackgroundColor(Color leftEvenBackgroundColor)
Sets the color that is used for the even rows in the left table. |
void |
setLeftListSearchable(boolean searchable)
|
void |
setLeftOddBackgroundColor(Color leftOddBackgroundColor)
Sets the color that is used for the odd rows in the left table. |
void |
setLeftRolloverBackground(Color c)
|
void |
setLeftRolloverEnabled(boolean b)
|
void |
setLeftTablePreferredRowsPerPage(int i)
|
void |
setLeftTableRowsPerPage(int i)
|
void |
setList(java.util.List allOptions)
|
void |
setRightBorderColor(Color color)
Sets the color of the border (between cells) of the right table. |
void |
setRightEvenBackgroundColor(Color rightEvenBackgroundColor)
Sets the color that is used for the even rows in the right table. |
void |
setRightListSearchable(boolean searchable)
|
void |
setRightOddBackgroundColor(Color rightOddBackgroundColor)
Sets the color that is used for the odd rows in the right table. |
void |
setRightRolloverBackground(Color c)
|
void |
setRightRolloverEnabled(boolean b)
|
void |
setRightTablePreferredRowsPerPage(int i)
|
void |
setRightTableRowsPerPage(int i)
|
void |
setSearchable(boolean searchable)
Deprecated. use setLeftListSearchable |
void |
setSearchButtonText(java.lang.String text)
|
void |
setSearchButtonWidth(int width)
|
void |
setSelectionHandlesShown(boolean b)
|
void |
setUnselectedTitle(java.lang.String unselectedTitle)
Sets the title string appearing above the left dynaTable. |
| Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
|---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isRequired, isValid, markInvalid, markValid, removeValidator, setActionCommand, setBean, setBeanClass, setNullObject, setProperty, setRequired, setValue, traceValue, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public DynaLargePickList()
Creates an unbound component.
public DynaLargePickList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints,
ConstructionList cl)
Creates a databound component. Assigns the same construction list to both the left and the right table.
public DynaLargePickList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints,
ConstructionList leftCl,
ConstructionList rightCl)
Creates a databound component.
| Method Detail |
|---|
public void rebind()
RebindableComponentThis operation causes the component to reset it's content to that of the domain model.
rebind in interface RebindableComponentrebind in class CustomComponentpublic java.util.List getList()
getList in class AbstractDynaPickListpublic void setList(java.util.List allOptions)
public void propagateEvent(ActionEvent event)
propagateEvent in interface EventPropagatorpublic void applyStyle(Style style)
ComponentStyle
object. The version of this method in Component will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle in interface ComponentapplyStyle in class AbstractDynaPickListstyle - The style object from which to retrieve properties for this
Component.public void setSelectionHandlesShown(boolean b)
public boolean isSelectionHandlesShown()
public void setLeftRolloverEnabled(boolean b)
public boolean isLeftRolloverEnabled()
public void setRightRolloverEnabled(boolean b)
public boolean isRightRolloverEnabled()
public void setLeftRolloverBackground(Color c)
public Color getLeftRolloverBackground()
public void setRightRolloverBackground(Color c)
public Color getRightRolloverBackground()
public void setLeftTableRowsPerPage(int i)
public int getLeftTableRowsPerPage()
public void setRightTableRowsPerPage(int i)
public int getRightTableRowsPerPage()
public void setLeftTablePreferredRowsPerPage(int i)
public int getLeftTablePreferredRowsPerPage()
public void setRightTablePreferredRowsPerPage(int i)
public int getRightTablePreferredRowsPerPage()
public Color getLeftEvenBackgroundColor()
Gets the color that is used for the even rows in the left table.
public void setLeftEvenBackgroundColor(Color leftEvenBackgroundColor)
Sets the color that is used for the even rows in the left table.
public Color getLeftOddBackgroundColor()
Gets the color that is used for the odd rows in the left table.
public void setLeftOddBackgroundColor(Color leftOddBackgroundColor)
Sets the color that is used for the odd rows in the left table.
public void setLeftBorderColor(Color color)
Sets the color of the border (between cells) of the left table.
public Color getLeftBorderColor()
Gets the color of the border (between cells) of the left table.
public Color getRightEvenBackgroundColor()
Gets the color that is used for the even rows in the right table.
public void setRightEvenBackgroundColor(Color rightEvenBackgroundColor)
Sets the color that is used for the even rows in the right table.
public Color getRightOddBackgroundColor()
Gets the color that is used for the odd rows in the right table.
public void setRightOddBackgroundColor(Color rightOddBackgroundColor)
Sets the color that is used for the odd rows in the right table.
public void setRightBorderColor(Color color)
Sets the color of the border (between cells) of the right table.
public Color getRightBorderColor()
Gets the color of the border (between cells) of the right table.
public void setSearchable(boolean searchable)
searchable - public boolean isSearchable()
public void setLeftListSearchable(boolean searchable)
searchable - public boolean isLeftListSearchable()
public void setRightListSearchable(boolean searchable)
searchable - public boolean isRightListSearchable()
public void setSearchButtonWidth(int width)
public int getSearchButtonWidth()
public void setSearchButtonText(java.lang.String text)
public java.lang.String getSearchButtonText()
public void setClearButtonWidth(int width)
public int getClearButtonWidth()
public void setClearButtonText(java.lang.String text)
public java.lang.String getClearButtonText()
public boolean isFireOnSelection()
public void setFireOnSelection(boolean fireOnSelection)
protected ListBoxInterface getLeftListBox()
getLeftListBox in class AbstractDynaPickListprotected ListBoxInterface getRightListBox()
getRightListBox in class AbstractDynaPickListpublic void preRender()
PropertyComponentMake changes to the visual representation of this component before Echo starts rendering the component.
Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.
preRender in interface PropertyComponentpreRender in class AbstractDynaPickListpublic java.lang.String getFilterTitleExtension()
public void setFilterTitleExtension(java.lang.String filterTitleExtension)
public void setUnselectedTitle(java.lang.String unselectedTitle)
AbstractDynaPickListSets the title string appearing above the left dynaTable.
setUnselectedTitle in class AbstractDynaPickListpublic void applyContext()
applyContext in interface Precreationpublic void changed(java.util.Collection collection)
changed in interface CollectionChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||