info.magnolia.ui.vaadin.gwt.client.actionbar.widget
Class ActionbarItemWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by info.magnolia.ui.vaadin.gwt.client.actionbar.widget.ActionbarItemWidget
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.IsWidget
Direct Known Subclasses:
VActionbarItemTablet

public class ActionbarItemWidget
extends com.google.gwt.user.client.ui.Widget

The Class VAction, which displays a single action with label and icon within an action group.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  ActionbarItem data
           
protected  com.googlecode.mgwt.ui.client.widget.touch.TouchDelegate delegate
           
protected  com.google.web.bindery.event.shared.EventBus eventBus
           
protected  VActionbarGroup group
           
protected  boolean isEnabled
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ActionbarItemWidget(ActionbarItem data, VActionbarGroup group, com.google.web.bindery.event.shared.EventBus eventBus)
          Instantiates a new action in action bar.
ActionbarItemWidget(ActionbarItem data, VActionbarGroup group, com.google.web.bindery.event.shared.EventBus eventBus, com.vaadin.client.ui.Icon icon)
          Deprecated. 
 
Method Summary
protected  void bindHandlers()
           
 ActionbarItem getData()
           
 String getName()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void update()
           
 
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, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected final ActionbarItem data

eventBus

protected final com.google.web.bindery.event.shared.EventBus eventBus

group

protected VActionbarGroup group

delegate

protected com.googlecode.mgwt.ui.client.widget.touch.TouchDelegate delegate

isEnabled

protected boolean isEnabled
Constructor Detail

ActionbarItemWidget

@Deprecated
public ActionbarItemWidget(ActionbarItem data,
                                      VActionbarGroup group,
                                      com.google.web.bindery.event.shared.EventBus eventBus,
                                      com.vaadin.client.ui.Icon icon)
Deprecated. 

Instantiates a new action in action bar.

Parameters:
data - the data json object
eventBus - the event bus
icon - the icon Use #VActionbarItem(VActionbarItemJSO, VActionbarGroup, EventBus) instead.

ActionbarItemWidget

public ActionbarItemWidget(ActionbarItem data,
                           VActionbarGroup group,
                           com.google.web.bindery.event.shared.EventBus eventBus)
Instantiates a new action in action bar.

Parameters:
data - the data json object
group - the group
eventBus - the event bus
Method Detail

bindHandlers

protected void bindHandlers()

getName

public String getName()

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()

update

public void update()

getData

public ActionbarItem getData()


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