com.vaadin.terminal.gwt.client.ui
Class VTwinColSelect

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.VTwinColSelect
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.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, Focusable, Paintable, Field

public class VTwinColSelect
extends com.google.gwt.user.client.ui.Composite


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  String id
           
protected  com.google.gwt.user.client.ui.Widget optionsContainer
          Widget holding the different options (e.g.
protected  Set<String> selectedKeys
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VTwinColSelect()
           
 
Method Summary
protected  void buildOptions(UIDL uidl)
           
 void focus()
          Sets focus to this widget.
protected  int getColumns()
           
protected  int getRows()
           
protected  String getSelectedItem()
           
protected  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)
           
 void setHeight(String height)
           
protected  void setTabIndex(int tabIndex)
           
 void setWidth(String width)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, 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, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME_OPTION

public static final String CLASSNAME_OPTION
See Also:
Constant Field Values

client

protected ApplicationConnection client

id

protected String id

selectedKeys

protected Set<String> selectedKeys

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)

Constructor Detail

VTwinColSelect

public VTwinColSelect()
Method Detail

buildOptions

protected void buildOptions(UIDL uidl)

getSelectedItems

protected String[] getSelectedItems()

onClick

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

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

setTabIndex

protected void setTabIndex(int tabIndex)

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.


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

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

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

getSelectedItem

protected String getSelectedItem()


Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved.