Package org.opencms.gwt.client.ui
Class CmsInfoHeader
- 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.CmsInfoHeader
-
- 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 CmsInfoHeader extends com.google.gwt.user.client.ui.Composite
Header info widget.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
CmsInfoHeader.I_CmsInfoHeaderUiBinder
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.dom.client.Element
m_buttonBar
The button bar.protected com.google.gwt.dom.client.ParagraphElement
m_description
The description element.protected com.google.gwt.dom.client.SpanElement
m_locale
The locale cell.protected com.google.gwt.dom.client.SpanElement
m_siteHost
The site host element.protected com.google.gwt.dom.client.HeadingElement
m_title
The title element.protected com.google.gwt.dom.client.DivElement
m_typeIcon
The type icon element.
-
Constructor Summary
Constructors Constructor Description CmsInfoHeader(java.lang.String title, java.lang.String description, java.lang.String path, java.lang.String locale, java.lang.String typeIcon)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addButtonTopRight(com.google.gwt.user.client.ui.Widget button)
Adds a button to the top right of the info header.-
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_description
@UiField protected com.google.gwt.dom.client.ParagraphElement m_description
The description element.
-
m_locale
@UiField protected com.google.gwt.dom.client.SpanElement m_locale
The locale cell.
-
m_siteHost
@UiField protected com.google.gwt.dom.client.SpanElement m_siteHost
The site host element.
-
m_title
@UiField protected com.google.gwt.dom.client.HeadingElement m_title
The title element.
-
m_typeIcon
@UiField protected com.google.gwt.dom.client.DivElement m_typeIcon
The type icon element.
-
m_buttonBar
@UiField protected com.google.gwt.dom.client.Element m_buttonBar
The button bar.
-
-
Constructor Detail
-
CmsInfoHeader
public CmsInfoHeader(java.lang.String title, java.lang.String description, java.lang.String path, java.lang.String locale, java.lang.String typeIcon)
Constructor.- Parameters:
title
- the titledescription
- the descriptionpath
- the pathlocale
- the localetypeIcon
- the type icon CSS class
-
-
Method Detail
-
addButtonTopRight
public void addButtonTopRight(com.google.gwt.user.client.ui.Widget button)
Adds a button to the top right of the info header.- Parameters:
button
- the button to add
-
-