public class TableCellContext extends Object implements CellContext, TableContext
| Modifier and Type | Field and Description |
|---|---|
protected Rectangle2D |
bounds |
protected int |
column |
protected boolean |
focus |
protected int |
row |
protected boolean |
selected |
protected JTable |
table |
protected Object |
value |
| Constructor and Description |
|---|
TableCellContext() |
TableCellContext(Object value,
Rectangle2D bounds) |
TableCellContext(TableCellContext sample) |
| Modifier and Type | Method and Description |
|---|---|
TableCellContext |
clone()
Клонирование
|
TableCellContext |
column(int column) |
TableCellContext |
focus(boolean focus) |
Rectangle2D |
getBounds()
Указывает расположение контекста/рамка в которую производится отображение
|
int |
getColumn()
Колонка
|
int |
getRow()
Строка
|
JTable |
getTable()
Таблица
|
Object |
getValue()
Указывает отображаемое значение
|
boolean |
isFocus()
Ячейка содержит фокус
|
boolean |
isSelected()
Ячейка выделена
|
TableCellContext |
padBottom(double pad)
Уменьшает размер прямоугольника (bounds) снизу
|
TableCellContext |
padLeft(double pad)
Уменьшает размер прямоугольника (bounds) слева
|
TableCellContext |
padRight(double pad)
Уменьшает размер прямоугольника (bounds) справа
|
TableCellContext |
padTop(double pad)
Уменьшает размер прямоугольника (bounds) сверху
|
TableCellContext |
row(int row) |
TableCellContext |
selected(boolean sel) |
void |
setBounds(Rectangle2D bounds)
Указывает расположение контекста/рамка в которую производится отображение
|
void |
setColumn(int column) |
void |
setFocus(boolean focus) |
void |
setRow(int row) |
void |
setSelected(boolean selected) |
void |
setTable(JTable table) |
void |
setValue(Object value)
Указывает отображаемое значение
|
TableCellContext |
table(JTable table) |
TableCellContext |
value(Object value)
Указывает отображаемое значение
|
protected Rectangle2D bounds
protected Object value
protected JTable table
protected int row
protected int column
protected boolean selected
protected boolean focus
public TableCellContext()
public TableCellContext(TableCellContext sample)
public TableCellContext(Object value, Rectangle2D bounds)
public TableCellContext clone()
CellContextclone in interface CellContextclone in class Objectpublic Rectangle2D getBounds()
CellContextgetBounds in interface CellContextpublic void setBounds(Rectangle2D bounds)
setBounds in interface CellContextbounds - Рамкаpublic TableCellContext padLeft(double pad)
padLeft in interface CellContextpad - на сколько уменьшитьpublic TableCellContext padTop(double pad)
padTop in interface CellContextpad - на сколько уменьшитьpublic TableCellContext padRight(double pad)
padRight in interface CellContextpad - на сколько уменьшитьpublic TableCellContext padBottom(double pad)
padBottom in interface CellContextpad - на сколько уменьшитьpublic Object getValue()
CellContextgetValue in interface CellContextpublic void setValue(Object value)
setValue in interface CellContextvalue - отображаемое значениеpublic TableCellContext value(Object value)
value in interface CellContextvalue - отображаемое значениеpublic JTable getTable()
TableContextgetTable in interface TableContextpublic void setTable(JTable table)
public TableCellContext table(JTable table)
public int getRow()
TableContextgetRow in interface TableContextpublic void setRow(int row)
public TableCellContext row(int row)
public int getColumn()
TableContextgetColumn in interface TableContextpublic void setColumn(int column)
public TableCellContext column(int column)
public boolean isSelected()
TableContextisSelected in interface TableContextpublic void setSelected(boolean selected)
public TableCellContext selected(boolean sel)
public boolean isFocus()
TableContextisFocus in interface TableContextpublic void setFocus(boolean focus)
public TableCellContext focus(boolean focus)
Copyright © 2018. All rights reserved.