Package org.opencms.gwt.client.ui
Class CmsInfoLoadingListItemWidget
- 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.CmsListItemWidget
-
- org.opencms.gwt.client.ui.CmsInfoLoadingListItemWidget
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers
,com.google.gwt.event.dom.client.HasDoubleClickHandlers
,com.google.gwt.event.dom.client.HasMouseOutHandlers
,com.google.gwt.event.dom.client.HasMouseOverHandlers
,com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasCloseHandlers<CmsListItemWidget>
,com.google.gwt.event.logical.shared.HasOpenHandlers<CmsListItemWidget>
,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
,I_CmsTruncable
public class CmsInfoLoadingListItemWidget extends CmsListItemWidget
This class extends the basic list item widget with the ability to load additional info items asnchronously via RPC.The loaded additional info items will be displayed after the additional info items contained in the bean which is passed into the constructor.
- Since:
- 8.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CmsInfoLoadingListItemWidget.DummyAdditionalInfoLoader
The default loader for additional info items, which does nothing.-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsListItemWidget
CmsListItemWidget.AdditionalInfoItem, CmsListItemWidget.Background, CmsListItemWidget.I_CmsListItemWidgetUiBinder, CmsListItemWidget.I_CmsTitleEditHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected I_CmsAdditionalInfoLoader
m_additionalInfoLoader
The loader for additional info items.protected boolean
m_additionalInfoOpen
Flag which keeps track of whether the additional info panel is shown.protected boolean
m_loading
Flag which keeps track of whether additional info items are currently being loaded.-
Fields inherited from class org.opencms.gwt.client.ui.CmsListItemWidget
m_additionalInfo, m_buttonPanel, m_contentPanel, m_iconClickHandlers, m_iconPanel, m_openClose, m_shortExtraInfoLabel, m_subtitle, m_title, m_titleBox, m_titleRow, OPENCLASS
-
-
Constructor Summary
Constructors Constructor Description CmsInfoLoadingListItemWidget(org.opencms.gwt.shared.CmsListInfoBean infoBean)
Creates a new list item widget from an info bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initAdditionalInfo(org.opencms.gwt.shared.CmsListInfoBean infoBean)
Initializes the additional info.void
setAdditionalInfoLoader(I_CmsAdditionalInfoLoader loader)
Sets the loader for additional info items.protected void
setDynamicInfo(java.util.List<CmsListItemWidget.AdditionalInfoItem> info)
Sets the dynamically loaded additional info items.-
Methods inherited from class org.opencms.gwt.client.ui.CmsListItemWidget
addAdditionalInfo, addButton, addButtonToFront, addClickHandler, addCloseHandler, addDoubleClickHandler, addIconClickHandler, addMouseOutHandler, addMouseOverHandler, addOpenHandler, addSubtitleStyleName, addTitleStyleName, clearIcon, editTitle, ensureOpenCloseAdditionalInfo, forceMouseOut, getButton, getButtonCount, getButtonPanel, getContentPanel, getShortExtraInfoLabel, getSubtitleLabel, getTitleLabel, getTitleWidget, hasAdditionalInfo, init, onEditTitleTextBox, reInitAdditionalInfo, removeButton, removeMouseHandlers, removeSubtitleStyleName, removeTitleStyleName, setAdditionalInfoValue, setAdditionalInfoVisible, setBackground, setExtraInfo, setIcon, setIcon, setIcon, setIconCursor, setIconTitle, setLockIcon, setStateIcon, setSubtitleLabel, setTitleEditable, setTitleEditHandler, setTitleLabel, setTopRightIcon, setUnselectable, truncate, truncateAdditionalInfo, updateTruncation
-
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
-
m_additionalInfoOpen
protected boolean m_additionalInfoOpen
Flag which keeps track of whether the additional info panel is shown.
-
m_loading
protected boolean m_loading
Flag which keeps track of whether additional info items are currently being loaded.
-
m_additionalInfoLoader
protected I_CmsAdditionalInfoLoader m_additionalInfoLoader
The loader for additional info items.
-
-
Constructor Detail
-
CmsInfoLoadingListItemWidget
public CmsInfoLoadingListItemWidget(org.opencms.gwt.shared.CmsListInfoBean infoBean)
Creates a new list item widget from an info bean.- Parameters:
infoBean
- the bean containing the information to display
-
-
Method Detail
-
setAdditionalInfoLoader
public void setAdditionalInfoLoader(I_CmsAdditionalInfoLoader loader)
Sets the loader for additional info items.- Parameters:
loader
- the loader for additional info items
-
initAdditionalInfo
protected void initAdditionalInfo(org.opencms.gwt.shared.CmsListInfoBean infoBean)
Description copied from class:CmsListItemWidget
Initializes the additional info.- Overrides:
initAdditionalInfo
in classCmsListItemWidget
- Parameters:
infoBean
- the info bean- See Also:
CmsListItemWidget.initAdditionalInfo(org.opencms.gwt.shared.CmsListInfoBean)
-
setDynamicInfo
protected void setDynamicInfo(java.util.List<CmsListItemWidget.AdditionalInfoItem> info)
Sets the dynamically loaded additional info items.- Parameters:
info
- the dynamically loaded additional info items
-
-