public class CmsFormRow extends com.google.gwt.user.client.ui.Composite implements I_CmsTruncable
This widget contains both a label and a panel into which an input widget for the form field can be placed. These widgets are next to each other horizontally.
| 限定符和类型 | 类和说明 |
|---|---|
protected static interface |
CmsFormRow.I_CmsFormRowUiBinder
The ui binder interface for this widget.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected static I_CmsInputCss |
CSS
The CSS bundle used for this widget.
|
static int |
LABEL_WIDTH
The width of the label.
|
protected com.google.gwt.user.client.ui.Label |
m_icon
The label used for displaying the information icon.
|
protected com.google.gwt.user.client.ui.Label |
m_label
The label for the form row.
|
protected com.google.gwt.user.client.ui.Panel |
m_widgetContainer
The widget container for the form row.
|
static int |
OPENER_WIDTH
The width of the opener.
|
static int |
WIDGET_CONTAINER_WIDTH
The default widget container width.
|
static int |
WIDGET_MARGIN_RIGHT
The required right margin.
|
| 构造器和说明 |
|---|
CmsFormRow()
The default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.gwt.user.client.ui.Label |
getLabel()
Returns the label for the form row.
|
static java.lang.String |
getLabelWidth()
Returns the width of the label as a string.
|
static java.lang.String |
getOpenerWidth()
Returns the width of the opener as a string.
|
com.google.gwt.user.client.ui.Panel |
getWidgetContainer()
Returns the widget container for the form row.
|
static java.lang.String |
getWidgetContainerLeftMargin()
Returns the left margin of the widget container as a string.
|
static java.lang.String |
getWidgetContainerWidth()
Returns the left margin of the widget container as a string.
|
void |
setInfo(java.lang.String info)
Shows the info icon and sets the information text as its title.
|
void |
truncate(java.lang.String textMetricsKey,
int clientWidth)
Truncates long text and sets the original text to the title attribute.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic static final int LABEL_WIDTH
public static final int OPENER_WIDTH
public static final int WIDGET_CONTAINER_WIDTH
public static final int WIDGET_MARGIN_RIGHT
protected static I_CmsInputCss CSS
@UiField protected com.google.gwt.user.client.ui.Label m_icon
@UiField protected com.google.gwt.user.client.ui.Label m_label
@UiField protected com.google.gwt.user.client.ui.Panel m_widgetContainer
public static java.lang.String getLabelWidth()
public static java.lang.String getOpenerWidth()
public static java.lang.String getWidgetContainerLeftMargin()
public static java.lang.String getWidgetContainerWidth()
public com.google.gwt.user.client.ui.Label getLabel()
public com.google.gwt.user.client.ui.Panel getWidgetContainer()
public void setInfo(java.lang.String info)
info - public void truncate(java.lang.String textMetricsKey,
int clientWidth)
I_CmsTruncabletruncate 在接口中 I_CmsTruncabletextMetricsKey - the key identifying the text metrics to useclientWidth - the width to use in pixelsI_CmsTruncable.truncate(java.lang.String, int)