Package org.opencms.gwt.client.ui.input
Class A_CmsSelectCell
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.opencms.gwt.client.ui.input.A_CmsSelectCell
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
CmsLabelSelectCell
,CmsMultiSelectCell
public abstract class A_CmsSelectCell extends com.google.gwt.user.client.ui.Composite
An abstract class for widgets which represent options for select boxes.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Constructor Description A_CmsSelectCell()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getRequiredWidth()
Measures the required width for this cell.abstract java.lang.String
getValue()
Returns the value of the select option as a string.<H extends com.google.gwt.event.shared.EventHandler>
com.google.gwt.event.shared.HandlerRegistrationregisterDomHandler(H handler, com.google.gwt.event.dom.client.DomEvent.Type<H> type)
Adds a new event handler to the widget.-
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
-
-
-
-
Constructor Detail
-
A_CmsSelectCell
public A_CmsSelectCell()
-
-
Method Detail
-
getRequiredWidth
public int getRequiredWidth()
Measures the required width for this cell.- Returns:
- the required width
-
getValue
public abstract java.lang.String getValue()
Returns the value of the select option as a string.- Returns:
- the value of the select option
-
registerDomHandler
public <H extends com.google.gwt.event.shared.EventHandler> com.google.gwt.event.shared.HandlerRegistration registerDomHandler(H handler, com.google.gwt.event.dom.client.DomEvent.Type<H> type)
Adds a new event handler to the widget.This method is used because we want the select box to register some event handlers on this widget, but we can't use
Widget.addDomHandler(H, com.google.gwt.event.dom.client.DomEvent.Type<H>)
directly, since it's both protected and final.- Type Parameters:
H
- the event type- Parameters:
handler
- the new event handlertype
- the event type object- Returns:
- the HandlerRegistration for removing the event handler
-
-