|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
ch.randelshofer.cubetwister.doc.NotationMovesTableModel
public class NotationMovesTableModel
NotationMovesTableModel.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
NotationMovesTableModel()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
createRow(int row,
java.lang.Object type)
Creates the specified element type at the specified position in this list Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
java.awt.datatransfer.Transferable |
exportRowTransferable(int[] rows)
Creates a Transferable to use as the source for a data transfer of the specified elements. |
java.lang.Class |
getColumnClass(int column)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
java.lang.Object |
getCreatableRowType(int row)
Returns the default type of elements that can be created at the specified index of the list. |
java.lang.Object[] |
getCreatableRowTypes(int row)
Returns the types of elements that can be created at the specified index of the list. |
javax.swing.Action[] |
getRowActions(int[] rows)
Gets actions for the specified rows. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int column)
|
int |
importRowTransferable(java.awt.datatransfer.Transferable t,
int action,
int row,
boolean asChild)
Causes a transfer to the model from a clipboard or a DND drop operation. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the specified cell may be edited. |
boolean |
isRowAddable(int row)
Returns true if a row can be added. |
boolean |
isRowImportable(java.awt.datatransfer.DataFlavor[] transferFlavors,
int action,
int row,
boolean asChild)
Indicates whether the model would accept an import of the given set of data flavors prior to actually attempting to import it. |
boolean |
isRowRemovable(int row)
Returns true if the specified row can be removed. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
removeRow(int row)
Removes an element from the model. |
void |
setModel(NotationModel newValue)
|
void |
setValueAt(java.lang.Object value,
int row,
int column)
|
| 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 |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, removeTableModelListener |
| Constructor Detail |
|---|
public NotationMovesTableModel()
| Method Detail |
|---|
public void setModel(NotationModel newValue)
public java.lang.Object getValueAt(int row,
int column)
getValueAt in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object value,
int row,
int column)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic java.lang.Class getColumnClass(int column)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex,
int columnIndex)
MutableTableModel
isCellEditable in interface MutableTableModelisCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - index of the row.columnIndex - index of the column.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListener
public boolean isRowImportable(java.awt.datatransfer.DataFlavor[] transferFlavors,
int action,
int row,
boolean asChild)
MutableTableModel
isRowImportable in interface MutableTableModeltransferFlavors - the data formats availableaction - The action DnDConstants.ACTION_COPY, .ACTION_MOVE or
.ACTION_LINK.row - The insertion point. 0 <= row <= getRowCount()asChild - Indicates that the item is to be imported as a child
of the list item rather than as an individual element
/ of the list.
DnDConstants
public void removeRow(int row)
throws java.lang.IllegalStateException
MutableTableModel
removeRow in interface MutableTableModelrow - index of the element. 0 <= index <= getSize()
java.lang.IllegalStateException - if the element may not be removed.MutableTableModel.isRowRemovable(int)public boolean isRowRemovable(int row)
MutableTableModel
isRowRemovable in interface MutableTableModelrow - index of the element. 0 <= index <= getSize()MutableTableModel.removeRow(int)public boolean isRowAddable(int row)
MutableTableModel
isRowAddable in interface MutableTableModelrow - index of the element. 0 <= index <= getSize()public javax.swing.Action[] getRowActions(int[] rows)
MutableTableModel
getRowActions in interface MutableTableModelrows - The rows.public java.lang.Object[] getCreatableRowTypes(int row)
MutableTableModel
getCreatableRowTypes in interface MutableTableModelrow - The insertion point. 0 <= index <= getRowCount()
public java.lang.Object getCreatableRowType(int row)
MutableTableModel
getCreatableRowType in interface MutableTableModelrow - The insertion point. 0 <= index <= getRowCount()
public java.awt.datatransfer.Transferable exportRowTransferable(int[] rows)
MutableTableModel
exportRowTransferable in interface MutableTableModelrows - Row indices.
public void createRow(int row,
java.lang.Object type)
throws java.lang.IllegalStateException
MutableTableModel
createRow in interface MutableTableModelrow - index at which the specified element is to be inserted.type - element type to be inserted.
java.lang.IllegalStateException
public int importRowTransferable(java.awt.datatransfer.Transferable t,
int action,
int row,
boolean asChild)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
MutableTableModel
importRowTransferable in interface MutableTableModelt - The transfer data.action - The action DnDConstants.ACTION_COPY, .ACTION_MOVE or
.ACTION_LINK.row - The insertion point. 0 <= row <= getRowCount()asChild - Indicates that the item is to be imported as a child
of the list item rather than as an individual element
of the list.
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||