public class PagedTableImpl extends java.lang.Object implements PagedTable
Constructor and Description |
---|
PagedTableImpl(ModelLoader modelLoader) |
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
|
MoveRowsPanel |
getMoveRowsPanel() |
PagedTablePanel |
getPagedTablePanel() |
Pager |
getPager() |
PaginationBarPanel |
getPaginationBar() |
int |
getRowCount()
Gets the number of rows
|
int[] |
getSelectedRows()
Gets the selected rows
|
TableEntryControllerPanel |
getTableEntryController() |
TableModel |
getTableModel()
Gets the table data model
|
java.lang.Object |
getValueAt(int row,
int column)
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
|
public PagedTableImpl(ModelLoader modelLoader)
public Pager getPager()
public TableEntryControllerPanel getTableEntryController()
public PagedTablePanel getPagedTablePanel()
public java.lang.Object getValueAt(int row, int column)
PagedTable
getValueAt
in interface PagedTable
public void setValueAt(java.lang.Object obj, int row, int column)
PagedTable
setValueAt
in interface PagedTable
public int getColumnCount()
PagedTable
getColumnCount
in interface PagedTable
public int getRowCount()
PagedTable
getRowCount
in interface PagedTable
public MoveRowsPanel getMoveRowsPanel()
public PaginationBarPanel getPaginationBar()
public void addRow(java.lang.Object[] list)
PagedTable
addRow
in interface PagedTable
list
- List of stringspublic void delRow(int i)
PagedTable
delRow
in interface PagedTable
public void removeAllRows()
PagedTable
removeAllRows
in interface PagedTable
public void removeAllRowsWithoutAsk()
PagedTable
removeAllRowsWithoutAsk
in interface PagedTable
public int[] getSelectedRows()
PagedTable
getSelectedRows
in interface PagedTable
public void swapRow(int i, int j)
PagedTable
swapRow
in interface PagedTable
i
- Row to deletepublic void setSelectedRows(int[] rows)
PagedTable
setSelectedRows
in interface PagedTable
public void setSelectedRow(int row)
PagedTable
setSelectedRow
in interface PagedTable
public void addSelectedRow(int row)
PagedTable
addSelectedRow
in interface PagedTable
public void increaseSelectedRows()
PagedTable
increaseSelectedRows
in interface PagedTable
public void decreaseSelectedRows()
PagedTable
decreaseSelectedRows
in interface PagedTable
public void nextPage()
PagedTable
nextPage
in interface PagedTable
public void prevPage()
PagedTable
prevPage
in interface PagedTable
public void setSelectedPage(int pageNumber)
PagedTable
setSelectedPage
in interface PagedTable
public TableModel getTableModel()
PagedTable
getTableModel
in interface PagedTable
public javax.swing.JComponent getComponent()
PagedTable
getComponent
in interface PagedTable
public javax.swing.JTable getJTable()
PagedTable
getJTable
in interface PagedTable
public void showMoveRowsControls(boolean show)
PagedTable
showMoveRowsControls
in interface PagedTable
public void showControllerTable(boolean show)
PagedTable
showControllerTable
in interface PagedTable
public void addListener(PagedTableListener listener)
PagedTable
addListener
in interface PagedTable
public void setConfirmationMessageDeleteAllEntries(java.lang.String message)
PagedTable
setConfirmationMessageDeleteAllEntries
in interface PagedTable
public void setConfirmationMessageDeleteOneEntry(java.lang.String message)
PagedTable
setConfirmationMessageDeleteOneEntry
in interface PagedTable