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
Modifier and Type | Class and Description |
---|---|
class |
VTwinColSelect.DoubleClickListBox
A ListBox which catches double clicks
|
Modifier and Type | Field and Description |
---|---|
com.google.gwt.user.client.ui.FlowPanel |
captionWrapper
For internal use only.
|
static String |
CLASSNAME |
CLASSNAME_OPTION, client, cols, container, immediate, multiselect, newItemButton, newItemField, nullSelectionAllowed, nullSelectionItemAvailable, optionsContainer, paintableId, rows, selectedKeys
Constructor and Description |
---|
VTwinColSelect() |
Modifier and Type | Method and Description |
---|---|
void |
buildOptions(UIDL uidl)
For internal use only.
|
void |
clearInternalHeights()
For internal use only.
|
void |
clearInternalWidths()
For internal use only.
|
void |
focus()
Sets focus to this widget.
|
protected int |
getNavigationSelectKey()
Get the key that selects an item in the table.
|
com.google.gwt.user.client.ui.HTML |
getOptionsCaption() |
protected String[] |
getSelectedItems() |
com.google.gwt.user.client.ui.HTML |
getSelectionsCaption() |
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in
subPart . |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) |
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
void |
onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event) |
void |
setInternalHeights()
For internal use only.
|
void |
setInternalWidths()
For internal use only.
|
void |
setTabIndex(int tabIndex) |
void |
updateCaptions(UIDL uidl)
For internal use only.
|
void |
updateEnabledState() |
getColumns, getRows, getSelectedItem, isEnabled, isImmediate, isMultiselect, isNullSelectionAllowed, isNullSelectionItemAvailable, isReadonly, onChange, onKeyPress, setEnabled, setReadonly
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
public static final String CLASSNAME
public com.google.gwt.user.client.ui.FlowPanel captionWrapper
public com.google.gwt.user.client.ui.HTML getOptionsCaption()
public com.google.gwt.user.client.ui.HTML getSelectionsCaption()
public void updateCaptions(UIDL uidl)
public void buildOptions(UIDL uidl)
VOptionGroupBase
buildOptions
in class VOptionGroupBase
protected String[] getSelectedItems()
getSelectedItems
in class VOptionGroupBase
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
onClick
in class VOptionGroupBase
public void clearInternalHeights()
public void setInternalHeights()
public void clearInternalWidths()
public void setInternalWidths()
public void setTabIndex(int tabIndex)
setTabIndex
in class VOptionGroupBase
public void updateEnabledState()
updateEnabledState
in class VOptionGroupBase
public void focus()
Focusable
protected int getNavigationSelectKey()
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown
in interface com.google.gwt.event.dom.client.KeyDownHandler
public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
onMouseDown
in interface com.google.gwt.event.dom.client.MouseDownHandler
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick
in interface com.google.gwt.event.dom.client.DoubleClickHandler
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
SubPartAware
subPart
. The subPart
identifier is component specific and
may be any string of characters, numbers, space characters and brackets.getSubPartElement
in interface SubPartAware
subPart
- The identifier for the element inside the componentpublic String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAware
subElement
is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element
is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement
are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement
because interactions with the DIV and the
root button element produce the same result.
getSubPartName
in interface SubPartAware
subElement
- The element the identifier string should uniquely identifysubElement
or null
if no identifier could be provided.Copyright © 2019 Vaadin Ltd. All rights reserved.