org.cruxframework.crux.plugin.gadget.client.features.impl
Class DynamicHeightFeatureImpl

java.lang.Object
  extended by org.cruxframework.crux.plugin.gadget.client.features.impl.DynamicHeightFeatureImpl
All Implemented Interfaces:
DynamicHeightFeature

public class DynamicHeightFeatureImpl
extends Object
implements DynamicHeightFeature

Provides access to the dynamic height feature.


Method Summary
 void adjustHeight()
          Causes the Gadget to be resized.
 void adjustHeight(int height)
          Causes the Gadget to be resized.
 ViewPortDimensions getViewportDimensions()
          Detects the inner dimensions of a frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adjustHeight

public void adjustHeight()
Description copied from interface: DynamicHeightFeature
Causes the Gadget to be resized. Will attempt to fit the gadget to its content

Specified by:
adjustHeight in interface DynamicHeightFeature

adjustHeight

public void adjustHeight(int height)
Description copied from interface: DynamicHeightFeature
Causes the Gadget to be resized.

Specified by:
adjustHeight in interface DynamicHeightFeature
Parameters:
height - A preferred height in pixels.

getViewportDimensions

public ViewPortDimensions getViewportDimensions()
Description copied from interface: DynamicHeightFeature
Detects the inner dimensions of a frame. See http://www.quirksmode.org/dom/w3c_cssom.html for more information.

Specified by:
getViewportDimensions in interface DynamicHeightFeature


Copyright © 2014. All rights reserved.