com.itmill.toolkit.terminal.gwt.client.ui
Class IToolkitOverlay

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 com.itmill.toolkit.terminal.gwt.client.ui.IToolkitOverlay
All Implemented Interfaces:
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, Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
IContextMenu, IDebugConsole, IFilterSelect.SuggestionPopup, INotification, ITooltip, IWindow

public class IToolkitOverlay
extends com.google.gwt.user.client.ui.PopupPanel

In Toolkit UI this Overlay should always be used for all elements that temporary float over other components like context menus etc. This is to deal stacking order correctly with IWindow objects.


Nested Class Summary
protected  class IToolkitOverlay.ShadowAnimation
           
 
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
static String CLASSNAME_SHADOW
           
protected static int Z_INDEX
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
IToolkitOverlay()
           
IToolkitOverlay(boolean autoHide)
           
IToolkitOverlay(boolean autoHide, boolean modal)
           
IToolkitOverlay(boolean autoHide, boolean modal, boolean showShadow)
           
 
Method Summary
 void setHeight(String height)
           
 void setPopupPosition(int left, int top)
           
protected  void setShadowStyle(String style)
          Sets the shadow style for this overlay.
 void setWidth(String width)
           
protected  void setZIndex(int zIndex)
          Set the z-index (visual stack position) for this overlay.
 void show()
           
protected  void updateShadowSizeAndPosition()
           
 
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addPopupListener, center, getContainerElement, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getTitle, hide, hide, isAnimationEnabled, onDetach, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removePopupListener, setAnimationEnabled, setPopupPositionAndShow, setTitle, setWidget, setVisible
 
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
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Z_INDEX

protected static int Z_INDEX

CLASSNAME_SHADOW

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

IToolkitOverlay

public IToolkitOverlay()

IToolkitOverlay

public IToolkitOverlay(boolean autoHide)

IToolkitOverlay

public IToolkitOverlay(boolean autoHide,
                       boolean modal)

IToolkitOverlay

public IToolkitOverlay(boolean autoHide,
                       boolean modal,
                       boolean showShadow)
Method Detail

setZIndex

protected void setZIndex(int zIndex)
Set the z-index (visual stack position) for this overlay.

Parameters:
zIndex - The new z-index

setPopupPosition

public void setPopupPosition(int left,
                             int top)
Overrides:
setPopupPosition in class com.google.gwt.user.client.ui.PopupPanel

show

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

setWidth

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

setHeight

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

setShadowStyle

protected void setShadowStyle(String style)
Sets the shadow style for this overlay. Will override any previous style for the shadow. The default style name is defined by CLASSNAME_SHADOW. The given style will be prefixed with CLASSNAME_SHADOW.

Parameters:
style - The new style name for the shadow element. Will be prefixed by CLASSNAME_SHADOW, e.g. style=='foobar' -> actual style name=='i-shadow-foobar'.

updateShadowSizeAndPosition

protected void updateShadowSizeAndPosition()


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