public class JmixCaptionWidget
extends com.vaadin.client.VCaption
implements com.google.gwt.event.dom.client.ClickHandler
com.vaadin.client.VCaption.InsertPositioncom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected CaptionHolder |
captionHolder |
protected boolean |
captionPlacedAfterComponentByDefault |
protected com.google.gwt.event.shared.HandlerRegistration |
clickHandlerRegistration |
static java.lang.String |
CONTEXT_HELP_CLASSNAME |
static java.lang.String |
CONTEXT_HELP_CLICKABLE_CLASSNAME |
protected com.google.gwt.dom.client.Element |
contextHelpIndicatorElement |
static java.lang.String |
JMIX_CLASSNAME |
captionText, CLASSNAME, errorIndicatorElement, icon, placedAfterComponent, requiredFieldIndicator| Constructor and Description |
|---|
JmixCaptionWidget(com.vaadin.client.ComponentConnector component,
com.vaadin.client.ApplicationConnection client) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.dom.client.Element |
getContextHelpIndicatorElement() |
protected int |
getContextHelpInsertPosition() |
com.google.gwt.dom.client.Element |
getErrorIndicatorElement() |
protected int |
getInsertPosition(com.vaadin.client.VCaption.InsertPosition element) |
int |
getRenderedWidth() |
com.google.gwt.dom.client.Element |
getRequiredIndicatorElement() |
com.google.gwt.user.client.Element |
getTextElement() |
protected boolean |
hasContextHelpIconListeners(com.vaadin.shared.AbstractComponentState state) |
void |
initWidget() |
boolean |
isCaptionPlacedAfterComponentByDefault() |
protected boolean |
isContextHelpIconEnabled(com.vaadin.shared.AbstractComponentState state) |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
setCaptionHolder(CaptionHolder captionHolder) |
void |
setCaptionPlacedAfterComponentByDefault(boolean captionPlacedAfterComponentByDefault) |
protected void |
setCaptionText(com.vaadin.shared.AbstractComponentState state) |
boolean |
updateCaption() |
getCaptionOwnerPid, getHeight, getOwner, getOwnerPid, getRequiredWidth, getTooltipInfo, isCaptionAsHtml, isNeeded, mightChange, onAttach, onBrowserEvent, onDetach, setAlignment, setCaptionAsHtml, setCaptionText, setCaptionText, setErrorIndicatorElementVisible, setMaxWidth, setTooltipInfo, shouldBePlacedAfterComponent, updateCaptionWithoutOwner, updateCaptionWithoutOwner, updateCaptionWithoutOwnergetHTML, getTextOrHtml, setHTML, setHTML, setHTML, setHTML, wrapaddClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setTextgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final java.lang.String JMIX_CLASSNAME
public static final java.lang.String CONTEXT_HELP_CLASSNAME
public static final java.lang.String CONTEXT_HELP_CLICKABLE_CLASSNAME
protected com.google.gwt.dom.client.Element contextHelpIndicatorElement
protected boolean captionPlacedAfterComponentByDefault
protected CaptionHolder captionHolder
protected com.google.gwt.event.shared.HandlerRegistration clickHandlerRegistration
public JmixCaptionWidget(com.vaadin.client.ComponentConnector component,
com.vaadin.client.ApplicationConnection client)
public void initWidget()
public boolean updateCaption()
updateCaption in class com.vaadin.client.VCaptionprotected void setCaptionText(com.vaadin.shared.AbstractComponentState state)
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerprotected boolean isContextHelpIconEnabled(com.vaadin.shared.AbstractComponentState state)
protected boolean hasContextHelpIconListeners(com.vaadin.shared.AbstractComponentState state)
public int getRenderedWidth()
getRenderedWidth in class com.vaadin.client.VCaptionpublic com.google.gwt.user.client.Element getTextElement()
getTextElement in class com.vaadin.client.VCaptionpublic com.google.gwt.dom.client.Element getContextHelpIndicatorElement()
public com.google.gwt.dom.client.Element getRequiredIndicatorElement()
public com.google.gwt.dom.client.Element getErrorIndicatorElement()
getErrorIndicatorElement in interface com.vaadin.client.ui.HasErrorIndicatorElementgetErrorIndicatorElement in class com.vaadin.client.VCaptionprotected int getInsertPosition(com.vaadin.client.VCaption.InsertPosition element)
getInsertPosition in class com.vaadin.client.VCaptionprotected int getContextHelpInsertPosition()
public void setCaptionHolder(CaptionHolder captionHolder)
public boolean isCaptionPlacedAfterComponentByDefault()
public void setCaptionPlacedAfterComponentByDefault(boolean captionPlacedAfterComponentByDefault)