net.pleso.framework.client.ui.windows
Class ModalWindowDeck

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 net.pleso.framework.client.ui.windows.ModalWindowDeck
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class ModalWindowDeck
extends com.google.gwt.user.client.ui.Composite

Wrapped DeckPanel widget for using with IWindow objects.


Constructor Summary
ModalWindowDeck()
          Constructs a newly allocated empty ModalWindowDeck.
 
Method Summary
 void addWindow(IWindow window)
          Adds and shows the specified IWindow object to DeckPanel.
 int getWindowCount()
          Gets the number of child IWindow in this deck.
 boolean hasTopWindow(IWindow window)
          Determines whether ModalWindowDeck has specified IWindow object as top shown widget.
 boolean hasWindows()
          Determines whether ModalWindowDeck has at least one IWindow placed on it.
 void hideWindows()
          Hides all IWindow placed on deck applying IWindow.hideWindow() method on each of them.
 boolean removeWindow(IWindow window)
          Removes the specified IWindow object from DeckPanel and shows topmost window in deck list.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement
 
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, 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

ModalWindowDeck

public ModalWindowDeck()
Constructs a newly allocated empty ModalWindowDeck.

Method Detail

addWindow

public void addWindow(IWindow window)
Adds and shows the specified IWindow object to DeckPanel.

Parameters:
window - the IWindow to be added

removeWindow

public boolean removeWindow(IWindow window)
Removes the specified IWindow object from DeckPanel and shows topmost window in deck list.

Parameters:
window - the IWindow to be removed.
Returns:
true if IWindow was removed successfully or false if there was no such IWindow instance in deck

hasTopWindow

public boolean hasTopWindow(IWindow window)
Determines whether ModalWindowDeck has specified IWindow object as top shown widget.

Parameters:
window - the IWindow object to check if it is the on top
Returns:
true if specified IWindow is topmost shown deck widget

hasWindows

public boolean hasWindows()
Determines whether ModalWindowDeck has at least one IWindow placed on it.

Returns:
true if there is at least one IWindow on deck

getWindowCount

public int getWindowCount()
Gets the number of child IWindow in this deck.

Returns:
the number of child IWindow

hideWindows

public void hideWindows()
Hides all IWindow placed on deck applying IWindow.hideWindow() method on each of them.



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