Package com.vaadin.v7.client.ui
Class VTwinColSelect
- 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
-
- com.vaadin.v7.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.DoubleClickHandler,com.google.gwt.event.dom.client.KeyDownHandler,com.google.gwt.event.dom.client.KeyPressHandler,com.google.gwt.event.dom.client.MouseDownHandler,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,SubPartAware
public class VTwinColSelect extends VOptionGroupBase implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.DoubleClickHandler, SubPartAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classVTwinColSelect.DoubleClickListBoxA ListBox which catches double clicks.
-
Field Summary
Fields Modifier and Type Field Description com.google.gwt.user.client.ui.FlowPanelcaptionWrapperFor internal use only.static StringCLASSNAME-
Fields inherited from class com.vaadin.v7.client.ui.VOptionGroupBase
CLASSNAME_OPTION, client, cols, container, immediate, multiselect, newItemButton, newItemField, nullSelectionAllowed, nullSelectionItemAvailable, optionsContainer, paintableId, rows, selectedKeys
-
-
Constructor Summary
Constructors Constructor Description VTwinColSelect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildOptions(UIDL uidl)For internal use only.voidclearInternalHeights()For internal use only.voidclearInternalWidths()For internal use only.voidfocus()protected intgetNavigationSelectKey()Get the key that selects an item in the table.com.google.gwt.user.client.ui.HTMLgetOptionsCaption()protected String[]getSelectedItems()com.google.gwt.user.client.ui.HTMLgetSelectionsCaption()com.google.gwt.user.client.ElementgetSubPartElement(String subPart)StringgetSubPartName(com.google.gwt.user.client.Element subElement)voidonClick(com.google.gwt.event.dom.client.ClickEvent event)voidonDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)voidonKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)voidonMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)voidsetInternalHeights()For internal use only.voidsetInternalWidths()For internal use only.voidsetTabIndex(int tabIndex)voidupdateCaptions(UIDL uidl)For internal use only.voidupdateEnabledState()-
Methods inherited from class com.vaadin.v7.client.ui.VOptionGroupBase
getColumns, getRows, getSelectedItem, isEnabled, isImmediate, isMultiselect, isNullSelectionAllowed, isNullSelectionItemAvailable, isReadonly, onChange, onKeyPress, setEnabled, setReadonly
-
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
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
captionWrapper
public com.google.gwt.user.client.ui.FlowPanel captionWrapper
For internal use only. May be removed or replaced in the future.
-
-
Method Detail
-
getOptionsCaption
public com.google.gwt.user.client.ui.HTML getOptionsCaption()
-
getSelectionsCaption
public com.google.gwt.user.client.ui.HTML getSelectionsCaption()
-
updateCaptions
public void updateCaptions(UIDL uidl)
For internal use only. May be removed or replaced in the future.
-
buildOptions
public void buildOptions(UIDL uidl)
Description copied from class:VOptionGroupBaseFor internal use only. May be removed or replaced in the future.- Specified by:
buildOptionsin classVOptionGroupBase
-
getSelectedItems
protected String[] getSelectedItems()
- Specified by:
getSelectedItemsin classVOptionGroupBase
-
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
- Specified by:
onClickin interfacecom.google.gwt.event.dom.client.ClickHandler- Overrides:
onClickin classVOptionGroupBase
-
clearInternalHeights
public void clearInternalHeights()
For internal use only. May be removed or replaced in the future.
-
setInternalHeights
public void setInternalHeights()
For internal use only. May be removed or replaced in the future.
-
clearInternalWidths
public void clearInternalWidths()
For internal use only. May be removed or replaced in the future.
-
setInternalWidths
public void setInternalWidths()
For internal use only. May be removed or replaced in the future.
-
setTabIndex
public void setTabIndex(int tabIndex)
- Specified by:
setTabIndexin classVOptionGroupBase
-
updateEnabledState
public void updateEnabledState()
- Specified by:
updateEnabledStatein classVOptionGroupBase
-
getNavigationSelectKey
protected int getNavigationSelectKey()
Get the key that selects an item in the table. By default it is the Enter key but by overriding this you can change the key to whatever you want.- Returns:
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDownin interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
onMouseDown
public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
- Specified by:
onMouseDownin interfacecom.google.gwt.event.dom.client.MouseDownHandler
-
onDoubleClick
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
- Specified by:
onDoubleClickin interfacecom.google.gwt.event.dom.client.DoubleClickHandler
-
getSubPartElement
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
- Specified by:
getSubPartElementin interfaceSubPartAware
-
getSubPartName
public String getSubPartName(com.google.gwt.user.client.Element subElement)
- Specified by:
getSubPartNamein interfaceSubPartAware
-
-