|
|||||||||
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
public abstract class AbstractDynaPickList
Nested Class Summary | |
---|---|
class |
AbstractDynaPickList.DefaultValidator
|
Field Summary | |
---|---|
protected DynaButton |
addAllButton
|
protected DynaButton |
addButton
|
protected java.util.List |
allOptions
|
protected DynaGrid |
buttonGrid
|
protected java.lang.String |
cssButtonClass
|
protected java.lang.String |
cssButtonClassDisabled
|
protected Decorator |
decorator
|
protected java.lang.String |
invalidMessageKey
|
protected java.util.List |
leftSelection
|
protected Title |
leftTitle
|
protected java.lang.String |
leftTitleText
|
static int |
PERCENT_UNITS
|
static int |
PIXEL_UNITS
|
protected DynaButton |
removeAllButton
|
protected DynaButton |
removeButton
|
protected java.util.List |
rightSelection
|
protected Title |
rightTitle
|
protected java.lang.String |
rightTitleText
|
protected java.lang.String |
selectedTitle
|
protected java.lang.String |
unselectedTitle
|
Constructor Summary | |
---|---|
AbstractDynaPickList()
|
|
AbstractDynaPickList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints)
|
Method Summary | |
---|---|
void |
addAll()
|
void |
addOne()
|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
java.lang.String |
getAddAllLabel()
Sets the label on the add all button. |
java.lang.String |
getAddLabel()
Gets the label on the add button. |
int |
getButtonHeight()
|
int |
getButtonWidth()
|
java.lang.String |
getCssButtonClass()
|
java.lang.String |
getCssButtonClassDisabled()
|
Decorator |
getDecorator()
Gets the decorator for PickLists. |
Font |
getFont()
Returns the font. |
java.lang.String |
getInvalidMessage()
Gets the message key that is added to the screen, when the component is marked as invalid. |
java.lang.String |
getInvalidMessageKey()
Deprecated. |
java.util.Comparator |
getLeftComparator()
Gets the current comparator that specifies the sort order of the left table. |
protected abstract ListBoxInterface |
getLeftListBox()
|
java.util.List |
getLeftSelection()
Gets the collection of selected java beans in the left listbox. |
int |
getLeftWidth()
|
int |
getLeftWidthUnits()
|
protected abstract java.util.List |
getList()
|
java.lang.String |
getRemoveAllLabel()
Gets the label on the remove all button. |
java.lang.String |
getRemoveLabel()
Gets the label on the remove button. |
java.util.Comparator |
getRightComparator()
Gets the current comparator that specifies the sort order of the right table. |
protected abstract ListBoxInterface |
getRightListBox()
|
java.util.List |
getRightSelection()
Gets the collection of selected java beans in the right listbox. |
int |
getRightWidth()
|
int |
getRightWidthUnits()
|
java.lang.String |
getSelectedTitle()
Gets the title string appearing above the right dynaTable. |
java.lang.String |
getUnselectedTitle()
Gets the title string appearing above the left dynaTable. |
boolean |
isReadOnly()
|
void |
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component. |
void |
removeAll()
Removes all child Components. |
void |
removeOne()
|
void |
setAddAllLabel(java.lang.String addAllLabel)
Sets the label on the add all button. |
void |
setAddLabel(java.lang.String addLabel)
Sets the label on the add button. |
void |
setButtonHeight(int i)
|
void |
setButtonWidth(int buttonWidth)
|
void |
setCssButtonClass(java.lang.String buttonCssClass)
|
void |
setCssButtonClassDisabled(java.lang.String buttonCssClass)
|
void |
setDecorator(Decorator decorator)
Sets the decorator for PickLists. |
void |
setFocused(boolean focused)
Sets the input focus on this component. |
void |
setFont(Font font)
Sets the font of the component. |
void |
setInvalidMessage(java.lang.String invalidMessage)
Sets the message key that is shown when the component is marked as invalid. |
void |
setInvalidMessageKey(java.lang.String s)
Deprecated. |
void |
setLeftComparator(java.util.Comparator comparator)
Sets a comparator for specifying custom sort orders on the left table. |
void |
setLeftSelection(java.util.List leftSelection)
Sets the collection of selected java beans in the left listbox. |
void |
setLeftWidth(int width)
|
void |
setLeftWidthUnits(int widthUnits)
|
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
void |
setRemoveAllLabel(java.lang.String removeAllLabel)
Sets the label on the remove all button. |
void |
setRemoveLabel(java.lang.String removeLabel)
Sets the label on the remove button. |
void |
setRightComparator(java.util.Comparator comparator)
Sets a comparator for specifying custom sort orders on the right table. |
void |
setRightSelection(java.util.List rightSelection)
Sets the collection of selected java beans in the right listbox. |
void |
setRightWidth(int width)
|
void |
setRightWidthUnits(int widthUnits)
|
void |
setSelectedTitle(java.lang.String selectedTitle)
Sets the title string appearing above the right dynaTable. |
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, rebind, 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 |
Methods inherited from interface net.sf.jzeno.echo.Precreation |
---|
applyContext |
Field Detail |
---|
protected java.util.List allOptions
protected DynaButton addButton
protected DynaButton removeButton
protected DynaButton addAllButton
protected DynaButton removeAllButton
protected java.lang.String cssButtonClass
protected java.lang.String cssButtonClassDisabled
protected DynaGrid buttonGrid
protected Decorator decorator
protected java.lang.String unselectedTitle
protected java.lang.String selectedTitle
protected java.lang.String invalidMessageKey
protected java.util.List leftSelection
protected java.util.List rightSelection
protected Title leftTitle
protected Title rightTitle
protected java.lang.String leftTitleText
protected java.lang.String rightTitleText
public static final int PIXEL_UNITS
public static final int PERCENT_UNITS
Constructor Detail |
---|
public AbstractDynaPickList()
public AbstractDynaPickList(java.lang.Class beanClass, java.lang.String propertyName, java.lang.String constructionHints)
Method Detail |
---|
public void addOne()
public void removeOne()
public void addAll()
public void removeAll()
Component
removeAll
in interface Component
removeAll
in class AbstractComponent
public void setButtonWidth(int buttonWidth)
public int getButtonWidth()
public void setLeftWidthUnits(int widthUnits)
public int getLeftWidthUnits()
public int getLeftWidth()
public void setLeftWidth(int width)
public void setRightWidthUnits(int widthUnits)
public int getRightWidthUnits()
public void setRightWidth(int width)
public int getRightWidth()
public void setFocused(boolean focused)
Sets the input focus on this component.
setFocused
in interface Component
setFocused
in class AbstractComponent
focused
- True if the component is to be focused.public java.util.List getLeftSelection()
Gets the collection of selected java beans in the left listbox.
public void setLeftSelection(java.util.List leftSelection)
Sets the collection of selected java beans in the left listbox.
public java.util.List getRightSelection()
Gets the collection of selected java beans in the right listbox.
public void setRightSelection(java.util.List rightSelection)
Sets the collection of selected java beans in the right listbox.
public 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)
public java.lang.String getInvalidMessageKey()
public 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
in
your code. The value specified for this property is translated through
the i18n support in jZeno (EchoSupport.doValidationRecursively(Component)
i18n.properties
).
public void setInvalidMessageKey(java.lang.String s)
public void setAddLabel(java.lang.String addLabel)
Sets the label on the add button.
public java.lang.String getAddLabel()
Gets the label on the add button.
public void setAddAllLabel(java.lang.String addAllLabel)
Sets the label on the add all button.
public java.lang.String getAddAllLabel()
Sets the label on the add all button.
public void setRemoveLabel(java.lang.String removeLabel)
Sets the label on the remove button.
public java.lang.String getRemoveLabel()
Gets the label on the remove button.
public void setRemoveAllLabel(java.lang.String removeAllLabel)
Sets the label on the remove all button.
public java.lang.String getRemoveAllLabel()
Gets the label on the remove all button.
public void setReadOnly(boolean readOnly)
PropertyComponent
Mark this component as read-only.
setReadOnly
in interface PropertyComponent
setReadOnly
in class CustomComponent
public boolean isReadOnly()
isReadOnly
in interface PropertyComponent
isReadOnly
in class CustomComponent
public java.lang.String getSelectedTitle()
Gets the title string appearing above the right dynaTable.
public void setSelectedTitle(java.lang.String selectedTitle)
Sets the title string appearing above the right dynaTable.
public java.lang.String getUnselectedTitle()
Gets the title string appearing above the left dynaTable.
public void setUnselectedTitle(java.lang.String unselectedTitle)
Sets the title string appearing above the left dynaTable.
public void setButtonHeight(int i)
public int getButtonHeight()
public void setFont(Font font)
Component
setFont
in interface Component
setFont
in class AbstractComponent
font
- The new font of the component.public Font getFont()
Component
getFont
in interface Component
getFont
in class AbstractComponent
public Decorator getDecorator()
Gets the decorator for PickLists. This is applied on the bound list models of the constituent ListBoxes.
getDecorator
in interface PropertyComponent
getDecorator
in class CustomComponent
public void setDecorator(Decorator decorator)
Sets the decorator for PickLists. This is applied on the bound list models of the constituent ListBoxes.
setDecorator
in interface PropertyComponent
setDecorator
in class CustomComponent
public void setLeftComparator(java.util.Comparator comparator)
Sets a comparator for specifying custom sort orders on the left table.
public java.util.Comparator getLeftComparator()
Gets the current comparator that specifies the sort order of the left table.
public void setRightComparator(java.util.Comparator comparator)
Sets a comparator for specifying custom sort orders on the right table.
public java.util.Comparator getRightComparator()
Gets the current comparator that specifies the sort order of the right table.
protected abstract ListBoxInterface getRightListBox()
protected abstract ListBoxInterface getLeftListBox()
protected abstract java.util.List getList()
public void applyStyle(Style style)
Component
Style
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 Component
applyStyle
in class AbstractComponent
style
- The style object from which to retrieve properties for this
Component
.public void preRender()
PropertyComponent
Make 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 PropertyComponent
preRender
in class CustomComponent
public java.lang.String getCssButtonClass()
public void setCssButtonClass(java.lang.String buttonCssClass)
public java.lang.String getCssButtonClassDisabled()
public void setCssButtonClassDisabled(java.lang.String buttonCssClass)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |