C
- the cell data typepublic abstract class ResizeCell<C> extends AbstractEventCell<C> implements ResizableCell
AbstractEventCell
subclass which implements
ResizableCell
.Modifier and Type | Field and Description |
---|---|
protected int |
height |
protected int |
width |
Constructor and Description |
---|
ResizeCell(Set<String> consumedEvents) |
ResizeCell(String... consumedEvents) |
Modifier and Type | Method and Description |
---|---|
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.
|
addHandler, createHandlerManager, fireCancellableEvent, fireCancellableEvent, fireEvent, fireEvent, isDisableEvents, setDisableEvents
public ResizeCell(String... consumedEvents)
public int getWidth()
ResizableCell
getWidth
in interface ResizableCell
public void setWidth(int width)
ResizableCell
setWidth
in interface ResizableCell
width
- the width in pixelspublic int getHeight()
ResizableCell
getHeight
in interface ResizableCell
public void setHeight(int height)
ResizableCell
setHeight
in interface ResizableCell
height
- the height in pixelspublic void setSize(int width, int height)
ResizableCell
setSize
in interface ResizableCell
width
- the width in pixelsheight
- the height in pixelspublic boolean redrawOnResize()
ResizableCell
CellComponent
. If true, CellComponent.redraw()
will be
called.redrawOnResize
in interface ResizableCell
public void setSize(XElement parent, int width, int height)
ResizableCell
CellComponent
when ResizableCell.redrawOnResize()
returns false.setSize
in interface ResizableCell
parent
- the parent elementwidth
- the widthheight
- the heightCopyright © 2018. All rights reserved.