com.smartgwt.client.widgets

## Class AdaptHeightByCustomizer

- java.lang.Object
- - com.smartgwt.client.widgets.AdaptHeightByCustomizer

-     public abstract class AdaptHeightByCustomizer
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdaptHeightByCustomizer()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract int` | `adaptHeightBy(int deltaY, int unadaptedHeight)` When `canAdaptHeight` has been set true for a `Canvas`, this routine will be called to negotiate a new height when a surplus of space or overflow has occurred in the parent `Layout`.
    `Canvas` | `getCanvas()` Returns the Canvas associated with this customizer.
    `protected void` | `setCanvas(Canvas canvas)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AdaptHeightByCustomizer

          public AdaptHeightByCustomizer()

  - ### Method Detail

    - #### setCanvas

          protected void setCanvas(Canvas canvas)

    - #### getCanvas

          public Canvas getCanvas()

      Returns the Canvas associated with this customizer.
      Returns:
        the canvas

    - #### adaptHeightBy

          public abstract int adaptHeightBy(int deltaY,
                                            int unadaptedHeight)

      When `canAdaptHeight` has been set true for a `Canvas`, this routine will be called to negotiate a new height when a surplus of space or overflow has occurred in the parent `Layout`.
      Parameters:
        `deltaY` - number of vertical pixels available (positive) or overflowed (negative)
        `unadaptedHeight` - height of member currently assumed by parent layout
      Returns:
        number of pixels that this Canvas is willing to take (positive) or surrender (negative)
      See Also:
        `Canvas.setCanAdaptHeight(java.lang.Boolean)`