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
public class CmsPropertyPanel extends A_CmsFormFieldPanel
A tabbed form field container widget.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description 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.-
Fields inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
m_infoWidget, NO_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description CmsPropertyPanel(boolean showShared, org.opencms.gwt.shared.CmsListInfoBean info)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer> handler)
Adds theBeforeSelectionHandler
for the tab panel.void
clearTab(java.lang.String tabId)
Clears the tab with the given id.protected CmsListItemWidget
createListItemWidget(org.opencms.gwt.shared.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
tryToRestoreFieldData(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, setBorder
-
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
-
-
-
-
Field Detail
-
LD_DISPLAY_VALUE
public static final java.lang.String LD_DISPLAY_VALUE
Layout data key.- See Also:
- Constant Field Values
-
LD_GROUP
public static final java.lang.String LD_GROUP
Layout data key.- See Also:
- Constant Field Values
-
LD_PROPERTY
public static final java.lang.String LD_PROPERTY
Layout data key.- See Also:
- Constant Field Values
-
TAB_INDIVIDUAL
public static final java.lang.String TAB_INDIVIDUAL
Tab id for the "individual" tab.- See Also:
- Constant Field Values
-
TAB_SHARED
public static final java.lang.String TAB_SHARED
Tab id for the "shared" tab.- See Also:
- Constant Field Values
-
TAB_SIMPLE
public static final java.lang.String TAB_SIMPLE
Tab id for the "simple" tab.- See Also:
- Constant Field Values
-
m_tabPanel
protected CmsTabbedPanel<CmsScrollPanel> m_tabPanel
The tab panel.
-
-
Constructor Detail
-
CmsPropertyPanel
public CmsPropertyPanel(boolean showShared, org.opencms.gwt.shared.CmsListInfoBean info)
Creates a new instance.- Parameters:
showShared
- true if the "shared" tab should be showninfo
- the bean to use for displaying the info item
-
-
Method Detail
-
addBeforeSelectionHandler
public void addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<java.lang.Integer> handler)
Adds theBeforeSelectionHandler
for the tab panel.- Parameters:
handler
- the pre-selection handler
-
clearTab
public void clearTab(java.lang.String tabId)
Clears the tab with the given id.- Parameters:
tabId
- the id of the tab to clear
-
getDefaultGroup
public java.lang.String getDefaultGroup()
Description copied from class:A_CmsFormFieldPanel
Returns the default group name.- Specified by:
getDefaultGroup
in classA_CmsFormFieldPanel
- Returns:
- the default group name
- See Also:
A_CmsFormFieldPanel.getDefaultGroup()
-
renderExtendedTab
public void renderExtendedTab(java.util.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
public void renderFields(java.util.Collection<I_CmsFormField> fields)
Description copied from class:A_CmsFormFieldPanel
Renders a collection of fields.This should only be called once, when the form is being built.
- Specified by:
renderFields
in classA_CmsFormFieldPanel
- Parameters:
fields
- the fields to render- See Also:
A_CmsFormFieldPanel.renderFields(java.util.Collection)
-
rerenderFields
public void rerenderFields(java.lang.String tab, java.util.Collection<I_CmsFormField> fields)
Description copied from class:A_CmsFormFieldPanel
Re-renders the fields of a group.Not supported by all subclasses.
- Overrides:
rerenderFields
in classA_CmsFormFieldPanel
- Parameters:
tab
- the group whose fields to re-renderfields
- the fields to re-render- See Also:
A_CmsFormFieldPanel.rerenderFields(java.lang.String, java.util.Collection)
-
tryToRestoreFieldData
public void tryToRestoreFieldData(CmsActiveFieldData fieldDataToBeRestored)
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)
-
createListItemWidget
protected CmsListItemWidget createListItemWidget(org.opencms.gwt.shared.CmsListInfoBean info)
Creates a list item widget from a list info bean.- Parameters:
info
- the list info bean- Returns:
- the list item widget
-
getTabPanel
protected CmsTabbedPanel<CmsScrollPanel> getTabPanel()
Returns the tabbed panel.- Returns:
- the tabbed panel
-
-