info.magnolia.ui.vaadin.gwt.client.actionbar
Class VActionbarItem

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.VActionbarItem
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 VActionbarItem
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  VActionbarItemJSO data
           
protected  com.googlecode.mgwt.ui.client.widget.touch.TouchDelegate delegate
           
protected  com.google.web.bindery.event.shared.EventBus eventBus
           
protected  VActionbarGroup group
           
protected  List<com.google.gwt.event.shared.HandlerRegistration> handlers
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VActionbarItem(VActionbarItemJSO data, VActionbarGroup group, com.google.web.bindery.event.shared.EventBus eventBus)
          Instantiates a new action in action bar.
VActionbarItem(VActionbarItemJSO data, VActionbarGroup group, com.google.web.bindery.event.shared.EventBus eventBus, com.vaadin.terminal.gwt.client.ui.Icon icon)
          Deprecated. 
 
Method Summary
protected  void bindHandlers()
           
 String getName()
           
 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
 
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected final VActionbarItemJSO 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

handlers

protected List<com.google.gwt.event.shared.HandlerRegistration> handlers
Constructor Detail

VActionbarItem

@Deprecated
public VActionbarItem(VActionbarItemJSO data,
                                 VActionbarGroup group,
                                 com.google.web.bindery.event.shared.EventBus eventBus,
                                 com.vaadin.terminal.gwt.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.

VActionbarItem

public VActionbarItem(VActionbarItemJSO 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)

update

public void update()


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