public abstract class A_CmsUI extends com.vaadin.ui.UI
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.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 |
---|
A_CmsUI()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static A_CmsUI |
get()
Returns the current UI.
|
static CmsObject |
getCmsObject()
Returns the current cms context.
|
CmsDisplayType |
getDisplayType()
Gets the display type from the time when the UI was initialized.
|
CmsResource |
getStoredFolder()
Gets the stored folder.
|
protected void |
init(com.vaadin.server.VaadinRequest request) |
void |
openPageOrWarn(java.lang.String link,
java.lang.String target)
Tries to open a new browser window, and shows a warning if opening the window fails (usually because of popup blockers).
|
void |
openPageOrWarn(java.lang.String link,
java.lang.String target,
java.lang.String warning)
Tries to open a new browser window, and shows a warning if opening the window fails (usually because of popup blockers).
|
void |
setContentToDialog(java.lang.String caption,
com.vaadin.ui.Component component)
Replaces the ui content with a single dialog.
|
void |
setError(java.lang.String error)
Displays an error message in a centered box.
|
void |
storeCurrentFolder(CmsResource folder)
Stores the current folder.
|
access, accessSynchronously, addAction, addActionHandler, addClickListener, addListener, addPollListener, addWindow, attach, changeVariables, close, detach, doInit, doRefresh, focus, getActionManager, getComponentCount, getConnectorTracker, getCurrent, getEmbedId, getLastHeartbeatTimestamp, getLastProcessedClientToServerId, getLoadingIndicatorConfiguration, getLocaleService, getNavigator, getNotificationConfiguration, getOverlayContainerLabel, getPage, getPollInterval, getPushConfiguration, getPushConnection, getReconnectDialogConfiguration, getScrollLeft, getScrollTop, getSession, getState, getState, getStateType, getTabIndex, getTheme, getTooltipConfiguration, getUI, getUIId, getWindows, isClosing, isConnectorEnabled, isResizeLazy, iterator, paintContent, push, refresh, removeAction, removeActionHandler, removeClickListener, removeListener, removePollListener, removeWindow, scrollIntoView, setCaption, setContent, setCurrent, setFocusedComponent, setLastHeartbeatTimestamp, setLastProcessedClientToServerId, setNavigator, setOverlayContainerLabel, setPollInterval, setPushConnection, setResizeLazy, setScrollLeft, setScrollTop, setSession, setTabIndex, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotification
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getContent, readDesign, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setHeight, setWidth, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public A_CmsUI()
public static CmsObject getCmsObject()
public CmsDisplayType getDisplayType()
public CmsResource getStoredFolder()
protected void init(com.vaadin.server.VaadinRequest request)
init
in class com.vaadin.ui.UI
UI.init(com.vaadin.server.VaadinRequest)
public void openPageOrWarn(java.lang.String link, java.lang.String target)
link
- the URL to open in the new windowtarget
- the target window namepublic void openPageOrWarn(java.lang.String link, java.lang.String target, java.lang.String warning)
link
- the URL to open in the new windowtarget
- the target window namewarning
- the warning to show if opening the window failspublic void setContentToDialog(java.lang.String caption, com.vaadin.ui.Component component)
TODO: In the future this should only handle window creation, refactor dialog contents to CmsBasicDialog
caption
- the captioncomponent
- the dialog contentpublic void setError(java.lang.String error)
error
- the error message to displaypublic void storeCurrentFolder(CmsResource folder)
folder
- the current folder