|
|||||||||
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.DynaRadioButtonList
public class DynaRadioButtonList
Displays a list of radio buttons, with labels, from which the user can select one option.
A list of possible java beans to select from can be set using the
method. These java beans will be
represented on the screen with a label. This label is determined using the
setList(List)
method.
setLabelProperty(String)
Nested Class Summary | |
---|---|
class |
DynaRadioButtonList.DefaultValidator
|
Field Summary |
---|
Constructor Summary | |
---|---|
DynaRadioButtonList()
|
|
DynaRadioButtonList(java.lang.Class beanClass,
java.lang.String propertyName,
java.lang.String constructionHints)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs. |
void |
applyContext()
|
int |
getColumns()
|
java.util.Comparator |
getComparator()
|
Decorator |
getDecorator()
Gets the instance that is used to
decorate the labels on the radio buttons. |
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 |
getLabelProperty()
Gets the property (path) that determines what label is shown for the individual java beans in the list of possible java beans. |
java.util.List |
getList()
Gets the list of java beans the user can select from. |
boolean |
isReadOnly()
|
void |
itemStateChanged(ItemEvent event)
Used internally. |
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
setActionCommand(java.lang.String actionCommand)
|
void |
setColumns(int columns)
Sets the number of radio buttons that are displayed in a single row. |
void |
setComparator(java.util.Comparator comparator)
|
void |
setDecorator(Decorator decorator)
Sets the instance that is used to
decorate the labels on the radio buttons. |
void |
setFocused(boolean newValue)
Sets whether the component is focused. |
void |
setFocused(java.lang.Object key,
boolean newValue)
|
void |
setFont(Font font)
Sets the font of the component. |
void |
setInvalidMessage(java.lang.String invalidMessageKey)
Sets the message key that is shown when the component is marked as invalid. |
void |
setLabelProperty(java.lang.String labelProperty)
Sets the property (path) that determines what label is shown for the individual java beans in the list of possible java beans. |
void |
setList(java.util.List list)
Sets the list of java beans the user can select from. |
void |
setNoTabStop(boolean noTabStop)
|
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
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, preRender, removeValidator, 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 |
Constructor Detail |
---|
public DynaRadioButtonList()
public DynaRadioButtonList(java.lang.Class beanClass, java.lang.String propertyName, java.lang.String constructionHints)
Method Detail |
---|
public void rebind()
RebindableComponent
This operation causes the component to reset it's content to that of the domain model.
rebind
in interface RebindableComponent
rebind
in class CustomComponent
public java.util.List getList()
Gets the list of java beans the user can select from.
public void setList(java.util.List list)
Sets the list of java beans the user can select from.
public java.lang.String getLabelProperty()
Gets the property (path) that determines what label is shown for the individual java beans in the list of possible java beans.
public void setLabelProperty(java.lang.String labelProperty)
Sets the property (path) that determines what label is shown for the individual java beans in the list of possible java beans.
public Decorator getDecorator()
Gets the
instance that is used to
decorate the labels on the radio buttons.
Decorator
getDecorator
in interface PropertyComponent
getDecorator
in class CustomComponent
public void setDecorator(Decorator decorator)
Sets the
instance that is used to
decorate the labels on the radio buttons.
Decorator
setDecorator
in interface PropertyComponent
setDecorator
in class CustomComponent
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 void setInvalidMessage(java.lang.String invalidMessageKey)
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 boolean isReadOnly()
isReadOnly
in interface PropertyComponent
isReadOnly
in class CustomComponent
public void setColumns(int columns)
Sets the number of radio buttons that are displayed in a single row. If not specified, the number of columns defaults to 1 (every radio button on a new line).
public int getColumns()
public void setReadOnly(boolean readOnly)
PropertyComponent
Mark this component as read-only.
setReadOnly
in interface PropertyComponent
setReadOnly
in class CustomComponent
public void itemStateChanged(ItemEvent event)
Used internally.
itemStateChanged
in interface ItemListener
event
- An event describing the selection.public void setComparator(java.util.Comparator comparator)
public java.util.Comparator getComparator()
public void setActionCommand(java.lang.String actionCommand)
setActionCommand
in interface EventSource
setActionCommand
in class CustomComponent
public void actionPerformed(ActionEvent e)
ActionListener
actionPerformed
in interface ActionListener
e
- The event describing the action.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 void setNoTabStop(boolean noTabStop)
public void setFocused(boolean newValue)
Component
setFocused
in interface Component
setFocused
in class AbstractComponent
newValue
- True if the component is to be focused.public void setFocused(java.lang.Object key, boolean newValue)
public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |