|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.ClusterSet
public class ClusterSet
A collection of several Cluster
s.
Constructor Summary | |
---|---|
ClusterSet(DataSheet dataSheet)
Instantiates a new cluster set. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterSet(DataSheet dataSheet)
dataSheet
- the data sheetMethod Detail |
---|
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object arg0, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
public void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener
in interface javax.swing.table.TableModel
public void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener
in interface javax.swing.table.TableModel
public 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 index
public Cluster getCluster(java.lang.String clusterName)
clusterName
- the cluster name
public 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 choose to apply the changes made.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |