com.vaadin.terminal.gwt.client.ui.optiongroup
Class VOptionGroupBase

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.vaadin.terminal.gwt.client.ui.optiongroup.VOptionGroupBase
All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, Focusable, Field
Direct Known Subclasses:
VListSelect, VNativeSelect, VOptionGroup, VTwinColSelect

public abstract class VOptionGroupBase
extends com.google.gwt.user.client.ui.Composite
implements Field, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.KeyPressHandler, Focusable


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static String CLASSNAME_OPTION
           
protected  ApplicationConnection client
           
protected  int cols
           
protected  com.google.gwt.user.client.ui.Panel container
          Panel containing the component
protected  boolean disabled
           
protected  boolean immediate
           
protected  boolean multiselect
           
protected  VNativeButton newItemButton
           
protected  VTextField newItemField
           
protected  boolean nullSelectionAllowed
           
protected  boolean nullSelectionItemAvailable
           
protected  com.google.gwt.user.client.ui.Widget optionsContainer
          Widget holding the different options (e.g.
protected  String paintableId
           
protected  boolean readonly
           
protected  int rows
           
protected  Set<String> selectedKeys
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VOptionGroupBase(String classname)
           
VOptionGroupBase(com.google.gwt.user.client.ui.Widget w, String classname)
           
 
Method Summary
protected abstract  void buildOptions(UIDL uidl)
           
protected  int getColumns()
           
protected  int getRows()
           
protected  String getSelectedItem()
           
protected abstract  String[] getSelectedItems()
           
protected  boolean isDisabled()
           
protected  boolean isImmediate()
           
protected  boolean isMultiselect()
           
protected  boolean isNullSelectionAllowed()
           
protected  boolean isNullSelectionItemAvailable()
           
protected  boolean isReadonly()
           
 void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
           
 void onClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
           
protected abstract  void setTabIndex(int tabIndex)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Focusable
focus
 

Field Detail

CLASSNAME_OPTION

public static final String CLASSNAME_OPTION
See Also:
Constant Field Values

client

protected ApplicationConnection client

paintableId

protected String paintableId

selectedKeys

protected Set<String> selectedKeys

immediate

protected boolean immediate

multiselect

protected boolean multiselect

disabled

protected boolean disabled

readonly

protected boolean readonly

cols

protected int cols

rows

protected int rows

nullSelectionAllowed

protected boolean nullSelectionAllowed

nullSelectionItemAvailable

protected boolean nullSelectionItemAvailable

optionsContainer

protected com.google.gwt.user.client.ui.Widget optionsContainer
Widget holding the different options (e.g. ListBox or Panel for radio buttons) (optional, fallbacks to container Panel)


container

protected final com.google.gwt.user.client.ui.Panel container
Panel containing the component


newItemField

protected VTextField newItemField

newItemButton

protected VNativeButton newItemButton
Constructor Detail

VOptionGroupBase

public VOptionGroupBase(String classname)

VOptionGroupBase

public VOptionGroupBase(com.google.gwt.user.client.ui.Widget w,
                        String classname)
Method Detail

isImmediate

protected boolean isImmediate()

isMultiselect

protected boolean isMultiselect()

isDisabled

protected boolean isDisabled()

isReadonly

protected boolean isReadonly()

isNullSelectionAllowed

protected boolean isNullSelectionAllowed()

isNullSelectionItemAvailable

protected boolean isNullSelectionItemAvailable()

getColumns

protected int getColumns()
Returns:
"cols" specified in uidl, 0 if not specified

getRows

protected int getRows()
Returns:
"rows" specified in uidl, 0 if not specified

setTabIndex

protected abstract void setTabIndex(int tabIndex)

onClick

public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
Specified by:
onClick in interface com.google.gwt.event.dom.client.ClickHandler

onChange

public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
Specified by:
onChange in interface com.google.gwt.event.dom.client.ChangeHandler

onKeyPress

public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
Specified by:
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler

buildOptions

protected abstract void buildOptions(UIDL uidl)

getSelectedItems

protected abstract String[] getSelectedItems()

getSelectedItem

protected String getSelectedItem()


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