|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField
com.vaadin.ui.AbstractSelect
com.vaadin.ui.OptionGroup
public class OptionGroup
Configures select to be used as an option group.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractField |
|---|
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent |
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
|---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
| Nested classes/interfaces inherited from interface com.vaadin.data.Container |
|---|
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Field |
|---|
Field.ValueChangeEvent |
| Nested classes/interfaces inherited from interface com.vaadin.data.Buffered |
|---|
Buffered.SourceException |
| Nested classes/interfaces inherited from interface com.vaadin.data.Property |
|---|
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.ui.AbstractSelect |
|---|
ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, items |
| Constructor Summary | |
|---|---|
OptionGroup()
|
|
OptionGroup(String caption)
|
|
OptionGroup(String caption,
Collection<?> options)
|
|
OptionGroup(String caption,
Container dataSource)
|
|
| Method Summary | |
|---|---|
void |
addListener(FieldEvents.BlurListener listener)
Adds a BlurListener to the Component which gets fired
when a Field loses keyboard focus. |
void |
addListener(FieldEvents.FocusListener listener)
Adds a FocusListener to the Component which gets fired
when a Field receives keyboard focus. |
void |
changeVariables(Object source,
Map<String,Object> variables)
Invoked when the value of a variable has changed. |
boolean |
isHtmlContentAllowed()
Checks whether captions are interpreted as html or plain text. |
boolean |
isItemEnabled(Object itemId)
Returns true if the item is enabled. |
void |
paintContent(PaintTarget target)
Paints the content of this component. |
protected void |
paintItem(PaintTarget target,
Object itemId)
|
void |
removeListener(FieldEvents.BlurListener listener)
Removes a BlurListener from the Component. |
void |
removeListener(FieldEvents.FocusListener listener)
Removes a FocusListener from the Component. |
void |
setHtmlContentAllowed(boolean htmlContentAllowed)
Sets whether html is allowed in the item captions. |
void |
setItemEnabled(Object itemId,
boolean enabled)
Sets an item disabled or enabled. |
protected void |
setValue(Object newValue,
boolean repaintIsNotNeeded)
Sets the visible value of the property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Field |
|---|
getDescription, setCaption, setDescription |
| Constructor Detail |
|---|
public OptionGroup()
public OptionGroup(String caption,
Collection<?> options)
public OptionGroup(String caption,
Container dataSource)
public OptionGroup(String caption)
| Method Detail |
|---|
public void paintContent(PaintTarget target)
throws PaintException
AbstractSelect
paintContent in class AbstractSelecttarget - the Paint Event.
PaintException - if the paint operation failed.
protected void paintItem(PaintTarget target,
Object itemId)
throws PaintException
paintItem in class AbstractSelectPaintException
public void changeVariables(Object source,
Map<String,Object> variables)
AbstractSelect
changeVariables in interface VariableOwnerchangeVariables in class AbstractSelectsource - the Source of the variable change. This is the origin of the
event. For example in Web Adapter this is the request.variables - the Mapping from variable names to new variable values.AbstractComponent.changeVariables(java.lang.Object,
java.util.Map)public void addListener(FieldEvents.BlurListener listener)
FieldEvents.BlurNotifierBlurListener to the Component which gets fired
when a Field loses keyboard focus.
addListener in interface FieldEvents.BlurNotifierFieldEvents.BlurListenerpublic void removeListener(FieldEvents.BlurListener listener)
FieldEvents.BlurNotifierBlurListener from the Component.
removeListener in interface FieldEvents.BlurNotifierFieldEvents.BlurListenerpublic void addListener(FieldEvents.FocusListener listener)
FieldEvents.FocusNotifierFocusListener to the Component which gets fired
when a Field receives keyboard focus.
addListener in interface FieldEvents.FocusNotifierFieldEvents.FocusListenerpublic void removeListener(FieldEvents.FocusListener listener)
FieldEvents.FocusNotifierFocusListener from the Component.
removeListener in interface FieldEvents.FocusNotifierFieldEvents.FocusListener
protected void setValue(Object newValue,
boolean repaintIsNotNeeded)
AbstractSelectThe value of the select is the selected item id. If the select is in multiselect-mode, the value is a set of selected item keys. In multiselect mode all collections of id:s can be assigned.
setValue in class AbstractSelectnewValue - the New selected item or collection of selected items.repaintIsNotNeeded - True if caller is sure that repaint is not needed.com.vaadin.ui.AbstractField#setValue(java.lang.Object,
java.lang.Boolean)
public void setItemEnabled(Object itemId,
boolean enabled)
itemId - the id of the item to be disabled or enabledenabled - if true the item is enabled, otherwise the item is disabledpublic boolean isItemEnabled(Object itemId)
itemId - the id of the item to be checked
setItemEnabled(Object, boolean)public void setHtmlContentAllowed(boolean htmlContentAllowed)
htmlContentAllowed - true if the captions are used as html, false if used as plain
textpublic boolean isHtmlContentAllowed()
setHtmlContentAllowed(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||