com.sencha.gxt.cell.core.client
Interface ResizableCell

All Known Implementing Classes:
AutoProgressBarCell, ButtonCell, CheckBoxCell, ComboBoxCell, DateCell, FieldCell, NumberInputCell, PasswordInputCell, ProgressBarCell, RadioCell, ResizeCell, SliderCell, SpinnerFieldCell, SplitButtonCell, TextAreaInputCell, TextButtonCell, TextInputCell, TimeFieldCell, ToggleButtonCell, TriggerFieldCell, TwinTriggerFieldCell, ValueBaseInputCell

public interface ResizableCell

Interface for cells that can be sized.

CellComponent will "size" any cells which implement this interface.


Method Summary
 int getHeight()
          Returns the height.
 int getWidth()
          Returns the width.
 boolean redrawOnResize()
          Determines if the cell should be redrawn when resized by @link CellComponent.
 void setHeight(int height)
          Sets the height.
 void setSize(int width, int height)
          Sets the cell size.
 void setSize(XElement parent, int width, int height)
          Sets the size of the cell without requiring a redraw.
 void setWidth(int width)
          Sets the width.
 

Method Detail

getHeight

int getHeight()
Returns the height.

Returns:
the height

getWidth

int getWidth()
Returns the width.

Returns:
the width

redrawOnResize

boolean redrawOnResize()
Determines if the cell should be redrawn when resized by @link CellComponent. If true, CellComponent.redraw() will be called.

Returns:
true to force a redraw

setHeight

void setHeight(int height)
Sets the height.

Parameters:
height - the height in pixels

setSize

void setSize(int width,
             int height)
Sets the cell size.

Parameters:
width - the width in pixels
height - the height in pixels

setSize

void setSize(XElement parent,
             int width,
             int height)
Sets the size of the cell without requiring a redraw. This method is called by CellComponent when redrawOnResize() returns false.

Parameters:
parent - the parent element
width - the width
height - the height

setWidth

void setWidth(int width)
Sets the width.

Parameters:
width - the width in pixels


Copyright © 2012. All Rights Reserved.