info.magnolia.ui.vaadin.gwt.client.actionbar.connector
Class ActionbarConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.ui.AbstractComponentConnector
          extended by info.magnolia.ui.vaadin.gwt.client.actionbar.connector.ActionbarConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ComponentConnector, com.vaadin.client.ServerConnector, com.vaadin.shared.Connector, ActionbarWidgetView.Presenter, Serializable

public class ActionbarConnector
extends com.vaadin.client.ui.AbstractComponentConnector
implements ActionbarWidgetView.Presenter

ActionbarConnector.

See Also:
Serialized Form

Constructor Summary
ActionbarConnector()
           
 
Method Summary
protected  com.google.gwt.user.client.ui.Widget createWidget()
           
 void forceLayout()
           
 String getIconResourceURL(String actionName)
           
 ActionbarState getState()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
protected  void init()
           
 boolean isDeviceTablet()
          Determine if device is tablet.
 void setOpened(boolean isOpen)
           
 void triggerAction(String actionToken)
           
 
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
delegateCaptionHandling, flush, getIcon, getLayoutManager, getTooltipInfo, hasTooltip, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetStyleNames
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

ActionbarConnector

public ActionbarConnector()
Method Detail

init

protected void init()
Overrides:
init in class com.vaadin.client.ui.AbstractConnector

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Specified by:
getWidget in interface com.vaadin.client.ComponentConnector
Overrides:
getWidget in class com.vaadin.client.ui.AbstractComponentConnector

createWidget

protected com.google.gwt.user.client.ui.Widget createWidget()
Overrides:
createWidget in class com.vaadin.client.ui.AbstractComponentConnector

getState

public ActionbarState getState()
Specified by:
getState in interface com.vaadin.client.ComponentConnector
Specified by:
getState in interface com.vaadin.client.ServerConnector
Overrides:
getState in class com.vaadin.client.ui.AbstractComponentConnector

triggerAction

public void triggerAction(String actionToken)
Specified by:
triggerAction in interface ActionbarWidgetView.Presenter

setOpened

public void setOpened(boolean isOpen)
Specified by:
setOpened in interface ActionbarWidgetView.Presenter

forceLayout

public void forceLayout()
Specified by:
forceLayout in interface ActionbarWidgetView.Presenter

getIconResourceURL

public String getIconResourceURL(String actionName)
Specified by:
getIconResourceURL in interface ActionbarWidgetView.Presenter

isDeviceTablet

public boolean isDeviceTablet()
Determine if device is tablet. Allows option to add a querystring parameter of tablet=true for testing.

Specified by:
isDeviceTablet in interface ActionbarWidgetView.Presenter
Returns:
Whether device is tablet.


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