Package com.smartgwt.client.widgets
Class AdaptWidthByCustomizer
java.lang.Object
com.smartgwt.client.widgets.AdaptWidthByCustomizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intadaptWidthBy(int deltaX, int unadaptedWidth) WhencanAdaptWidthhas been set true for aCanvas, this routine will be called to negotiate a new width when a surplus of space or overflow has occurred in the parentLayout.Returns the Canvas associated with this customizer.protected void
-
Constructor Details
-
AdaptWidthByCustomizer
public AdaptWidthByCustomizer()
-
-
Method Details
-
setCanvas
-
getCanvas
Returns the Canvas associated with this customizer.- Returns:
- the canvas
-
adaptWidthBy
public abstract int adaptWidthBy(int deltaX, int unadaptedWidth) WhencanAdaptWidthhas been set true for aCanvas, this routine will be called to negotiate a new width when a surplus of space or overflow has occurred in the parentLayout.- Parameters:
deltaX- number of horizontal pixels available (positive) or overflowed (negative)unadaptedWidth- width of member currently assumed by parent layout- Returns:
- number of pixels that this Canvas is willing to take (positive) or surrender (negative)
- See Also:
-