Class CmsResourceRelationView
- 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.resourceinfo.CmsResourceRelationView
-
- 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
,I_CmsDescendantResizeHandler
public class CmsResourceRelationView extends com.google.gwt.user.client.ui.Composite implements I_CmsDescendantResizeHandler
Widget which shows which contents refer to a resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsResourceRelationView.Mode
Enum for the display mode.
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<java.lang.String>
m_filteredActions
Set of context menu actions which we do not want to appear in the context menu for the relation source items.protected CmsList<CmsListItem>
m_list
The panel containing the resource boxes.protected CmsList<CmsListItem>
m_otherSitesList
List for relations from other sites.protected com.google.gwt.user.client.ui.FlowPanel
m_panel
Main panel.protected CmsPopup
m_popup
The popup which contains this widget.
-
Constructor Summary
Constructors Constructor Description CmsResourceRelationView(org.opencms.gwt.shared.CmsResourceStatusBean status, CmsResourceRelationView.Mode mode, CmsContextMenuHandler menuHandler)
Creates a new widget instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fill()
Creates and renders the resource boxes for the related resources.void
initContent(org.opencms.gwt.shared.CmsResourceStatusBean status)
Initializes the content.void
onResizeDescendant()
This method should be called when a descendant widget changes its size.void
setPopup(CmsPopup popup)
Sets the popup which contains this widget.-
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_filteredActions
protected static java.util.Set<java.lang.String> m_filteredActions
Set of context menu actions which we do not want to appear in the context menu for the relation source items.
-
m_list
protected CmsList<CmsListItem> m_list
The panel containing the resource boxes.
-
m_otherSitesList
protected CmsList<CmsListItem> m_otherSitesList
List for relations from other sites.
-
m_panel
protected com.google.gwt.user.client.ui.FlowPanel m_panel
Main panel.
-
-
Constructor Detail
-
CmsResourceRelationView
public CmsResourceRelationView(org.opencms.gwt.shared.CmsResourceStatusBean status, CmsResourceRelationView.Mode mode, CmsContextMenuHandler menuHandler)
Creates a new widget instance.- Parameters:
status
- the resource status from which we get the related resources to display.mode
- the display mode (display relation sources or targets)menuHandler
- the context menu handler
-
-
Method Detail
-
initContent
public void initContent(org.opencms.gwt.shared.CmsResourceStatusBean status)
Initializes the content.- Parameters:
status
- the status data
-
onResizeDescendant
public void onResizeDescendant()
Description copied from interface:I_CmsDescendantResizeHandler
This method should be called when a descendant widget changes its size.- Specified by:
onResizeDescendant
in interfaceI_CmsDescendantResizeHandler
- See Also:
I_CmsDescendantResizeHandler.onResizeDescendant()
-
setPopup
public void setPopup(CmsPopup popup)
Sets the popup which contains this widget.- Parameters:
popup
- the popup
-
fill
protected void fill()
Creates and renders the resource boxes for the related resources.
-
-