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
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 ClassesModifier and TypeClassDescriptionclass
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
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 TypeFieldDescriptionprotected I_CmsAdditionalInfoLoader
The loader for additional info items.protected boolean
Flag which keeps track of whether the additional info panel is shown.protected boolean
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
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionCmsInfoLoadingListItemWidget
(org.opencms.gwt.shared.CmsListInfoBean infoBean) Creates a new list item widget from an info bean. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
initAdditionalInfo
(org.opencms.gwt.shared.CmsListInfoBean infoBean) Initializes the additional info.void
Sets the loader for additional info items.protected void
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, getInfoBean, getOpenClose, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Field Details
-
m_additionalInfoOpen
Flag which keeps track of whether the additional info panel is shown. -
m_loading
Flag which keeps track of whether additional info items are currently being loaded. -
m_additionalInfoLoader
The loader for additional info items.
-
-
Constructor Details
-
Method Details
-
setAdditionalInfoLoader
Sets the loader for additional info items.- Parameters:
loader
- the loader for additional info items
-
setDynamicInfo
Sets the dynamically loaded additional info items.- Parameters:
info
- the dynamically loaded additional info items
-