|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.pdfsam.guiclient.commons.models.AbstractPdfSelectionTableModel
org.pdfsam.guiclient.commons.models.SimplePdfSelectionTableModel
org.pdfsam.guiclient.commons.models.SortablePdfSelectionTableModel
public class SortablePdfSelectionTableModel
Model for the JPdfSelectionTable with sort features
Nested Class Summary | |
---|---|
class |
SortablePdfSelectionTableModel.PdfSelectionTableItemComparator
comparator for the PdfSelectionTableItem |
Nested classes/interfaces inherited from class org.pdfsam.guiclient.commons.models.AbstractPdfSelectionTableModel |
---|
AbstractPdfSelectionTableModel.SortingState |
Field Summary | |
---|---|
SortablePdfSelectionTableModel.PdfSelectionTableItemComparator |
comparator
|
Fields inherited from class org.pdfsam.guiclient.commons.models.SimplePdfSelectionTableModel |
---|
config, data |
Fields inherited from class org.pdfsam.guiclient.commons.models.AbstractPdfSelectionTableModel |
---|
ASCENDING, DEFAULT_SHOWED_COLUMNS_NUMBER, DESCENDING, FILENAME, MAX_COLUMNS_NUMBER, NOT_SORTED, PAGES, PAGESELECTION, PASSWORD, PATH, PDF_DOCUMENT_VERSION, ROW_NUM |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
SortablePdfSelectionTableModel()
|
|
SortablePdfSelectionTableModel(int showedColumns,
int maxRowsNumber)
|
Method Summary | |
---|---|
void |
addRow(PdfSelectionTableItem inputData)
Add a row to the table data source if maxRowsNumber is not reached and fire to Listeners |
void |
addRowAt(int index,
PdfSelectionTableItem inputData)
Add a row to the table data source if maxRowsNumber is not reached and fire to Listeners |
void |
clearSortingState()
set the sorting state to NOT_SORTING |
AbstractPdfSelectionTableModel.SortingState |
getSortingState()
|
void |
moveDownRow(int row)
Moves down a row to the table data source and fire to Listeners |
void |
moveDownRows(int[] rows)
Moves down a set of rows to the table data source and fire to Listeners |
void |
moveUpRow(int row)
Moves up a row to the table data source and fire to Listeners |
void |
moveUpRows(int[] rows)
Moves up a set of rows to the table data source and fire to Listeners |
void |
setSortingState(AbstractPdfSelectionTableModel.SortingState sortingState)
sets the sorting states and sort |
void |
setSortingState(int col,
int sortType)
sets the sorting states and sort |
void |
sort()
Sort the data |
Methods inherited from class org.pdfsam.guiclient.commons.models.SimplePdfSelectionTableModel |
---|
clearData, deleteRow, deleteRows, getRow, getRowCount, getRows, getValueAt, setData, setValueAt, updateRowAt |
Methods inherited from class org.pdfsam.guiclient.commons.models.AbstractPdfSelectionTableModel |
---|
getColumnClass, getColumnCount, getColumnName, getColumnNames, getMaxRowsNumber, getShowedColumns, getToolTips, isCellEditable, isSortable, setColumnNames, setMaxRowsNumber, setShowedColumns, setSortable, setToolTips |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final SortablePdfSelectionTableModel.PdfSelectionTableItemComparator comparator
Constructor Detail |
---|
public SortablePdfSelectionTableModel()
public SortablePdfSelectionTableModel(int showedColumns, int maxRowsNumber)
showedColumns
- maxRowsNumber
- Method Detail |
---|
public AbstractPdfSelectionTableModel.SortingState getSortingState()
getSortingState
in class SimplePdfSelectionTableModel
public void setSortingState(AbstractPdfSelectionTableModel.SortingState sortingState)
setSortingState
in class SimplePdfSelectionTableModel
sortingState
- the sortingState to setpublic void setSortingState(int col, int sortType)
col
- columnsortType
- sortTypepublic void clearSortingState()
public void sort()
sort
in class SimplePdfSelectionTableModel
public void addRow(PdfSelectionTableItem inputData)
SimplePdfSelectionTableModel
addRow
in class SimplePdfSelectionTableModel
inputData
- PdfSelectionTableItem
to add to the data sourcepublic void addRowAt(int index, PdfSelectionTableItem inputData)
SimplePdfSelectionTableModel
addRowAt
in class SimplePdfSelectionTableModel
index
- index to add toinputData
- PdfSelectionTableItem
to add to the data sourcepublic void moveUpRow(int row) throws java.lang.IndexOutOfBoundsException
SimplePdfSelectionTableModel
moveUpRow
in class SimplePdfSelectionTableModel
row
- Row number to move from the data source
java.lang.IndexOutOfBoundsException
public void moveUpRows(int[] rows) throws java.lang.IndexOutOfBoundsException
SimplePdfSelectionTableModel
moveUpRows
in class SimplePdfSelectionTableModel
rows
- Row numbers to move from the data source
java.lang.IndexOutOfBoundsException
public void moveDownRow(int row) throws java.lang.IndexOutOfBoundsException
SimplePdfSelectionTableModel
moveDownRow
in class SimplePdfSelectionTableModel
row
- Row number to remove from the data source
java.lang.IndexOutOfBoundsException
public void moveDownRows(int[] rows) throws java.lang.IndexOutOfBoundsException
SimplePdfSelectionTableModel
moveDownRows
in class SimplePdfSelectionTableModel
rows
- Row numbers to move from the data source
java.lang.IndexOutOfBoundsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |