org.jbpm.formbuilder.client.menu.items
Class CustomMenuItem

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.AbsolutePanel
                      extended by org.jbpm.formapi.client.menu.FBMenuItem
                          extended by org.jbpm.formbuilder.client.menu.items.CustomMenuItem
All Implemented Interfaces:
com.allen_sauer.gwt.dnd.client.HasDragHandle, 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.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

public class CustomMenuItem
extends FBMenuItem

This class is used to store a POJO representation of a complex item that can be extrapolated from other simpler items, and allow the user to use them by having it as a custom menu option


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
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
CustomMenuItem()
           
CustomMenuItem(FormItemRepresentation representation, String optionName, List<FBFormEffect> formEffects, String groupName)
           
 
Method Summary
 void addEffect(FBFormEffect effect)
           
 FBFormItem buildWidget()
           
 FBMenuItem cloneWidget()
           
 com.google.gwt.user.client.ui.Label getDescription()
           
 String getGroupName()
           
protected  com.google.gwt.resources.client.ImageResource getIconUrl()
           
 String getItemId()
           
 String getOptionName()
           
 FormItemRepresentation getRepresentation()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void setGroupName(String groupName)
           
 void setOptionName(String optionName)
           
 void setRepresentation(FormItemRepresentation representation)
           
 
Methods inherited from class org.jbpm.formapi.client.menu.FBMenuItem
addAllowedEvent, build, clone, getAllowedEvents, getAllowedEventsAsMap, getDragHandle, getFormEffects, onLoad, onUnload, repaint, setPixelSize, setSize
 
Methods inherited from class com.google.gwt.user.client.ui.AbsolutePanel
add, add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImpl
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, 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
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

CustomMenuItem

public CustomMenuItem()

CustomMenuItem

public CustomMenuItem(FormItemRepresentation representation,
                      String optionName,
                      List<FBFormEffect> formEffects,
                      String groupName)
Method Detail

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

getOptionName

public String getOptionName()

getRepresentation

public FormItemRepresentation getRepresentation()

setRepresentation

public void setRepresentation(FormItemRepresentation representation)

setOptionName

public void setOptionName(String optionName)

getGroupName

public String getGroupName()

setGroupName

public void setGroupName(String groupName)

getIconUrl

protected com.google.gwt.resources.client.ImageResource getIconUrl()
Specified by:
getIconUrl in class FBMenuItem

getDescription

public com.google.gwt.user.client.ui.Label getDescription()
Specified by:
getDescription in class FBMenuItem

cloneWidget

public FBMenuItem cloneWidget()
Specified by:
cloneWidget in class FBMenuItem

addEffect

public void addEffect(FBFormEffect effect)
Overrides:
addEffect in class FBMenuItem

buildWidget

public FBFormItem buildWidget()
Specified by:
buildWidget in class FBMenuItem

getItemId

public String getItemId()
Overrides:
getItemId in class FBMenuItem


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.