GWT Tk 0.2.3

asquare.gwt.tk.client.ui.behavior.impl
Class GlassPanelControllerStandard

java.lang.Object
  extended by asquare.gwt.tk.client.ui.behavior.EventDelegateAdaptor
      extended by asquare.gwt.tk.client.ui.behavior.ControllerAdaptor
          extended by asquare.gwt.tk.client.ui.behavior.impl.GlassPanelControllerStandard
All Implemented Interfaces:
Controller, EventDelegate, GlassPanelController, WindowResizeListener
Direct Known Subclasses:
GlassPanelControllerIE6ImplQuirks, GlassPanelControllerSafari

public class GlassPanelControllerStandard
extends ControllerAdaptor
implements GlassPanelController, WindowResizeListener


Field Summary
protected  boolean m_xScroll
           
protected  boolean m_yScroll
           
 
Constructor Summary
GlassPanelControllerStandard()
           
 
Method Summary
 String calculateHeight()
           
 String calculateWidth()
           
 boolean canScrollX()
           
 boolean canScrollY()
           
 Widget getWidget()
           
 void onWindowResized(int width, int height)
           
 void plugIn(Widget widget)
          Called when the widget is attached to the DOM.
 void unplug(Widget widget)
          Called when the widget is detached from the DOM.
protected  void updateHeight()
           
protected  void updateWidth()
           
 
Methods inherited from class asquare.gwt.tk.client.ui.behavior.ControllerAdaptor
getId
 
Methods inherited from class asquare.gwt.tk.client.ui.behavior.EventDelegateAdaptor
doBrowserEvent, getEventBits, onBrowserEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface asquare.gwt.tk.client.ui.behavior.Controller
getId
 
Methods inherited from interface asquare.gwt.tk.client.ui.behavior.EventDelegate
getEventBits, onBrowserEvent
 

Field Detail

m_xScroll

protected boolean m_xScroll

m_yScroll

protected boolean m_yScroll
Constructor Detail

GlassPanelControllerStandard

public GlassPanelControllerStandard()
Method Detail

plugIn

public void plugIn(Widget widget)
Description copied from interface: Controller
Called when the widget is attached to the DOM. Use to initialize widget, install special hooks and attach listeners.

Specified by:
plugIn in interface Controller
Overrides:
plugIn in class ControllerAdaptor
Parameters:
widget - the view to control

unplug

public void unplug(Widget widget)
Description copied from interface: Controller
Called when the widget is detached from the DOM. Use to remove listeners and null out any references set on the DOM.

Specified by:
unplug in interface Controller
Overrides:
unplug in class ControllerAdaptor

getWidget

public Widget getWidget()

canScrollX

public boolean canScrollX()

canScrollY

public boolean canScrollY()

calculateWidth

public String calculateWidth()

calculateHeight

public String calculateHeight()

updateWidth

protected void updateWidth()

updateHeight

protected void updateHeight()

onWindowResized

public void onWindowResized(int width,
                            int height)
Specified by:
onWindowResized in interface WindowResizeListener

GWT Tk 0.2.3

© 2007 Mat Gessel