Package com.vaadin.v7.client.ui
Class VOptionGroupBase
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- com.vaadin.v7.client.ui.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.HasEnabled,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, com.google.gwt.user.client.ui.HasEnabled
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASSNAME_OPTIONApplicationConnectionclientFor internal use only.intcolsFor internal use only.com.google.gwt.user.client.ui.PanelcontainerPanel containing the component.booleanimmediateFor internal use only.booleanmultiselectFor internal use only.VNativeButtonnewItemButtonFor internal use only.VTextFieldnewItemFieldFor internal use only.booleannullSelectionAllowedFor internal use only.booleannullSelectionItemAvailableFor internal use only.com.google.gwt.user.client.ui.WidgetoptionsContainerWidget holding the different options (e.g.StringpaintableIdFor internal use only.introwsFor internal use only.Set<String>selectedKeysFor internal use only.
-
Constructor Summary
Constructors Constructor Description VOptionGroupBase(com.google.gwt.user.client.ui.Widget w, String classname)VOptionGroupBase(String classname)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidbuildOptions(UIDL uidl)For internal use only.intgetColumns()For internal use only.intgetRows()For internal use only.protected StringgetSelectedItem()protected abstract String[]getSelectedItems()booleanisEnabled()protected booleanisImmediate()protected booleanisMultiselect()protected booleanisNullSelectionAllowed()protected booleanisNullSelectionItemAvailable()booleanisReadonly()voidonChange(com.google.gwt.event.dom.client.ChangeEvent event)voidonClick(com.google.gwt.event.dom.client.ClickEvent event)voidonKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)voidsetEnabled(boolean enabled)voidsetReadonly(boolean readonly)abstract voidsetTabIndex(int tabIndex)protected abstract voidupdateEnabledState()-
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, unsinkEvents
-
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
-
-
-
-
Field Detail
-
CLASSNAME_OPTION
public static final 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 String paintableId
For internal use only. May be removed or replaced in the future.
-
selectedKeys
public Set<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 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)For internal use only. May be removed or replaced in the future.
-
container
public final com.google.gwt.user.client.ui.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.
-
-
Method Detail
-
isImmediate
protected boolean isImmediate()
-
isMultiselect
protected boolean isMultiselect()
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
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(com.google.gwt.event.dom.client.ClickEvent event)
- Specified by:
onClickin interfacecom.google.gwt.event.dom.client.ClickHandler
-
onChange
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
- Specified by:
onChangein interfacecom.google.gwt.event.dom.client.ChangeHandler
-
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
- Specified by:
onKeyPressin interfacecom.google.gwt.event.dom.client.KeyPressHandler
-
setReadonly
public void setReadonly(boolean readonly)
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
buildOptions
public abstract void buildOptions(UIDL uidl)
For internal use only. May be removed or replaced in the future.
-
getSelectedItems
protected abstract String[] getSelectedItems()
-
updateEnabledState
protected abstract void updateEnabledState()
-
getSelectedItem
protected String getSelectedItem()
-
-