info.magnolia.module.groovy.terminal
Class Terminal

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractJavaScriptComponent
              extended by info.magnolia.module.groovy.terminal.Terminal
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, Serializable

public class Terminal
extends com.vaadin.ui.AbstractJavaScriptComponent

Wraps JQuery Terminal Emulator plugin (http://terminal.jcubic.pl) as Vaadin component. Loading jQuery from Google apis is needed when using the terminal component in the MgnlGroovyRescueApp where jQuery can't be provided by Magnolia 5 framework.

See Also:
Serialized Form

Nested Class Summary
static class Terminal.SerializableBinding
          SerializableBinding.
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Field Summary
static String BINDING_SESSION_ATTRIBUTE
           
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
Terminal(info.magnolia.i18nsystem.SimpleTranslator simpleTranslator, boolean useSystemContext)
           
 
Method Summary
 void execute(String command)
           
 String getCommand()
           
 TerminalState getState()
           
protected  boolean isAuthorized(info.magnolia.cms.security.User currentUser)
           
 boolean isUseSystemContext()
           
 
Methods inherited from class com.vaadin.ui.AbstractJavaScriptComponent
addFunction, callFunction, registerRpc
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
getUI
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Field Detail

BINDING_SESSION_ATTRIBUTE

public static final String BINDING_SESSION_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

Terminal

@Inject
public Terminal(info.magnolia.i18nsystem.SimpleTranslator simpleTranslator,
                       boolean useSystemContext)
Parameters:
useSystemContext - if true will run execute(String) method in system context (needed especially by MgnlGroovyRescueApp).
Method Detail

isUseSystemContext

public boolean isUseSystemContext()

getCommand

public String getCommand()

getState

public TerminalState getState()
Overrides:
getState in class com.vaadin.ui.AbstractJavaScriptComponent

execute

public void execute(String command)
             throws Exception
Throws:
Exception

isAuthorized

protected boolean isAuthorized(info.magnolia.cms.security.User currentUser)


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.