com.sencha.gxt.cell.core.client
Class ResizeCell<C>

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.sencha.gxt.cell.core.client.AbstractEventCell<C>
          extended by com.sencha.gxt.cell.core.client.ResizeCell<C>
Type Parameters:
C - the cell data type
All Implemented Interfaces:
Cell<C>, ResizableCell
Direct Known Subclasses:
ButtonCell, ProgressBarCell

public abstract class ResizeCell<C>
extends AbstractEventCell<C>
implements ResizableCell

AbstractEventCell subclass which implements ResizableCell.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
 
Constructor Summary
ResizeCell(java.util.Set<java.lang.String> consumedEvents)
           
ResizeCell(java.lang.String... consumedEvents)
           
 
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.
 
Methods inherited from class com.sencha.gxt.cell.core.client.AbstractEventCell
addHandler, fireEvent, isDisableEvents, setDisableEvents
 
Methods inherited from class com.google.gwt.cell.client.AbstractCell
dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, onBrowserEvent, render, resetFocus, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeCell

public ResizeCell(java.util.Set<java.lang.String> consumedEvents)

ResizeCell

public ResizeCell(java.lang.String... consumedEvents)
Method Detail

getWidth

public int getWidth()
Description copied from interface: ResizableCell
Returns the width.

Specified by:
getWidth in interface ResizableCell
Returns:
the width

setWidth

public void setWidth(int width)
Description copied from interface: ResizableCell
Sets the width.

Specified by:
setWidth in interface ResizableCell
Parameters:
width - the width in pixels

getHeight

public int getHeight()
Description copied from interface: ResizableCell
Returns the height.

Specified by:
getHeight in interface ResizableCell
Returns:
the height

setHeight

public void setHeight(int height)
Description copied from interface: ResizableCell
Sets the height.

Specified by:
setHeight in interface ResizableCell
Parameters:
height - the height in pixels

setSize

public void setSize(int width,
                    int height)
Description copied from interface: ResizableCell
Sets the cell size.

Specified by:
setSize in interface ResizableCell
Parameters:
width - the width in pixels
height - the height in pixels

redrawOnResize

public boolean redrawOnResize()
Description copied from interface: ResizableCell
Determines if the cell should be redrawn when resized by @link CellComponent. If true, CellComponent.redraw() will be called.

Specified by:
redrawOnResize in interface ResizableCell
Returns:
true to force a redraw

setSize

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

Specified by:
setSize in interface ResizableCell
Parameters:
parent - the parent element
width - the width
height - the height


Copyright © 2012. All Rights Reserved.