public interface PagedTable
PagedTable
Modifier and Type | Method and Description |
---|---|
void |
addListener(PagedTableListener listener)
Adds a listener
|
void |
addRow(java.lang.Object[] list)
Adds a row to the table.
|
void |
addSelectedRow(int row)
Adds a new row selected without deselecting the old ones
|
void |
decreaseSelectedRows()
Decrease the selected row
|
void |
delRow(int i)
Deletes a row from the table.
|
int |
getColumnCount()
Gets the number of columns
|
javax.swing.JComponent |
getComponent()
Gets the component
|
javax.swing.JTable |
getJTable()
Gets the internal JTable
|
int |
getRowCount()
Gets the number of rows
|
int[] |
getSelectedRows()
Gets the selected rows
|
TableModel |
getTableModel()
Gets the table data model
|
java.lang.Object |
getValueAt(int row,
int col)
Gets the value at the selected position
|
void |
increaseSelectedRows()
Increase the selected row
|
void |
nextPage()
Selects the next page
|
void |
prevPage()
Selects the previous page
|
void |
removeAllRows()
Removes all rows of this table.
|
void |
removeAllRowsWithoutAsk()
Removes all rows of this table.
|
void |
setConfirmationMessageDeleteAllEntries(java.lang.String message)
Sets a message to ask for confirmation when all
entries are going to be deleted
|
void |
setConfirmationMessageDeleteOneEntry(java.lang.String message)
Sets a message to ask for confirmation when one entry
are going to be deleted
|
void |
setSelectedPage(int pageNumber)
Sets the page selected
|
void |
setSelectedRow(int row)
Sets the row selected
|
void |
setSelectedRows(int[] rows)
Sets the rows selected
|
void |
setValueAt(java.lang.Object obj,
int row,
int column)
Sets a value in a cell
|
void |
showControllerTable(boolean show)
Shows or hides the table controller
|
void |
showMoveRowsControls(boolean show)
Shows or hides the controls to move rows
|
void |
swapRow(int i,
int j)
Swap two rows
|
java.lang.Object getValueAt(int row, int col)
row
- col
- void setValueAt(java.lang.Object obj, int row, int column)
obj
- row
- column
- int getColumnCount()
int getRowCount()
void addRow(java.lang.Object[] list)
list
- List of stringsvoid delRow(int i)
Global
- position of the entryvoid removeAllRowsWithoutAsk()
void removeAllRows()
int[] getSelectedRows()
NotInitializeException
void swapRow(int i, int j)
i
- Row to deletevoid setSelectedRows(int[] rows)
rows
- void setSelectedRow(int row)
rows
- void increaseSelectedRows()
void decreaseSelectedRows()
void addSelectedRow(int row)
row
- void showMoveRowsControls(boolean show)
show
- void showControllerTable(boolean show)
show
- void nextPage()
void prevPage()
void setSelectedPage(int pageNumber)
pageNumber
- TableModel getTableModel()
javax.swing.JComponent getComponent()
javax.swing.JTable getJTable()
void addListener(PagedTableListener listener)
listener
- void setConfirmationMessageDeleteAllEntries(java.lang.String message)
message
- void setConfirmationMessageDeleteOneEntry(java.lang.String message)
message
-