net.pleso.framework.client.ui.controls
Class StatusPanel

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 net.pleso.framework.client.ui.controls.StatusPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets

public class StatusPanel
extends com.google.gwt.user.client.ui.SimplePanel

Status panel widget. It works like popup panel, but without block user input inside. Can show text and centre by external widget.

CSS Style Rules


Constructor Summary
StatusPanel()
          Constructor
 
Method Summary
 com.google.gwt.user.client.ui.Widget getCenterByWidget()
          Gets widget to centre panel by.
 int getPopupLeft()
          Gets the popup's left position relative to the browser's client area.
 int getPopupTop()
          Gets the popup's top position relative to the browser's client area.
 java.lang.String getText()
          Gets text on panel.
 void hide()
          Hides the popup.
 boolean isShowing()
           
 boolean remove(com.google.gwt.user.client.ui.Widget w)
           
 void setCenterByWidget(com.google.gwt.user.client.ui.Widget centerByWidget)
          Sets widget to centre panel by.
 void setPopupPosition(int left, int top)
          Sets the popup's position relative to the browser's client area.
 void setText(java.lang.String text)
          Sets text on panel.
 void show()
          Shows the popup.
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
clear
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusPanel

public StatusPanel()
Constructor

Method Detail

getPopupLeft

public int getPopupLeft()
Gets the popup's left position relative to the browser's client area.

Returns:
the popup's left position

getPopupTop

public int getPopupTop()
Gets the popup's top position relative to the browser's client area.

Returns:
the popup's top position

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets
Overrides:
remove in class com.google.gwt.user.client.ui.SimplePanel

setPopupPosition

public void setPopupPosition(int left,
                             int top)
Sets the popup's position relative to the browser's client area. Implementation like in PopupPanel.setPopupPosition(int, int)

Parameters:
left - the left position, in pixels
top - the top position, in pixels

show

public void show()
Shows the popup. It have a child widget Label. Also centres status panel by user specific widget


hide

public void hide()
Hides the popup.


getCenterByWidget

public com.google.gwt.user.client.ui.Widget getCenterByWidget()
Gets widget to centre panel by.

Returns:
widget to centre panel by

setCenterByWidget

public void setCenterByWidget(com.google.gwt.user.client.ui.Widget centerByWidget)
Sets widget to centre panel by.

Parameters:
centerByWidget - widget to centre panel by

getText

public java.lang.String getText()
Gets text on panel.

Returns:
text on panel

setText

public void setText(java.lang.String text)
Sets text on panel.

Parameters:
text - text on panel

isShowing

public boolean isShowing()


Copyright © 2006-2007 pleso.net crew All Rights Reserved.