com.vaadin.client.ui
Class VTwinColSelect

java.lang.Object
  extended by Composite
      extended by com.vaadin.client.ui.VOptionGroupBase
          extended by com.vaadin.client.ui.VTwinColSelect
All Implemented Interfaces:
Focusable, Field, SubPartAware

public class VTwinColSelect
extends VOptionGroupBase
implements SubPartAware


Nested Class Summary
 class VTwinColSelect.DoubleClickListBox
          A ListBox which catches double clicks
 
Field Summary
 FlowPanel captionWrapper
          For internal use only.
static java.lang.String CLASSNAME
           
 
Fields inherited from class com.vaadin.client.ui.VOptionGroupBase
CLASSNAME_OPTION, client, cols, container, immediate, multiselect, newItemButton, newItemField, nullSelectionAllowed, nullSelectionItemAvailable, optionsContainer, paintableId, rows, selectedKeys
 
Constructor Summary
VTwinColSelect()
           
 
Method Summary
 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.
 HTML getOptionsCaption()
           
protected  java.lang.String[] getSelectedItems()
           
 HTML getSelectionsCaption()
           
 com.google.gwt.user.client.Element getSubPartElement(java.lang.String subPart)
          Locates an element inside a component using the identifier provided in subPart.
 java.lang.String getSubPartName(com.google.gwt.user.client.Element subElement)
          Provides an identifier that identifies the element within the component.
 void onClick(ClickEvent event)
           
 void onDoubleClick(DoubleClickEvent event)
           
 void onKeyDown(KeyDownEvent event)
           
 void onMouseDown(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()
           
 
Methods inherited from class com.vaadin.client.ui.VOptionGroupBase
getColumns, getRows, getSelectedItem, isEnabled, isImmediate, isMultiselect, isNullSelectionAllowed, isNullSelectionItemAvailable, isReadonly, onChange, onKeyPress, setEnabled, setReadonly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

captionWrapper

public FlowPanel captionWrapper
For internal use only. May be removed or replaced in the future.

Constructor Detail

VTwinColSelect

public VTwinColSelect()
Method Detail

getOptionsCaption

public HTML getOptionsCaption()

getSelectionsCaption

public 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: VOptionGroupBase
For internal use only. May be removed or replaced in the future.

Specified by:
buildOptions in class VOptionGroupBase

getSelectedItems

protected java.lang.String[] getSelectedItems()
Specified by:
getSelectedItems in class VOptionGroupBase

onClick

public void onClick(ClickEvent event)
Overrides:
onClick in class VOptionGroupBase

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:
setTabIndex in class VOptionGroupBase

updateEnabledState

public void updateEnabledState()
Specified by:
updateEnabledState in class VOptionGroupBase

focus

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

Specified by:
focus in interface Focusable

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(KeyDownEvent event)

onMouseDown

public void onMouseDown(MouseDownEvent event)

onDoubleClick

public void onDoubleClick(DoubleClickEvent event)

getSubPartElement

public com.google.gwt.user.client.Element getSubPartElement(java.lang.String subPart)
Description copied from interface: SubPartAware
Locates an element inside a component using the identifier provided in subPart. The subPart identifier is component specific and may be any string of characters, numbers, space characters and brackets.

Specified by:
getSubPartElement in interface SubPartAware
Parameters:
subPart - The identifier for the element inside the component
Returns:
The element identified by subPart or null if the element could not be found.

getSubPartName

public java.lang.String getSubPartName(com.google.gwt.user.client.Element subElement)
Description copied from interface: SubPartAware
Provides an identifier that identifies the element within the component. The 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.

Specified by:
getSubPartName in interface SubPartAware
Parameters:
subElement - The element the identifier string should uniquely identify
Returns:
An identifier that uniquely identifies subElement or null if no identifier could be provided.


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