EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.able
Interface Stretchable

All Superinterfaces:
Delegateable
All Known Implementing Classes:
CarouselContainer, ContainerEx

public interface Stretchable
extends Delegateable

The Stretchable interface is used to indicate that a Component should "stretch" itself to use all left over space inside a parent component.

By default most component try to minimize the space they use, but components that implement this interface can be made to maximize the space they use.


Field Summary
static String PROPERTY_HEIGHT_STRETCHED
           
static String PROPERTY_MAXIMUM_STRETCHED_HEIGHT
           
static String PROPERTY_MINIMUM_STRETCHED_HEIGHT
           
 
Method Summary
 Extent getMaximumStretchedHeight()
           
 Extent getMinimumStretchedHeight()
           
 boolean isHeightStretched()
           
 void setHeightStretched(boolean newValue)
          Set to true if the height should be stretched to use all available space of its parent.
 void setMaximumStretchedHeight(Extent newValue)
          Sets the maximum height that the component should stretch itself up to in pixels.
 void setMinimumStretchedHeight(Extent newValue)
          Sets the minimum height that the component should stretch itself down to in pixels.
 
Methods inherited from interface echopoint.able.Delegateable
getRenderProperty, getRenderProperty
 

Field Detail

PROPERTY_HEIGHT_STRETCHED

static final String PROPERTY_HEIGHT_STRETCHED
See Also:
Constant Field Values

PROPERTY_MINIMUM_STRETCHED_HEIGHT

static final String PROPERTY_MINIMUM_STRETCHED_HEIGHT
See Also:
Constant Field Values

PROPERTY_MAXIMUM_STRETCHED_HEIGHT

static final String PROPERTY_MAXIMUM_STRETCHED_HEIGHT
See Also:
Constant Field Values
Method Detail

isHeightStretched

boolean isHeightStretched()
Returns:
true if the height should be stretched to use all available space of its parent.

setHeightStretched

void setHeightStretched(boolean newValue)
Set to true if the height should be stretched to use all available space of its parent.

Parameters:
newValue - - a boolean flag indicating whether the height should be stretched to use all available space of its parent or not.

getMinimumStretchedHeight

Extent getMinimumStretchedHeight()
Returns:
- the minimum height that the component should stretch itself down to in pixels.

setMinimumStretchedHeight

void setMinimumStretchedHeight(Extent newValue)
Sets the minimum height that the component should stretch itself down to in pixels.

Parameters:
newValue - - a new Extent value that MUST be in pixel units.

getMaximumStretchedHeight

Extent getMaximumStretchedHeight()
Returns:
- the maximum height that the component should stretch itself up to in pixels.

setMaximumStretchedHeight

void setMaximumStretchedHeight(Extent newValue)
Sets the maximum height that the component should stretch itself up to in pixels.

Parameters:
newValue - - a new Extent value that MUST be in pixel units.

EchoPoint API - 3.0.0b5
App Webcontainer