|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
MovieLibrary.MergeTableModel
public class MergeTableModel
table model for the merge avi tool
| Constructor Summary | |
|---|---|
MergeTableModel()
constructor for table model. calls super() and initializes the data array |
|
| Method Summary | |
|---|---|
void |
addValue(java.lang.String value)
adds a video to this table if it does not already exists |
int |
getColumnCount()
gets the number of columns |
java.lang.String |
getColumnName(int col)
gets the column name of the chosen column |
int[] |
getColumnWidths()
gets the columns widths for the columns in this table |
int |
getRowCount()
gets the number of rows |
java.lang.Object |
getValueAt(int row,
int col)
gets the value of the object in the table model at position specified |
java.lang.String |
getVideoPath(int row)
gets the video path of the video on row selected |
java.lang.String[] |
getVideosPaths()
gets the paths of the videos in this table model |
void |
moveSelectedDown(int selectedIndex)
moves the value of the selected row down in the table |
void |
moveSelectedUp(int selectedIndex)
moves the value of the selected row up in the table |
void |
removeAll()
remove all values from table mdoel |
void |
removeValue(int index)
remove value at selected index |
void |
setColumnsWidths(int[] reqColumnsWidths)
sets the column widths of this table model to the given column widths |
void |
setColumnWidth(int columnIndex,
int columnWidth)
sets the columns widths for the given column |
void |
setData(java.lang.Object[][] reqData)
sets the data in this table model with the given data array |
void |
setValueAt(java.lang.Object value,
int row,
int col)
sets the value of the object in the table at position specified |
void |
updateValue(VideoObject value,
int row)
replace value at given row with given value |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MergeTableModel()
| Method Detail |
|---|
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row,
int col)
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic java.lang.String getVideoPath(int row)
row - row of the video to get the path
public void moveSelectedUp(int selectedIndex)
selectedIndex - index of the selected rowpublic void moveSelectedDown(int selectedIndex)
selectedIndex - index of the selected rowpublic void removeValue(int index)
index - index of value to be removedpublic java.lang.String[] getVideosPaths()
public void addValue(java.lang.String value)
value - video file to be added
public void updateValue(VideoObject value,
int row)
value - new value to replace the old value at given rowrow - row where the value to be replaced is locatedpublic void removeAll()
public int[] getColumnWidths()
public void setColumnsWidths(int[] reqColumnsWidths)
reqColumnsWidths - column widths to replace the old onespublic void setData(java.lang.Object[][] reqData)
reqData - array of data to replace the old data
public void setColumnWidth(int columnIndex,
int columnWidth)
columnIndex - column index of the column to resizecolumnWidth - new width of the column to be resized
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||