public class CmsResourceInfo extends com.vaadin.ui.CustomLayout
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
Constructor and Description |
---|
CmsResourceInfo()
Constructor.
|
CmsResourceInfo(CmsResource resource)
Constructor.
|
CmsResourceInfo(CmsResource resource,
boolean useState)
Constructor.
|
CmsResourceInfo(java.lang.String top,
java.lang.String bottom,
com.vaadin.server.Resource iconResource)
Constructor.
|
CmsResourceInfo(java.lang.String top,
java.lang.String bottom,
java.lang.String iconPath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CmsResourceInfo |
createSitemapResourceInfo(CmsResource resource,
CmsSite baseSite)
Creates a resource info widget for a resource that looks like the sitemap entry for that resource.
|
com.vaadin.v7.ui.Label |
getBottomLine()
Gets the bottom label.
|
com.vaadin.ui.Component |
getButtonWidget()
Gets the button label.
|
CmsResourceIcon |
getResourceIcon()
Gets the resource icon.
|
com.vaadin.v7.ui.Label |
getTopLine()
Gets the top label.
|
void |
setButtonWidget(com.vaadin.ui.Component button)
Replaces the button component.
|
addComponent, addComponent, changeVariables, getComponent, getComponentCount, getState, getState, getTemplateContents, getTemplateName, initTemplateContentsFromInputStream, iterator, paintContent, readDesign, removeComponent, removeComponent, replaceComponent, setTemplateContents, setTemplateName, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
public CmsResourceInfo()
public CmsResourceInfo(CmsResource resource)
resource
- the resourcepublic CmsResourceInfo(CmsResource resource, boolean useState)
resource
- the resourceuseState
- true if the resource state should be displayedpublic CmsResourceInfo(java.lang.String top, java.lang.String bottom, com.vaadin.server.Resource iconResource)
top
- the titlebottom
- the sub titleiconResource
- the icon resource pathpublic CmsResourceInfo(java.lang.String top, java.lang.String bottom, java.lang.String iconPath)
top
- the titlebottom
- the sub titleiconPath
- the icon resource pathpublic static CmsResourceInfo createSitemapResourceInfo(CmsResource resource, CmsSite baseSite)
resource
- the resourcebaseSite
- the base sitepublic com.vaadin.v7.ui.Label getBottomLine()
public com.vaadin.ui.Component getButtonWidget()
public CmsResourceIcon getResourceIcon()
public com.vaadin.v7.ui.Label getTopLine()
public void setButtonWidget(com.vaadin.ui.Component button)
button
- the new button component