Package org.opencms.gwt.client.property
Class CmsPropertyPanel
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.form.A_CmsFormFieldPanel
org.opencms.gwt.client.property.CmsPropertyPanel
- 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
A tabbed form field container widget.
- Since:
- 8.0.0
-
Nested Class Summary
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.DebugIdImplEnabled -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCSS class for temporarily hiding tab contents during the rendering process.static final StringCSS class for property tab contents.static final StringLayout data key.static final StringLayout data key.static final StringLayout data key.protected CmsTabbedPanel<CmsScrollPanelWrapper> The tab panel.static final StringTab id for the "individual" tab.static final StringTab id for the "shared" tab.static final StringTab id for the "simple" tab.Fields inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
LAYOUT_TAG, m_infoWidget, NO_DESCRIPTIONFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCmsPropertyPanel(boolean showShared, org.opencms.gwt.shared.CmsListInfoBean info) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer> handler) Adds theBeforeSelectionHandlerfor the tab panel.voidClears the tab with the given id.protected CmsListItemWidgetcreateListItemWidget(org.opencms.gwt.shared.CmsListInfoBean info) Creates a list item widget from a list info bean.Returns the default group name.protected CmsTabbedPanel<CmsScrollPanelWrapper> Returns the tabbed panel.voidrenderExtendedTab(Collection<I_CmsFormField> fields, com.google.gwt.user.client.ui.FlowPanel tab) Renders a extended tab.voidrenderFields(Collection<I_CmsFormField> fields) Renders a collection of fields.voidrerenderFields(String tab, Collection<I_CmsFormField> fields) Re-renders the fields of a group.voidtryToRestoreFieldData(CmsActiveFieldData fieldDataToBeRestored) Tries to restore the active field data.Methods inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
createRow, createRow, createRow, getInfoWidget, setBorderMethods 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, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
CLASS_PROPERTY_TAB
CSS class for property tab contents.- See Also:
-
CLASS_IS_RENDERING_FIELDS
CSS class for temporarily hiding tab contents during the rendering process.- See Also:
-
LD_DISPLAY_VALUE
Layout data key.- See Also:
-
LD_GROUP
Layout data key.- See Also:
-
LD_PROPERTY
Layout data key.- See Also:
-
TAB_INDIVIDUAL
Tab id for the "individual" tab.- See Also:
-
TAB_SHARED
Tab id for the "shared" tab.- See Also:
-
TAB_SIMPLE
Tab id for the "simple" tab.- See Also:
-
m_tabPanel
The tab panel.
-
-
Constructor Details
-
Method Details
-
clearTab
Clears the tab with the given id.- Parameters:
tabId- the id of the tab to clear
-
getDefaultGroup
Description copied from class:A_CmsFormFieldPanelReturns the default group name.- Specified by:
getDefaultGroupin classA_CmsFormFieldPanel- Returns:
- the default group name
- See Also:
-
renderExtendedTab
public void renderExtendedTab(Collection<I_CmsFormField> fields, com.google.gwt.user.client.ui.FlowPanel tab) Renders a extended tab.- Parameters:
fields- the fields to addtab- the tab
-
renderFields
Description copied from class:A_CmsFormFieldPanelRenders a collection of fields.This should only be called once, when the form is being built.
- Specified by:
renderFieldsin classA_CmsFormFieldPanel- Parameters:
fields- the fields to render- See Also:
-
rerenderFields
Description copied from class:A_CmsFormFieldPanelRe-renders the fields of a group.Not supported by all subclasses.
- Overrides:
rerenderFieldsin classA_CmsFormFieldPanel- Parameters:
tab- the group whose fields to re-renderfields- the fields to re-render- See Also:
-
tryToRestoreFieldData
Tries to restore the active field data.- Parameters:
fieldDataToBeRestored- the field data which should be restored (may be null, in which case this method does nothing)
-
getTabPanel
Returns the tabbed panel.- Returns:
- the tabbed panel