Class SelectBoxWithIconInputWidget<T extends Comparable<T>>
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
de.knightsoftnet.mtwidgets.client.ui.widget.SelectBoxWithIconInputWidget<T>
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.TakesValue<T>,com.google.gwt.user.client.ui.Focusable,com.google.gwt.user.client.ui.HasValue<T>,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,HasValidationMessageElement<T,,ValueBoxEditor<T>> org.gwtproject.editor.client.Editor<T>,org.gwtproject.editor.client.HasEditorErrors<T>,org.gwtproject.editor.client.IsEditor<ValueBoxEditor<T>>,org.gwtproject.editor.client.TakesValue<T>
public class SelectBoxWithIconInputWidget<T extends Comparable<T>>
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.HasValue<T>, org.gwtproject.editor.client.TakesValue<T>, com.google.gwt.user.client.ui.Focusable, HasValidationMessageElement<T,ValueBoxEditor<T>>
select box with icon field for star ratings.
- Author:
- Manfred Tremmel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA ClientBundle that provides images and style sheets for the decorator.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.DebugIdImplEnabledNested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor
org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionSelectBoxWithIconInputWidget(String idBase) default constructor.SelectBoxWithIconInputWidget(String idBase, SelectBoxWithIconInputWidget.Resources presource) constructor with styling information. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler) asEditor()protected voidvoidfillEntries(IdAndNamePlusIconBean<T>... pentries) fill entries for the select box.voidfillEntries(List<IdAndNamePlusIconBean<T>> pentries) fill entries for the select box.protected static SelectBoxWithIconInputWidget.Resourcesget default resource, if not set, create one.intcom.google.gwt.user.client.ui.HTMLPanelget validation message element.final TgetValue()voidsetAccessKey(char pkey) voidsetCustomValidity(String message) set custom validity value.voidsetFocus(boolean pfocused) voidsetTabIndex(int pindex) voidset title of element.voidsetValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel pelement) set validation message element.voidvoidMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods 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, unsinkEventsMethods 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, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasValidationMessageElement
editorErrorMatches, showErrors, showErrors
-
Constructor Details
-
SelectBoxWithIconInputWidget
default constructor.- Parameters:
idBase- the id of the widget and base for the ids of the single radio buttons
-
SelectBoxWithIconInputWidget
public SelectBoxWithIconInputWidget(String idBase, SelectBoxWithIconInputWidget.Resources presource) constructor with styling information.- Parameters:
idBase- the id of the widget and base for the ids of the single radio buttonspresource- resources with styling information
-
-
Method Details
-
getDefaultResources
get default resource, if not set, create one.- Returns:
- default resource.
-
fillEntries
fill entries for the select box.- Parameters:
pentries- list of entries
-
fillEntries
fill entries for the select box.- Parameters:
pentries- list of entries
-
setValue
- Specified by:
setValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<T extends Comparable<T>>- Specified by:
setValuein interfaceorg.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
-
setValue
- Specified by:
setValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>
-
getValue
- Specified by:
getValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<T extends Comparable<T>>- Specified by:
getValuein interfaceorg.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
-
ensureDomEventHandlers
protected void ensureDomEventHandlers() -
setTabIndex
public void setTabIndex(int pindex) - Specified by:
setTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
getTabIndex
public int getTabIndex()- Specified by:
getTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
setAccessKey
public void setAccessKey(char pkey) - Specified by:
setAccessKeyin interfacecom.google.gwt.user.client.ui.Focusable
-
setFocus
public void setFocus(boolean pfocused) - Specified by:
setFocusin interfacecom.google.gwt.user.client.ui.Focusable
-
asEditor
- Specified by:
asEditorin interfaceorg.gwtproject.editor.client.IsEditor<T extends Comparable<T>>
-
setCustomValidity
Description copied from interface:HasValidationMessageElementset custom validity value.- Specified by:
setCustomValidityin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>> - Parameters:
message- message to show
-
setTitle
Description copied from interface:HasValidationMessageElementset title of element.- Specified by:
setTitlein interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>> - Overrides:
setTitlein classcom.google.gwt.user.client.ui.UIObject- Parameters:
title- title to set
-
setValidationMessageElement
public void setValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel pelement) Description copied from interface:HasValidationMessageElementset validation message element.- Specified by:
setValidationMessageElementin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>> - Parameters:
pelement- element to set
-
getValidationMessageElement
public com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()Description copied from interface:HasValidationMessageElementget validation message element.- Specified by:
getValidationMessageElementin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>> - Returns:
- element or null if non is set
-