Class 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
    • 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
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void buildOptions​(UIDL uidl)
      For internal use only.
      int getColumns()
      For internal use only.
      int getRows()
      For internal use only.
      protected String getSelectedItem()  
      protected abstract String[] getSelectedItems()  
      boolean isEnabled()  
      protected boolean isImmediate()  
      protected boolean isMultiselect()  
      protected boolean isNullSelectionAllowed()  
      protected boolean isNullSelectionItemAvailable()  
      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 setEnabled​(boolean enabled)  
      void setReadonly​(boolean readonly)  
      abstract void setTabIndex​(int tabIndex)  
      protected abstract void updateEnabledState()  
      • 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

      • 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.
    • Constructor Detail

      • VOptionGroupBase

        public VOptionGroupBase​(String classname)
      • VOptionGroupBase

        public VOptionGroupBase​(com.google.gwt.user.client.ui.Widget w,
                                String classname)
    • Method Detail

      • isImmediate

        protected boolean isImmediate()
      • isMultiselect

        protected boolean isMultiselect()
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface com.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:
        onClick in interface com.google.gwt.event.dom.client.ClickHandler
      • 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
      • setReadonly

        public void setReadonly​(boolean readonly)
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface com.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()