net.sf.jzeno.echo.databinding
Interface ListBoxInterface

All Superinterfaces:
PropertyComponent, java.io.Serializable
All Known Implementing Classes:
DynaLargeListBox, DynaListBox, DynaSelectField

public interface ListBoxInterface
extends PropertyComponent


Method Summary
 void clearSelection()
           Clears any selection on the component.
 java.util.Comparator getComparator()
           
 Decorator getDecorator()
           Gets the decorator, if any is configured.
 Font getFont()
           
 java.lang.String getInvalidMessage()
           Gets the message key that is added to the screen, when the component is marked as invalid.
 java.util.List getList()
           Gets the list of java beans the user can select from.
 int getWidth()
           
 int getWidthUnits()
           
 boolean isMultiSelect()
           Gets whether or not the listbox allows multiple items to be selected.
 void setComparator(java.util.Comparator comparator)
           
 void setDecorator(Decorator decorator)
           Sets the decorator.
 void setFocused(boolean b)
           
 void setFont(Font font)
           
 void setInvalidMessage(java.lang.String invalidMessage)
           Sets the message key that is shown when the component is marked as invalid.
 void setList(java.util.List list)
           Sets the list of java beans the user can select from.
 void setMultiSelect(boolean allowMultiSelect)
           Sets whether or not the listbox allows multiple items to be selected.
 void setWidth(int width)
           
 void setWidthUnits(int widthUnits)
           
 
Methods inherited from interface net.sf.jzeno.echo.databinding.PropertyComponent
addValidator, getBean, getBeanClass, getProperty, getValidationErrors, getValidators, getValue, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, removeValidator, setBean, setBeanClass, setProperty, setReadOnly, setRequired, setValue
 

Method Detail

getList

java.util.List getList()

Gets the list of java beans the user can select from.


setList

void setList(java.util.List list)

Sets the list of java beans the user can select from.


getDecorator

Decorator getDecorator()
Description copied from interface: PropertyComponent

Gets the decorator, if any is configured.

Specified by:
getDecorator in interface PropertyComponent

setDecorator

void setDecorator(Decorator decorator)
Description copied from interface: PropertyComponent

Sets the decorator.

Specified by:
setDecorator in interface PropertyComponent

getInvalidMessage

java.lang.String getInvalidMessage()

Gets the message key that is added to the screen, when the component is marked as invalid. Also see setInvalidMessage(String).


setInvalidMessage

void setInvalidMessage(java.lang.String invalidMessage)

Sets the message key that is shown when the component is marked as invalid. Typically the component is marked invalid when you call EchoSupport.doValidationRecursively(Component) in your code. The value specified for this property is translated through the i18n support in jZeno (i18n.properties).


isMultiSelect

boolean isMultiSelect()

Gets whether or not the listbox allows multiple items to be selected.


setMultiSelect

void setMultiSelect(boolean allowMultiSelect)

Sets whether or not the listbox allows multiple items to be selected.


clearSelection

void clearSelection()

Clears any selection on the component.


setComparator

void setComparator(java.util.Comparator comparator)

getComparator

java.util.Comparator getComparator()

setWidth

void setWidth(int width)

getWidth

int getWidth()

setWidthUnits

void setWidthUnits(int widthUnits)

getWidthUnits

int getWidthUnits()

setFocused

void setFocused(boolean b)

setFont

void setFont(Font font)

getFont

Font getFont()