Form Builder NG Model 6.0.0-SNAPSHOT

org.jbpm.form.builder.ng.model.common.panels
Class MovablePanel

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.form.builder.ng.model.common.panels.MovablePanel
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 MovablePanel
extends com.google.gwt.user.client.ui.AbsolutePanel
implements com.allen_sauer.gwt.dnd.client.HasDragHandle


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
MovablePanel(com.google.gwt.user.client.ui.Widget widget, com.google.gwt.user.client.ui.Widget oldContainer)
           
 
Method Summary
 com.google.gwt.user.client.ui.Widget getDragHandle()
           
 com.google.gwt.user.client.ui.Widget getMainWidget()
           
 com.google.gwt.user.client.ui.Widget getOldContainer()
           
protected  void onLoad()
          Adjust the shim size and attach once our widget dimensions are known.
protected  void onUnload()
          Remove the shim to allow the widget to size itself when reattached.
 void setPixelSize(int width, int height)
          Let shim size match our size.
 void setSize(String width, String height)
          Let shim size match our size.
 
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, onBrowserEvent, 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

MovablePanel

public MovablePanel(com.google.gwt.user.client.ui.Widget widget,
                    com.google.gwt.user.client.ui.Widget oldContainer)
Method Detail

getMainWidget

public com.google.gwt.user.client.ui.Widget getMainWidget()

getOldContainer

public com.google.gwt.user.client.ui.Widget getOldContainer()

getDragHandle

public com.google.gwt.user.client.ui.Widget getDragHandle()
Specified by:
getDragHandle in interface com.allen_sauer.gwt.dnd.client.HasDragHandle

setPixelSize

public void setPixelSize(int width,
                         int height)
Let shim size match our size.

Overrides:
setPixelSize in class com.google.gwt.user.client.ui.UIObject
Parameters:
width - the desired pixel width
height - the desired pixel height

setSize

public void setSize(String width,
                    String height)
Let shim size match our size.

Overrides:
setSize in class com.google.gwt.user.client.ui.UIObject
Parameters:
width - the desired CSS width
height - the desired CSS height

onLoad

protected void onLoad()
Adjust the shim size and attach once our widget dimensions are known.

Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

onUnload

protected void onUnload()
Remove the shim to allow the widget to size itself when reattached.

Overrides:
onUnload in class com.google.gwt.user.client.ui.Widget

Form Builder NG Model 6.0.0-SNAPSHOT

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