|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--graphic.services.JQTableData
This is JQTables Data core.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
JQTableData(String[] names)
Set-constructor |
Method Summary | |
boolean |
add(int place,
Object[] obj)
Adds a post to the table at a certain position 0=in front |
boolean |
add(Object[] obj)
Adds a post to the table |
int |
getColumnCount()
The number of columns. |
String |
getColumnName(int col)
Gets columnname |
Object |
getRow(int row)
Gets a row in the table |
int |
getRowCount()
Number of rows. |
protected int[] |
getSize()
|
int |
getSize(int i)
The size of a column |
Object |
getValueAt(int row,
int col)
|
int |
getVisibleColumnCount()
Number of visible columns |
boolean |
isColumnVisible(int column)
The method only hides the data, it does NOT delete the data from the model. |
void |
remove(int i)
Removes a row in the table |
boolean |
replace(int place,
Object[] obj)
Replaces a row in the table. |
void |
reset()
Resets the contens of the table. |
void |
setSize(int[] i)
Sets the size of all columns in the table. |
protected void |
setVisibleColumn(int column,
boolean visible)
|
protected void |
sortByColumnNr(int columnNr,
boolean ascending,
JQTableSortMethod ts)
Sorts all the rows in the dataset after a column ascending or descending. |
void |
update()
Updates the table graphically. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JQTableData(String[] names)
names
- ColumnNamesMethod Detail |
public void setSize(int[] i)
i
- int[0] is the size of column nr. 0.. and so on.protected int[] getSize()
protected void setVisibleColumn(int column, boolean visible)
public boolean isColumnVisible(int column)
column
- columnnr
public int getSize(int i)
i
- columnr
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
col
- columnnr
public boolean replace(int place, Object[] obj)
place
- The post to replaceobj
- The new post.
public boolean add(int place, Object[] obj)
place
- the positionobj
- the post to insert
public boolean add(Object[] obj)
obj
- the post to insert
public int getColumnCount()
getColumnCount
in interface TableModel
public int getVisibleColumnCount()
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public Object getRow(int row)
row
- posten der ønskes hentet
public void reset()
public void remove(int i)
i
- row numberpublic void update()
protected void sortByColumnNr(int columnNr, boolean ascending, JQTableSortMethod ts)
columnNr
- column numberascending
- true=ascending, false=descending.ts
- How to sort the columns
|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |