public interface GridCell
All cell implementations must implement it.
Modifier and Type | Method and Description |
---|---|
boolean |
canBeDeactivated()
This method checks whether a cell can be deactivated by a grid or another component
on any input / output event produced outside the cell.
|
void |
displayActive(boolean active)
This method shows the cell.
|
int |
getColumn()
This method gets a cell column number.
|
com.google.gwt.user.client.ui.FlexTable |
getGrid()
This method gets a grid instance.
|
Object |
getNewValue()
This method returns a new value entered while the cell is active.
|
int |
getRow()
This method gets a cell row number.
|
Object |
getValue()
This method gets a cell value.
|
boolean |
isActive()
This method checks whether the cell is active.
|
void |
setFocus(boolean focus)
This method sets focus to the cell.
|
void |
setGrid(com.google.gwt.user.client.ui.FlexTable grid)
This method sets the grid instance.
|
void |
setPosition(int row,
int column)
This method specifies position of the cell in the grid (but doen't add it!).
|
void |
setValue(Object value)
This method sets a cell value.
|
boolean |
valueEqual(Object value)
This method compares values in this cell and in the specified cell.
|
Object getValue()
void setValue(Object value)
value
- is a cell value.void setPosition(int row, int column)
row
- is a row number.column
- is a column number.int getRow()
int getColumn()
void displayActive(boolean active)
active
- is a flag meaning whether the cell must be shown as active.void setGrid(com.google.gwt.user.client.ui.FlexTable grid)
grid
- is a grid instance.com.google.gwt.user.client.ui.FlexTable getGrid()
void setFocus(boolean focus)
focus
- is a flag meaning whether the focus must be set or lost.boolean isActive()
true
if the cell is active.Object getNewValue()
If the cell is passive, it is an equivalent of the getValue()
method.
boolean valueEqual(Object value)
equals
method invocation.value
- is a value to be compared.true
if values are equal.boolean canBeDeactivated()
Copyright © 2008–2013. All rights reserved.