us.asciiroth.client.ui
Class CellMessagePanel

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.SimplePanel
                  extended by com.google.gwt.user.client.ui.PopupPanel
                      extended by us.asciiroth.client.ui.CellPanel
                          extended by us.asciiroth.client.ui.CellMessagePanel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>

public class CellMessagePanel
extends CellPanel


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
 
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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
CellMessagePanel()
           
 
Method Summary
 void addMessage(java.lang.String message)
           
 void clearMessages()
           
 void display(int left, int top)
           
 com.google.gwt.user.client.Element getTd()
           
 int getTdHeight()
           
 int getTdLeft()
           
 int getTdTop()
           
 int getTdWidth()
           
 double getTimeout()
          The length of time a message shows gets longer as the length of the message increases.
 void hide()
           
 boolean isInUse()
           
 boolean overlaps(CellMessagePanel peer)
           
 boolean overlaps(com.google.gwt.user.client.Element td)
           
 void setTd(com.google.gwt.user.client.Element element)
           
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeTo
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
clear
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
fireEvent, getParent, isAttached, onBrowserEvent, removeFromParent, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStylePrimaryName, setVisible, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

CellMessagePanel

public CellMessagePanel()
Method Detail

addMessage

public void addMessage(java.lang.String message)

clearMessages

public void clearMessages()

display

public void display(int left,
                    int top)

getTd

public com.google.gwt.user.client.Element getTd()

getTdHeight

public int getTdHeight()

getTdLeft

public int getTdLeft()

getTdTop

public int getTdTop()

getTdWidth

public int getTdWidth()

getTimeout

public double getTimeout()
The length of time a message shows gets longer as the length of the message increases. Although the message manager is on a timer, so there's a resolution of about 500 ms to this. Still, it seems to work okay.

Returns:
the number of milliseconds (at a minimum) the message should be shown before it is automatically hidden. Moving or interacting with the board can cause the message to dismiss sooner.

hide

public void hide()
Overrides:
hide in class com.google.gwt.user.client.ui.PopupPanel

isInUse

public boolean isInUse()

overlaps

public boolean overlaps(CellMessagePanel peer)

overlaps

public boolean overlaps(com.google.gwt.user.client.Element td)

setTd

public void setTd(com.google.gwt.user.client.Element element)

0.7

2009 Alx Dark