public class SimpleTableModel extends java.lang.Object implements ISimpleTableModel
Constructor and Description |
---|
SimpleTableModel() |
SimpleTableModel(int rowCount,
int columnCount) |
SimpleTableModel(ISimpleTableModelBuilder tableModelBuilder) |
Modifier and Type | Method and Description |
---|---|
IDefaultTableColumn |
addColumn() |
void |
addColumn(IDefaultTableColumn column) |
IDefaultTableColumn |
addColumn(IDefaultTableColumnBuilder columnBuilder) |
IDefaultTableColumn |
addColumn(int columnIndex) |
void |
addColumn(int columnIndex,
IDefaultTableColumn column) |
IDefaultTableColumn |
addColumn(int columnIndex,
IDefaultTableColumnBuilder columnBuilder) |
IDefaultTableColumn |
addColumn(java.lang.String text) |
IDefaultTableColumn |
addColumn(java.lang.String text,
java.lang.String toolTipText) |
void |
addColumnModelListener(ITableColumnModelListener listener) |
void |
addDataModelListener(ITableDataModelListener listener) |
void |
addRow() |
void |
addRow(int rowIndex) |
void |
addRow(int rowIndex,
ITableCell... cells) |
void |
addRow(int rowIndex,
ITableCellBuilder... cellBuilders) |
void |
addRow(int rowIndex,
java.util.List<java.lang.String> cellTexts) |
void |
addRow(int rowIndex,
java.lang.String... cellTexts) |
void |
addRow(ITableCell... cells) |
void |
addRow(ITableCellBuilder... cellBuilders) |
void |
addRow(java.util.List<java.lang.String> cellTexts) |
void |
addRow(java.lang.String... cellTexts) |
void |
addRows(int rowIndex,
int rowCount) |
static ISimpleTableModelBuilder |
builder() |
static ISimpleTableModelBuilder |
builder(int rowCount,
int columnCount) |
ITableCell |
getCell(int rowIndex,
int columnIndex) |
IDefaultTableColumn |
getColumn(int columnIndex) |
int |
getColumnCount() |
java.util.ArrayList<IDefaultTableColumn> |
getColumns() |
int |
getFirstSelectedRow() |
int |
getLastSelectedRow() |
java.util.ArrayList<ITableCell> |
getRow(int rowIndex) |
int |
getRowCount() |
java.util.ArrayList<java.lang.String> |
getRowTexts(int rowIndex) |
java.util.ArrayList<java.lang.Integer> |
getSelection() |
ITableColumnModelObservable |
getTableColumnModelObservable() |
ITableDataModelObservable |
getTableDataModelObservable() |
void |
modifyModelEnd() |
void |
modifyModelStart() |
void |
removeAllColumns() |
void |
removeAllRows() |
void |
removeColumn(int columnIndex) |
void |
removeColumnModelListener(ITableColumnModelListener listener) |
void |
removeColumns(int... columns) |
void |
removeColumns(int fromColumnIndex,
int toColumnIndex) |
void |
removeDataModelListener(ITableDataModelListener listener) |
void |
removeRow(int index) |
void |
removeRows(int... rows) |
void |
removeRows(int fromIndex,
int toIndex) |
void |
removeRows(java.util.List<java.lang.Integer> rows) |
void |
setCell(int rowIndex,
int columnIndex,
ITableCell cell) |
void |
setCell(int rowIndex,
int columnIndex,
ITableCellBuilder cellBuilder) |
void |
setCell(int rowIndex,
int columnIndex,
java.lang.String text) |
void |
setCell(int rowIndex,
int columnIndex,
java.lang.String text,
boolean editable) |
void |
setCell(int rowIndex,
int columnIndex,
java.lang.String text,
IImageConstant icon) |
void |
setCellEditable(int rowIndex,
int columnIndex,
boolean editable) |
void |
setCellIcon(int rowIndex,
int columnIndex,
IImageConstant icon) |
void |
setCellText(int rowIndex,
int columnIndex,
java.lang.String text) |
void |
setCellTooltipText(int rowIndex,
int columnIndex,
java.lang.String tooltipText) |
void |
setColumn(int columnIndex,
IDefaultTableColumn column) |
IDefaultTableColumn |
setColumn(int columnIndex,
IDefaultTableColumnBuilder columnBuilder) |
void |
setColumnAlignment(int columnIndex,
AlignmentHorizontal alignment) |
void |
setColumnIcon(int columnIndex,
IImageConstant icon) |
void |
setColumnText(int columnIndex,
java.lang.String text) |
void |
setColumnToolTipText(int columnIndex,
java.lang.String tooltipText) |
void |
setFireEvents(boolean fireEvents) |
void |
setRow(int rowIndex,
ITableCell... cells) |
void |
setRow(int rowIndex,
ITableCellBuilder... cellBuilders) |
void |
setRowTexts(int rowIndex,
java.util.List<java.lang.String> cellTexts) |
void |
setRowTexts(int rowIndex,
java.lang.String... cellTexts) |
void |
setSelection(java.util.Collection<java.lang.Integer> selection) |
public SimpleTableModel()
public SimpleTableModel(int rowCount, int columnCount)
public SimpleTableModel(ISimpleTableModelBuilder tableModelBuilder)
public final int getColumnCount()
getColumnCount
in interface ITableColumnModel
public final int getRowCount()
getRowCount
in interface ITableDataModel
public final ITableCell getCell(int rowIndex, int columnIndex)
getCell
in interface ITableDataModel
public final ITableColumnModelObservable getTableColumnModelObservable()
getTableColumnModelObservable
in interface ITableColumnModel
public final java.util.ArrayList<java.lang.Integer> getSelection()
getSelection
in interface ITableDataModel
public final void setSelection(java.util.Collection<java.lang.Integer> selection)
setSelection
in interface ITableDataModel
public final int getFirstSelectedRow()
getFirstSelectedRow
in interface ISimpleTableModel
public final int getLastSelectedRow()
getLastSelectedRow
in interface ISimpleTableModel
public final ITableDataModelObservable getTableDataModelObservable()
getTableDataModelObservable
in interface ITableDataModel
public final void addDataModelListener(ITableDataModelListener listener)
addDataModelListener
in interface ITableDataModelObservable
public final void removeDataModelListener(ITableDataModelListener listener)
removeDataModelListener
in interface ITableDataModelObservable
public final void addColumnModelListener(ITableColumnModelListener listener)
addColumnModelListener
in interface ITableColumnModelObservable
public final void removeColumnModelListener(ITableColumnModelListener listener)
removeColumnModelListener
in interface ITableColumnModelObservable
public final java.util.ArrayList<ITableCell> getRow(int rowIndex)
getRow
in interface ISimpleTableModel
public final java.util.ArrayList<java.lang.String> getRowTexts(int rowIndex)
getRowTexts
in interface ISimpleTableModel
public final void addRow()
addRow
in interface ISimpleTableModel
public final void addRow(int rowIndex)
addRow
in interface ISimpleTableModel
public final IDefaultTableColumn getColumn(int columnIndex)
getColumn
in interface IDefaultTableColumnModel
getColumn
in interface ITableColumnModel
public final void addRows(int rowIndex, int rowCount)
addRows
in interface ISimpleTableModel
public final void addRow(ITableCell... cells)
addRow
in interface ISimpleTableModel
public final java.util.ArrayList<IDefaultTableColumn> getColumns()
getColumns
in interface IDefaultTableColumnModel
public final void addRow(int rowIndex, ITableCell... cells)
addRow
in interface ISimpleTableModel
public final void addRow(java.util.List<java.lang.String> cellTexts)
addRow
in interface ISimpleTableModel
public final void addRow(int rowIndex, java.util.List<java.lang.String> cellTexts)
addRow
in interface ISimpleTableModel
public final IDefaultTableColumn addColumn()
addColumn
in interface IDefaultTableColumnModel
public final IDefaultTableColumn addColumn(int columnIndex)
addColumn
in interface IDefaultTableColumnModel
public final void addRow(ITableCellBuilder... cellBuilders)
addRow
in interface ISimpleTableModel
public final void addRow(int rowIndex, ITableCellBuilder... cellBuilders)
addRow
in interface ISimpleTableModel
public final void addColumn(IDefaultTableColumn column)
addColumn
in interface IDefaultTableColumnModel
public final void addColumn(int columnIndex, IDefaultTableColumn column)
addColumn
in interface IDefaultTableColumnModel
public final void addRow(java.lang.String... cellTexts)
addRow
in interface ISimpleTableModel
public final void addRow(int rowIndex, java.lang.String... cellTexts)
addRow
in interface ISimpleTableModel
public final IDefaultTableColumn addColumn(IDefaultTableColumnBuilder columnBuilder)
addColumn
in interface IDefaultTableColumnModel
public final void removeRow(int index)
removeRow
in interface ISimpleTableModel
public final void removeRows(int fromIndex, int toIndex)
removeRows
in interface ISimpleTableModel
public final void removeRows(int... rows)
removeRows
in interface ISimpleTableModel
public final void removeRows(java.util.List<java.lang.Integer> rows)
removeRows
in interface ISimpleTableModel
public final IDefaultTableColumn addColumn(int columnIndex, IDefaultTableColumnBuilder columnBuilder)
addColumn
in interface IDefaultTableColumnModel
public final void removeAllRows()
removeAllRows
in interface ISimpleTableModel
public final void setCell(int rowIndex, int columnIndex, ITableCell cell)
setCell
in interface ISimpleTableModel
public final IDefaultTableColumn addColumn(java.lang.String text)
addColumn
in interface IDefaultTableColumnModel
public final void setCell(int rowIndex, int columnIndex, ITableCellBuilder cellBuilder)
setCell
in interface ISimpleTableModel
public final IDefaultTableColumn addColumn(java.lang.String text, java.lang.String toolTipText)
addColumn
in interface IDefaultTableColumnModel
public final void setCell(int rowIndex, int columnIndex, java.lang.String text)
setCell
in interface ISimpleTableModel
public final void removeColumn(int columnIndex)
removeColumn
in interface IDefaultTableColumnModel
public final void removeColumns(int fromColumnIndex, int toColumnIndex)
removeColumns
in interface IDefaultTableColumnModel
public final void setCell(int rowIndex, int columnIndex, java.lang.String text, IImageConstant icon)
setCell
in interface ISimpleTableModel
public final void removeColumns(int... columns)
removeColumns
in interface IDefaultTableColumnModel
public final void setCell(int rowIndex, int columnIndex, java.lang.String text, boolean editable)
setCell
in interface ISimpleTableModel
public final void setRow(int rowIndex, ITableCell... cells)
setRow
in interface ISimpleTableModel
public final void setRow(int rowIndex, ITableCellBuilder... cellBuilders)
setRow
in interface ISimpleTableModel
public final void setCellText(int rowIndex, int columnIndex, java.lang.String text)
setCellText
in interface ISimpleTableModel
public final void setCellTooltipText(int rowIndex, int columnIndex, java.lang.String tooltipText)
setCellTooltipText
in interface ISimpleTableModel
public final void setCellIcon(int rowIndex, int columnIndex, IImageConstant icon)
setCellIcon
in interface ISimpleTableModel
public final void setRowTexts(int rowIndex, java.lang.String... cellTexts)
setRowTexts
in interface ISimpleTableModel
public final void setRowTexts(int rowIndex, java.util.List<java.lang.String> cellTexts)
setRowTexts
in interface ISimpleTableModel
public final void removeAllColumns()
removeAllColumns
in interface IDefaultTableColumnModel
public final void modifyModelStart()
modifyModelStart
in interface IDefaultTableColumnModel
public final void setCellEditable(int rowIndex, int columnIndex, boolean editable)
setCellEditable
in interface ISimpleTableModel
public final void modifyModelEnd()
modifyModelEnd
in interface IDefaultTableColumnModel
public void setFireEvents(boolean fireEvents)
setFireEvents
in interface IDefaultTableColumnModel
public final void setColumn(int columnIndex, IDefaultTableColumn column)
setColumn
in interface IDefaultTableColumnModel
public final IDefaultTableColumn setColumn(int columnIndex, IDefaultTableColumnBuilder columnBuilder)
setColumn
in interface IDefaultTableColumnModel
public final void setColumnText(int columnIndex, java.lang.String text)
setColumnText
in interface IDefaultTableColumnModel
public final void setColumnToolTipText(int columnIndex, java.lang.String tooltipText)
setColumnToolTipText
in interface IDefaultTableColumnModel
public final void setColumnIcon(int columnIndex, IImageConstant icon)
setColumnIcon
in interface IDefaultTableColumnModel
public final void setColumnAlignment(int columnIndex, AlignmentHorizontal alignment)
setColumnAlignment
in interface IDefaultTableColumnModel
public static ISimpleTableModelBuilder builder()
public static ISimpleTableModelBuilder builder(int rowCount, int columnCount)
Siehe auch Jowidgets Nutzerhandbuch