com.itmill.toolkit.terminal.gwt.client
Class ICaption

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.Label
              extended by com.google.gwt.user.client.ui.HTML
                  extended by com.itmill.toolkit.terminal.gwt.client.ICaption
All Implemented Interfaces:
com.google.gwt.i18n.client.HasDirection, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasHTML, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasWordWrap, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesMouseEvents, com.google.gwt.user.client.ui.SourcesMouseWheelEvents

public class ICaption
extends com.google.gwt.user.client.ui.HTML


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.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection
com.google.gwt.i18n.client.HasDirection.Direction
 
Field Summary
static String CLASSNAME
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT
 
Constructor Summary
ICaption(Paintable component, ApplicationConnection client)
           
 
Method Summary
 int getHeight()
           
 Paintable getOwner()
          Returns Paintable for which this Caption belongs to.
 int getRenderedWidth()
           
 int getRequiredWidth()
           
static boolean isNeeded(UIDL uidl)
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void setAlignment(String alignment)
           
 void setMaxWidth(int maxWidth)
           
 boolean shouldBePlacedAfterComponent()
           
 boolean updateCaption(UIDL uidl)
          Updates the caption from UIDL.
 
Methods inherited from class com.google.gwt.user.client.ui.HTML
getHTML, setHTML, wrap
 
Methods inherited from class com.google.gwt.user.client.ui.Label
addClickListener, addMouseListener, addMouseWheelListener, getDirection, getHorizontalAlignment, getText, getWordWrap, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setHorizontalAlignment, setText, setWordWrap
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent
 
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setWidth, setVisible, setVisible, sinkEvents, 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.HasText
getText, setText
 

Field Detail

CLASSNAME

public static final String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

ICaption

public ICaption(Paintable component,
                ApplicationConnection client)
Parameters:
component - optional owner of caption. If not set, getOwner will return null
client -
Method Detail

updateCaption

public boolean updateCaption(UIDL uidl)
Updates the caption from UIDL.

Parameters:
uidl -
Returns:
true if the position where the caption should be placed has changed

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.Label

isNeeded

public static boolean isNeeded(UIDL uidl)

getOwner

public Paintable getOwner()
Returns Paintable for which this Caption belongs to.

Returns:
owner Widget

shouldBePlacedAfterComponent

public boolean shouldBePlacedAfterComponent()

getRenderedWidth

public int getRenderedWidth()

getRequiredWidth

public int getRequiredWidth()

getHeight

public int getHeight()

setAlignment

public void setAlignment(String alignment)

setMaxWidth

public void setMaxWidth(int maxWidth)


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.