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

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.UIElement
All Implemented Interfaces:
IGraphicElement, IPositionable, IUIElement, 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
Direct Known Subclasses:
Connector, Selectable

public abstract class UIElement
extends com.google.gwt.user.client.ui.Composite
implements IUIElement


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
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
UIElement(IUIPanel uiPanel, java.lang.String id)
           
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
 void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 IContainer getContainer()
           
 com.google.gwt.event.shared.HandlerManager getHandlerManager()
           
 java.lang.String getId()
           
abstract  com.google.gwt.user.client.ui.Widget getMainWidget()
           
 IMouseState getMouseState()
           
 float getRelativeX()
          X position relatively to current container
 float getRelativeY()
          Y position relatively to current container
 IUIPanel getUIPanel()
           
 int hashCode()
           
protected  void onAttach()
           
 void setContainer(IContainer container)
          The container is the element from with current element cannot be taken off.
 void setUIPanel(IUIPanel uiPanel)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, 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, 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, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IUIElement
getHeight, getName, getWidth, setHeight, setRelativeX, setRelativeY, setWidth
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IPositionable
getAbsoluteLeft, getAbsoluteTop
 
Methods inherited from interface com.ebmwebsourcing.geasytools.geasyui.api.core.IGraphicElement
hide, refresh, show, toBack, toFront
 

Field Detail

handlerManager

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

UIElement

public UIElement(IUIPanel uiPanel,
                 java.lang.String id)
Method Detail

onAttach

protected void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Composite

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

getContainer

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

getId

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

getMouseState

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

getUIPanel

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

setContainer

public void setContainer(IContainer container)
Description copied from interface: IUIElement
The container is the element from with current element cannot be taken off. This value can never be null. Default value is always IUIPanel

Specified by:
setContainer in interface IPositionable
Specified by:
setContainer in interface IUIElement

setUIPanel

public void setUIPanel(IUIPanel uiPanel)
Specified by:
setUIPanel in interface IUIElement

getRelativeX

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

Specified by:
getRelativeX in interface IPositionable
Specified by:
getRelativeX in interface IUIElement
Returns:

getRelativeY

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

Specified by:
getRelativeY in interface IPositionable
Specified by:
getRelativeY in interface IUIElement
Returns:

getHandlerManager

public com.google.gwt.event.shared.HandlerManager getHandlerManager()

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getMainWidget

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


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