|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The SortableDataViewModel
adds methods to sort, drag and swap rows
and columns in the view.
Method Summary | |
boolean |
dragColumn(int column1,
int column2)
Drags a column to a new position. |
boolean |
dragRow(int row1,
int row2)
Drags a row to a new position. |
int[] |
getColumnMap()
Returns an array of column numbers that map view to data. |
int |
getDataColumn(int column)
Returns the data column mapped to the view column. |
int |
getDataRow(int row)
Returns the data row mapped to the view row. |
int[] |
getRowMap()
Returns an array of row numbers that map view to data. |
int |
getViewColumn(int column)
Returns the column in the view for the data column. |
int |
getViewRow(int row)
Returns the row in the view for the data row. |
void |
resetColumnMap()
Reset the mapped columns array to a one-to-one mapping. |
void |
resetRowMap()
Reset the mapped rows array to a one-to-one mapping. |
boolean |
setColumnMap(int[] new_map)
Sets a new column map array. |
boolean |
setRowMap(int[] new_map)
Sets a new row map array. |
boolean |
swapColumns(int column1,
int column2)
Swaps two columns. |
boolean |
swapRows(int row1,
int row2)
Swaps two rows. |
Methods inherited from interface com.klg.jclass.table.DataViewModel |
getCellEditor, getCellEditor, getCellRenderer, getCellRenderer, getCellRenderer, getDataSource, getEditorsTable, getObject, getRenderersTable, getTable, isEditable, setDataSource, setEditorsTable, setRenderersTable, setTable, setTableDataItem |
Methods inherited from interface com.klg.jclass.table.TableDataModel |
addTableDataListener, removeTableDataListener |
Methods inherited from interface com.klg.jclass.util.JCTableDataModel |
getNumColumns, getNumRows, getTableColumnLabel, getTableDataItem, getTableRowLabel |
Methods inherited from interface com.klg.jclass.table.JCTableDataListener |
dataChanged |
Method Detail |
public int[] getColumnMap()
public int[] getRowMap()
public int getDataColumn(int column)
public int getDataRow(int row)
public int getViewColumn(int column)
public int getViewRow(int row)
public void resetColumnMap()
public void resetRowMap()
public boolean swapColumns(int column1, int column2)
public boolean swapRows(int row1, int row2)
public boolean setColumnMap(int[] new_map)
public boolean setRowMap(int[] new_map)
public boolean dragColumn(int column1, int column2)
public boolean dragRow(int row1, int row2)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |