|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableElementInterface
Defines a common interface to TableView's cells, columns, and rows.
TableElement
Field Summary | |
---|---|
static int |
REFRESH_ALL
Composite bitmask of all the other REFRESH_* bit-flags. |
static int |
REFRESH_DATA
Bitflag for flags parameter to refresh method which indicates that any data associated with the element should be reread from the table's model. |
static int |
REFRESH_DATA_STYLE
Bitflag for flags parameter to refresh method which indicates that any style(s) associated with the element's data should be reread from the table's model. |
static int |
REFRESH_LABEL
Bitflag for flags parameter to refresh method which indicates that any label(s) associated with the element should be reread from the table's model. |
static int |
REFRESH_LABEL_STYLE
Bitflag for flags parameter to refresh method which indicates that any style(s) associated with the element's label(s) should be reread from the table's model. |
static int |
REFRESH_STYLE
Bitflag for flags parameter to refresh method which indicates that any style(s) associated with the element itself (not its data or label) should be reread from the table's model. |
Method Summary | |
---|---|
TableView |
getTableView()
Returns the instance of the TableView class that contains this element. |
boolean |
isDisplayed()
Returns true if the element is shown in the table's current view, and false otherwise, i.e. if the table has to be scrolled to see it. |
boolean |
isModified()
Returns true if the element's data has been changed and is thus out-of-sync with the corresponding data maintained by the table's model, and returns false otherwise. |
boolean |
isSelected()
Returns true if the element has been selected in the table, and false otherwise. |
void |
refresh(int flags)
Refreshes the element to its state as maintained by the table's model. |
void |
repaint()
Repaints the element. |
Field Detail |
---|
static final int REFRESH_DATA
static final int REFRESH_LABEL
static final int REFRESH_DATA_STYLE
static final int REFRESH_LABEL_STYLE
static final int REFRESH_STYLE
static final int REFRESH_ALL
Method Detail |
---|
TableView getTableView()
boolean isDisplayed()
boolean isModified()
boolean isSelected()
void refresh(int flags)
flags
- Bitmask of REFRESH_* bitflags.void repaint()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |