public class CmsPropertyPanel extends A_CmsFormFieldPanel
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
LD_DISPLAY_VALUE
Layout data key.
|
static java.lang.String |
LD_GROUP
Layout data key.
|
static java.lang.String |
LD_PROPERTY
Layout data key.
|
protected CmsTabbedPanel<CmsScrollPanel> |
m_tabPanel
The tab panel.
|
static java.lang.String |
TAB_INDIVIDUAL
Tab id for the "individual" tab.
|
static java.lang.String |
TAB_SHARED
Tab id for the "shared" tab.
|
static java.lang.String |
TAB_SIMPLE
Tab id for the "simple" tab.
|
m_truncationMetricsKey, m_truncationWidth| 构造器和说明 |
|---|
CmsPropertyPanel(boolean showShared,
CmsListInfoBean info)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer> handler)
Adds the
BeforeSelectionHandler for the tab panel. |
void |
clearTab(java.lang.String tabId)
Clears the tab with the given id.
|
protected CmsListItemWidget |
createListItemWidget(CmsListInfoBean info)
Creates a list item widget from a list info bean.
|
java.lang.String |
getDefaultGroup()
Returns the default group name.
|
protected CmsTabbedPanel<CmsScrollPanel> |
getTabPanel()
Returns the tabbed panel.
|
void |
renderExtendedTab(java.util.Collection<I_CmsFormField> fields,
com.google.gwt.user.client.ui.FlowPanel tab)
Renders a extended tab.
|
void |
renderFields(java.util.Collection<I_CmsFormField> fields)
Renders a collection of fields.
|
void |
rerenderFields(java.lang.String tab,
java.util.Collection<I_CmsFormField> fields)
Re-renders the fields of a group.
|
void |
truncate(java.lang.String textMetricsKey,
int clientWidth)
Truncates long text and sets the original text to the title attribute.
|
createRow, createRow, createRow, setBorder, storeTruncation, truncatePanelclaimElement, 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 java.lang.String LD_DISPLAY_VALUE
public static final java.lang.String LD_GROUP
public static final java.lang.String LD_PROPERTY
public static final java.lang.String TAB_INDIVIDUAL
public static final java.lang.String TAB_SHARED
public static final java.lang.String TAB_SIMPLE
protected CmsTabbedPanel<CmsScrollPanel> m_tabPanel
public CmsPropertyPanel(boolean showShared,
CmsListInfoBean info)
showShared - true if the "shared" tab should be showninfo - the bean to use for displaying the info itempublic void addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer> handler)
BeforeSelectionHandler for the tab panel.handler - the pre-selection handlerpublic void clearTab(java.lang.String tabId)
tabId - the id of the tab to clearpublic java.lang.String getDefaultGroup()
A_CmsFormFieldPanelgetDefaultGroup 在类中 A_CmsFormFieldPanelA_CmsFormFieldPanel.getDefaultGroup()public void renderExtendedTab(java.util.Collection<I_CmsFormField> fields, com.google.gwt.user.client.ui.FlowPanel tab)
fields - the fields to addtab - the tabpublic void renderFields(java.util.Collection<I_CmsFormField> fields)
A_CmsFormFieldPanelThis should only be called once, when the form is being built.
renderFields 在类中 A_CmsFormFieldPanelfields - the fields to renderA_CmsFormFieldPanel.renderFields(java.util.Collection)public void rerenderFields(java.lang.String tab,
java.util.Collection<I_CmsFormField> fields)
A_CmsFormFieldPanelNot supported by all subclasses.
rerenderFields 在类中 A_CmsFormFieldPaneltab - the group whose fields to re-renderfields - the fields to re-renderA_CmsFormFieldPanel.rerenderFields(java.lang.String, java.util.Collection)public void truncate(java.lang.String textMetricsKey,
int clientWidth)
I_CmsTruncabletextMetricsKey - the key identifying the text metrics to useclientWidth - the width to use in pixelsI_CmsTruncable.truncate(java.lang.String, int)protected CmsListItemWidget createListItemWidget(CmsListInfoBean info)
info - the list info beanprotected CmsTabbedPanel<CmsScrollPanel> getTabPanel()