org.xdat.data
public class ClusterSet extends java.lang.Object implements java.io.Serializable, javax.swing.table.TableModel
Clusters.
| Constructor and Description |
|---|
ClusterSet(DataSheet dataSheet)
Instantiates a new cluster set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClusterToBuffer()
Adds a new cluster to the editing buffer.
|
void |
addTableModelListener(javax.swing.event.TableModelListener l) |
void |
applyChanges()
All changes made to the editing buffer are now applied by copying the
buffer to the persistent Vector clusters.
|
void |
createBuffer()
Creates a buffer by copying the clusters Vector.
|
void |
fireTableChanged()
Called to update the display of the table
|
Cluster |
getCluster(int i)
Gets a cluster by index i.
|
Cluster |
getCluster(java.lang.String clusterName)
Gets a cluster by name.
|
int |
getClusterCount()
Gets the cluster count.
|
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeClusterFromBuffer(Cluster cluster)
Removes the specified Cluster from the editing buffer.
|
void |
removeClusterFromBuffer(int i)
Removes a cluster from the editing buffer.
|
void |
removeClusterFromBuffer(java.lang.String clusterName)
Removes a cluster from buffer by name.
|
void |
removeTableModelListener(javax.swing.event.TableModelListener l) |
void |
setValueAt(java.lang.Object arg0,
int rowIndex,
int columnIndex) |
public ClusterSet(DataSheet dataSheet)
dataSheet - the data sheetpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelpublic void setValueAt(java.lang.Object arg0,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModelpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModelpublic void fireTableChanged()
public void addClusterToBuffer()
public void removeClusterFromBuffer(int i)
i - the index of the Cluster to be removed.public void removeClusterFromBuffer(Cluster cluster)
cluster - the Cluster to be removedpublic Cluster getCluster(int i)
i - the indexpublic Cluster getCluster(java.lang.String clusterName)
clusterName - the cluster namepublic int getClusterCount()
public void removeClusterFromBuffer(java.lang.String clusterName)
clusterName - the name of the Cluster to be removed.public void applyChanges()
public void createBuffer()
This buffer is used to store modifications that the user makes until he chooses to apply the changes made.