com.vaadin.client.ui
Class VOptionGroupBase

java.lang.Object
  extended by Composite
      extended by com.vaadin.client.ui.VOptionGroupBase
All Implemented Interfaces:
Focusable, Field
Direct Known Subclasses:
VListSelect, VNativeSelect, VOptionGroup, VTwinColSelect

public abstract class VOptionGroupBase
extends Composite
implements Field, Focusable


Field Summary
static java.lang.String CLASSNAME_OPTION
           
 ApplicationConnection client
          For internal use only.
 int cols
          For internal use only.
 Panel container
          Panel containing the component.
 boolean immediate
          For internal use only.
 boolean multiselect
          For internal use only.
 VNativeButton newItemButton
          For internal use only.
 VTextField newItemField
          For internal use only.
 boolean nullSelectionAllowed
          For internal use only.
 boolean nullSelectionItemAvailable
          For internal use only.
 Widget optionsContainer
          Widget holding the different options (e.g.
 java.lang.String paintableId
          For internal use only.
 int rows
          For internal use only.
 java.util.Set<java.lang.String> selectedKeys
          For internal use only.
 
Constructor Summary
VOptionGroupBase(java.lang.String classname)
           
VOptionGroupBase(Widget w, java.lang.String classname)
           
 
Method Summary
abstract  void buildOptions(UIDL uidl)
          For internal use only.
 int getColumns()
          For internal use only.
 int getRows()
          For internal use only.
protected  java.lang.String getSelectedItem()
           
protected abstract  java.lang.String[] getSelectedItems()
           
 boolean isEnabled()
           
protected  boolean isImmediate()
           
protected  boolean isMultiselect()
           
protected  boolean isNullSelectionAllowed()
           
protected  boolean isNullSelectionItemAvailable()
           
 boolean isReadonly()
           
 void onChange(ChangeEvent event)
           
 void onClick(ClickEvent event)
           
 void onKeyPress(KeyPressEvent event)
           
 void setEnabled(boolean enabled)
           
 void setReadonly(boolean readonly)
           
abstract  void setTabIndex(int tabIndex)
           
protected abstract  void updateEnabledState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.client.Focusable
focus
 

Field Detail

CLASSNAME_OPTION

public static final java.lang.String CLASSNAME_OPTION
See Also:
Constant Field Values

client

public ApplicationConnection client
For internal use only. May be removed or replaced in the future.


paintableId

public java.lang.String paintableId
For internal use only. May be removed or replaced in the future.


selectedKeys

public java.util.Set<java.lang.String> selectedKeys
For internal use only. May be removed or replaced in the future.


immediate

public boolean immediate
For internal use only. May be removed or replaced in the future.


multiselect

public boolean multiselect
For internal use only. May be removed or replaced in the future.


cols

public int cols
For internal use only. May be removed or replaced in the future.


rows

public int rows
For internal use only. May be removed or replaced in the future.


nullSelectionAllowed

public boolean nullSelectionAllowed
For internal use only. May be removed or replaced in the future.


nullSelectionItemAvailable

public boolean nullSelectionItemAvailable
For internal use only. May be removed or replaced in the future.


optionsContainer

public Widget optionsContainer
Widget holding the different options (e.g. ListBox or Panel for radio buttons) (optional, fallbacks to container Panel)

For internal use only. May be removed or replaced in the future.


container

public final Panel container
Panel containing the component.

For internal use only. May be removed or replaced in the future.


newItemField

public VTextField newItemField
For internal use only. May be removed or replaced in the future.


newItemButton

public VNativeButton newItemButton
For internal use only. May be removed or replaced in the future.

Constructor Detail

VOptionGroupBase

public VOptionGroupBase(java.lang.String classname)

VOptionGroupBase

public VOptionGroupBase(Widget w,
                        java.lang.String classname)
Method Detail

isImmediate

protected boolean isImmediate()

isMultiselect

protected boolean isMultiselect()

isEnabled

public boolean isEnabled()

isReadonly

public boolean isReadonly()

isNullSelectionAllowed

protected boolean isNullSelectionAllowed()

isNullSelectionItemAvailable

protected boolean isNullSelectionItemAvailable()

getColumns

public int getColumns()
For internal use only. May be removed or replaced in the future.

Returns:
"cols" specified in uidl, 0 if not specified

getRows

public int getRows()
For internal use only. May be removed or replaced in the future.

Returns:
"rows" specified in uidl, 0 if not specified

setTabIndex

public abstract void setTabIndex(int tabIndex)

onClick

public void onClick(ClickEvent event)

onChange

public void onChange(ChangeEvent event)

onKeyPress

public void onKeyPress(KeyPressEvent event)

setReadonly

public void setReadonly(boolean readonly)

setEnabled

public void setEnabled(boolean enabled)

buildOptions

public abstract void buildOptions(UIDL uidl)
For internal use only. May be removed or replaced in the future.


getSelectedItems

protected abstract java.lang.String[] getSelectedItems()

updateEnabledState

protected abstract void updateEnabledState()

getSelectedItem

protected java.lang.String getSelectedItem()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.