com.ebmwebsourcing.geasytools.geasyui.impl.core
Class UIPanel

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.Composite
              extended by com.ebmwebsourcing.geasytools.geasyui.impl.core.UIPanel
All Implemented Interfaces:
com.ebmwebsourcing.geasytools.geasygraph.api.IGraph, IContainer, IPositionable, IDroppableElement, IHasUIPanelResizeUIHandlers, IUIPanel, com.google.gwt.event.dom.client.HasAllMouseHandlers, com.google.gwt.event.dom.client.HasClickHandlers, com.google.gwt.event.dom.client.HasDoubleClickHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasMouseDownHandlers, com.google.gwt.event.dom.client.HasMouseMoveHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers, com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseUpHandlers, com.google.gwt.event.dom.client.HasMouseWheelHandlers, com.google.gwt.event.dom.client.HasScrollHandlers, 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.IsWidget

public abstract class UIPanel
extends com.google.gwt.user.client.ui.Composite
implements IUIPanel, IHasUIPanelResizeUIHandlers


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  com.google.gwt.event.shared.HandlerManager handlerManager
           
protected  com.google.gwt.user.client.ui.AbsolutePanel mainPanel
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
UIPanel(java.lang.String id)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
 void addContainerHandler(IContainerHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
           
 void addDropHandler(IDropHandler dropHandler)
           
 com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(com.google.gwt.event.dom.client.KeyPressHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
           
 void addNode(com.ebmwebsourcing.geasytools.geasygraph.api.INode node)
           
 com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
           
 void addUIElement(IUIElement uiElement)
           
 void addUIPanelHandler(IUIPanelHandler handler)
           
 void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 float getAbsoluteX()
           
 float getAbsoluteY()
           
 IRegion getBottomRegion()
           
 IUIPanelResizeUIHandler getBottomResizeHandler()
           
 java.util.LinkedHashMap<java.lang.String,IUIElement> getChildrenUIElements()
           
 int getClientHeight()
           
 int getClientWidth()
           
 IContainer getContainer()
           
 IDDManager getDDManager()
           
 IUIPanelDefaultHandlers getDefaultHandlers()
           
 IDroppableDefaultHandlers getDroppableDefaultHandlers()
           
 com.google.gwt.event.shared.HandlerManager getHandlerManager()
           
 int getHeight()
           
 java.lang.String getId()
           
 IRegion getLeftRegion()
           
 IUIPanelResizeUIHandler getLeftResizeHandler()
           
protected  com.google.gwt.user.client.ui.AbsolutePanel getMainPanel()
           
 IMouseState getMouseState()
           
 java.util.HashSet<com.ebmwebsourcing.geasytools.geasygraph.api.INode> getNodes()
           
 IPoint getNorthWestPoint()
          North West x,y absolute positions of actual element
 float getRelativeX()
          X position relatively to current container
 float getRelativeY()
          Y position relatively to current container
 IRegion getRightRegion()
           
 IUIPanelResizeUIHandler getRightResizeHandler()
           
 int getScrollLeft()
           
 int getScrollTop()
           
 java.util.HashMap<java.lang.String,ISelectable> getSelectedElements()
           
 ISelectionMarker getSelectionMarker()
           
 ISelector getSelector()
           
 IPoint getSouthEastPoint()
          South East x,y absolute positions of actual element
 IRegion getTopRegion()
           
 IUIPanelResizeUIHandler getTopResizeHandler()
           
 IUIElement getUIElementById(java.lang.String id)
           
 java.util.LinkedHashMap<java.lang.String,IUIElement> getUIElements()
          Returns all UIElement actually in UIPanel
 IUIPanel getUIPanel()
           
 int getWidth()
           
protected  void onLoad()
          As UI is not loaded yet width and height are not set yet.
 void refreshUIHandlers()
           
 void removeAllChildren()
           
 void removeAllElements()
           
 void removeChildElement(IUIElement uiElement)
           
 void removeElement(IUIElement uiElement)
           
 void removeSelectedElements()
           
 void removeSelectionMarker()
           
 void removeSelector()
           
 void setContainer(IContainer container)
           
 void setRelativeX(float x)
           
 void setRelativeY(float y)
           
 void setSelectedElements(java.util.HashMap<java.lang.String,ISelectable> selectedElements)
           
 void setSelectionMarker(ISelectionMarker selectionMarker, int x, int y)
           
 void setSelector(ISelector selector, int x, int y)
           
 void unSelectAllEments()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IUIPanel
getName
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.droppable.IDroppableElement
getAcceptedTypes
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
getAbsoluteLeft, getAbsoluteTop
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IContainer
getAbsoluteLeft, getAbsoluteTop, getContainerDefaultHandler, getElementFactory
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.uipanel.IHasUIPanelResizeUIHandlers
getResizeConfiguration
 

Field Detail

handlerManager

protected com.google.gwt.event.shared.HandlerManager handlerManager

mainPanel

protected com.google.gwt.user.client.ui.AbsolutePanel mainPanel
Constructor Detail

UIPanel

public UIPanel(java.lang.String id)
Method Detail

getMainPanel

protected com.google.gwt.user.client.ui.AbsolutePanel getMainPanel()

fireEvent

public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
Specified by:
fireEvent in interface com.google.gwt.event.shared.HasHandlers
Overrides:
fireEvent in class com.google.gwt.user.client.ui.Widget

getScrollTop

public int getScrollTop()
Specified by:
getScrollTop in interface IContainer

getScrollLeft

public int getScrollLeft()
Specified by:
getScrollLeft in interface IContainer

addUIElement

public void addUIElement(IUIElement uiElement)
Specified by:
addUIElement in interface IContainer
Specified by:
addUIElement in interface IUIPanel

getUIElementById

public IUIElement getUIElementById(java.lang.String id)
Specified by:
getUIElementById in interface IUIPanel

setSelectedElements

public void setSelectedElements(java.util.HashMap<java.lang.String,ISelectable> selectedElements)
Specified by:
setSelectedElements in interface IUIPanel

onLoad

protected void onLoad()
As UI is not loaded yet width and height are not set yet. We have to wait current element to be loaded

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

getAbsoluteX

public float getAbsoluteX()
Specified by:
getAbsoluteX in interface IUIPanel

getAbsoluteY

public float getAbsoluteY()
Specified by:
getAbsoluteY in interface IUIPanel

getDDManager

public IDDManager getDDManager()
Specified by:
getDDManager in interface IDroppableElement
Specified by:
getDDManager in interface IUIPanel

getDefaultHandlers

public IUIPanelDefaultHandlers getDefaultHandlers()
Specified by:
getDefaultHandlers in interface IUIPanel

getHeight

public int getHeight()
Specified by:
getHeight in interface IUIPanel

getWidth

public int getWidth()
Specified by:
getWidth in interface IUIPanel

getClientHeight

public int getClientHeight()
Specified by:
getClientHeight in interface IContainer

getClientWidth

public int getClientWidth()
Specified by:
getClientWidth in interface IContainer

getMouseState

public IMouseState getMouseState()
Specified by:
getMouseState in interface IUIPanel

getSelectedElements

public java.util.HashMap<java.lang.String,ISelectable> getSelectedElements()
Specified by:
getSelectedElements in interface IUIPanel

getSelectionMarker

public ISelectionMarker getSelectionMarker()
Specified by:
getSelectionMarker in interface IUIPanel

getSelector

public ISelector getSelector()
Specified by:
getSelector in interface IUIPanel

getUIElements

public java.util.LinkedHashMap<java.lang.String,IUIElement> getUIElements()
Description copied from interface: IUIPanel
Returns all UIElement actually in UIPanel

Specified by:
getUIElements in interface IUIPanel

getChildrenUIElements

public java.util.LinkedHashMap<java.lang.String,IUIElement> getChildrenUIElements()
Specified by:
getChildrenUIElements in interface IContainer

removeSelectionMarker

public void removeSelectionMarker()
Specified by:
removeSelectionMarker in interface IUIPanel

removeSelector

public void removeSelector()
Specified by:
removeSelector in interface IUIPanel

removeSelectedElements

public void removeSelectedElements()
Specified by:
removeSelectedElements in interface IUIPanel

setSelectionMarker

public void setSelectionMarker(ISelectionMarker selectionMarker,
                               int x,
                               int y)
Specified by:
setSelectionMarker in interface IUIPanel

setSelector

public void setSelector(ISelector selector,
                        int x,
                        int y)
Specified by:
setSelector in interface IUIPanel

unSelectAllEments

public void unSelectAllEments()
Specified by:
unSelectAllEments in interface IUIPanel

addDropHandler

public void addDropHandler(IDropHandler dropHandler)
Specified by:
addDropHandler in interface IDroppableElement

addContainerHandler

public void addContainerHandler(IContainerHandler handler)
Specified by:
addContainerHandler in interface IContainer

addUIPanelHandler

public void addUIPanelHandler(IUIPanelHandler handler)
Specified by:
addUIPanelHandler in interface IUIPanel

getDroppableDefaultHandlers

public IDroppableDefaultHandlers getDroppableDefaultHandlers()
Specified by:
getDroppableDefaultHandlers in interface IDroppableElement

getHandlerManager

public com.google.gwt.event.shared.HandlerManager getHandlerManager()
Specified by:
getHandlerManager in interface IDroppableElement

getId

public java.lang.String getId()
Specified by:
getId in interface IContainer
Specified by:
getId in interface IDroppableElement

getNorthWestPoint

public IPoint getNorthWestPoint()
Description copied from interface: IDroppableElement
North West x,y absolute positions of actual element

Specified by:
getNorthWestPoint in interface IDroppableElement
Returns:

getSouthEastPoint

public IPoint getSouthEastPoint()
Description copied from interface: IDroppableElement
South East x,y absolute positions of actual element

Specified by:
getSouthEastPoint in interface IDroppableElement
Returns:

getUIPanel

public IUIPanel getUIPanel()
Specified by:
getUIPanel in interface IDroppableElement

getContainer

public IContainer getContainer()
Specified by:
getContainer in interface IPositionable

getRelativeX

public float getRelativeX()
Description copied from interface: IPositionable
X position relatively to current container

Specified by:
getRelativeX in interface IPositionable
Returns:

getRelativeY

public float getRelativeY()
Description copied from interface: IPositionable
Y position relatively to current container

Specified by:
getRelativeY in interface IPositionable
Returns:

setContainer

public void setContainer(IContainer container)
Specified by:
setContainer in interface IPositionable

setRelativeX

public void setRelativeX(float x)
Specified by:
setRelativeX in interface IPositionable

setRelativeY

public void setRelativeY(float y)
Specified by:
setRelativeY in interface IPositionable

removeAllChildren

public void removeAllChildren()
Specified by:
removeAllChildren in interface IContainer

removeChildElement

public void removeChildElement(IUIElement uiElement)
Specified by:
removeChildElement in interface IContainer

removeElement

public void removeElement(IUIElement uiElement)
Specified by:
removeElement in interface IUIPanel

removeAllElements

public void removeAllElements()
Specified by:
removeAllElements in interface IUIPanel

addKeyPressHandler

public com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(com.google.gwt.event.dom.client.KeyPressHandler handler)
Specified by:
addKeyPressHandler in interface com.google.gwt.event.dom.client.HasKeyPressHandlers

addMouseDownHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
Specified by:
addMouseDownHandler in interface com.google.gwt.event.dom.client.HasMouseDownHandlers

addMouseUpHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
Specified by:
addMouseUpHandler in interface com.google.gwt.event.dom.client.HasMouseUpHandlers

addMouseOutHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
Specified by:
addMouseOutHandler in interface com.google.gwt.event.dom.client.HasMouseOutHandlers

addMouseOverHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
Specified by:
addMouseOverHandler in interface com.google.gwt.event.dom.client.HasMouseOverHandlers

addMouseMoveHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
Specified by:
addMouseMoveHandler in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers

addMouseWheelHandler

public com.google.gwt.event.shared.HandlerRegistration addMouseWheelHandler(com.google.gwt.event.dom.client.MouseWheelHandler handler)
Specified by:
addMouseWheelHandler in interface com.google.gwt.event.dom.client.HasMouseWheelHandlers

addClickHandler

public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Specified by:
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlers

addDoubleClickHandler

public com.google.gwt.event.shared.HandlerRegistration addDoubleClickHandler(com.google.gwt.event.dom.client.DoubleClickHandler handler)
Specified by:
addDoubleClickHandler in interface com.google.gwt.event.dom.client.HasDoubleClickHandlers

addScrollHandler

public com.google.gwt.event.shared.HandlerRegistration addScrollHandler(com.google.gwt.event.dom.client.ScrollHandler handler)
Specified by:
addScrollHandler in interface com.google.gwt.event.dom.client.HasScrollHandlers

addNode

public void addNode(com.ebmwebsourcing.geasytools.geasygraph.api.INode node)
Specified by:
addNode in interface com.ebmwebsourcing.geasytools.geasygraph.api.IGraph

getNodes

public java.util.HashSet<com.ebmwebsourcing.geasytools.geasygraph.api.INode> getNodes()
Specified by:
getNodes in interface com.ebmwebsourcing.geasytools.geasygraph.api.IGraph

getTopRegion

public IRegion getTopRegion()
Specified by:
getTopRegion in interface IHasUIPanelResizeUIHandlers

getBottomRegion

public IRegion getBottomRegion()
Specified by:
getBottomRegion in interface IHasUIPanelResizeUIHandlers

getLeftRegion

public IRegion getLeftRegion()
Specified by:
getLeftRegion in interface IHasUIPanelResizeUIHandlers

getRightRegion

public IRegion getRightRegion()
Specified by:
getRightRegion in interface IHasUIPanelResizeUIHandlers

getTopResizeHandler

public IUIPanelResizeUIHandler getTopResizeHandler()
Specified by:
getTopResizeHandler in interface IHasUIPanelResizeUIHandlers

getBottomResizeHandler

public IUIPanelResizeUIHandler getBottomResizeHandler()
Specified by:
getBottomResizeHandler in interface IHasUIPanelResizeUIHandlers

getLeftResizeHandler

public IUIPanelResizeUIHandler getLeftResizeHandler()
Specified by:
getLeftResizeHandler in interface IHasUIPanelResizeUIHandlers

getRightResizeHandler

public IUIPanelResizeUIHandler getRightResizeHandler()
Specified by:
getRightResizeHandler in interface IHasUIPanelResizeUIHandlers

refreshUIHandlers

public void refreshUIHandlers()
Specified by:
refreshUIHandlers in interface IHasUIPanelResizeUIHandlers


Copyright © 2010-2011 Petals Link. All Rights Reserved.