summaryrefslogtreecommitdiff
path: root/sources/prefs/editors/VSEditorTable.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-11 09:48:10 +0000
committerPaul Buetow <paul@buetow.org>2008-06-11 09:48:10 +0000
commit0e2e70d5a393024f3ae4a3a3560b4df51075000a (patch)
tree27c659d282bec3508304d5fa80a34a1662185950 /sources/prefs/editors/VSEditorTable.java
parent412a1ac0e6311fe39452ae41b6eada4ef17cce34 (diff)
More javadoc.
Several bugfixes. New feauture: Boolean: sim.periodic A lot of more which i forgot!
Diffstat (limited to 'sources/prefs/editors/VSEditorTable.java')
-rw-r--r--sources/prefs/editors/VSEditorTable.java76
1 files changed, 34 insertions, 42 deletions
diff --git a/sources/prefs/editors/VSEditorTable.java b/sources/prefs/editors/VSEditorTable.java
index 770ebdd..bb171dd 100644
--- a/sources/prefs/editors/VSEditorTable.java
+++ b/sources/prefs/editors/VSEditorTable.java
@@ -33,11 +33,14 @@ import javax.swing.text.*;
import prefs.*;
-// TODO: Auto-generated Javadoc
/**
- * The class VSEditorTable.
+ * The class VSEditorTable, each VSAbstractEditor uses an object of this class
+ * for displaying all editable items!
+ *
+ * @author Paul C. Buetow
*/
-public class VSEditorTable extends JTable { /* implements Serializable */
+public class VSEditorTable extends JTable {
+ /** The serial version uid */
private static final long serialVersionUID = 1L;
/** The Constant MIN_ROWS. */
@@ -55,7 +58,9 @@ public class VSEditorTable extends JTable { /* implements Serializable */
/**
* The class VSNode.
*/
- private class VSNode implements Serializable {
+ private class VSNode {
+ /** The serial version uid */
+ private static final long serialVersionUID = 1L;
/** The key. */
private String key;
@@ -64,7 +69,7 @@ public class VSEditorTable extends JTable { /* implements Serializable */
private Component comp;
/**
- * Instantiates a new lang.process.removenode.
+ * Instantiates a new VSNode object.
*
* @param key the key
*/
@@ -73,7 +78,7 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/**
- * Instantiates a new lang.process.removenode.
+ * Instantiates a new VSNode object.
*
* @param key the key
* @param comp the comp
@@ -111,43 +116,21 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/**
- * Checks if is separator.
+ * Checks if it is a separator.
*
* @return true, if is separator
*/
public boolean isSeparator() {
return comp == null;
}
-
- /**
- * Write object.
- *
- * @param objectOutputStream the object output stream
- *
- * @throws IOException Signals that an I/O exception has occurred.
- */
- public synchronized void writeObject(ObjectOutputStream objectOutputStream)
- throws IOException {
- }
-
- /**
- * Read object.
- *
- * @param objectInputStream the object input stream
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws ClassNotFoundException the class not found exception
- */
- @SuppressWarnings("unchecked")
- public synchronized void readObject(ObjectInputStream objectInputStream)
- throws IOException, ClassNotFoundException {
- }
}
/**
- * The class VSEditorTableModel.
+ * The class VSEditorTableModel, it is the model of a VSEditorTable.
*/
- private class VSEditorTableModel extends AbstractTableModel implements TableCellRenderer {
+ private class VSEditorTableModel extends AbstractTableModel
+ implements TableCellRenderer {
+ /** The serial version uid */
private static final long serialVersionUID = 1L;
/**
@@ -210,13 +193,16 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/* (non-Javadoc)
- * @see javax.swing.table.AbstractTableModel#setValueAt(java.lang.Object, int, int)
+ * @see javax.swing.table.AbstractTableModel#setValueAt(
+ * java.lang.Object, int, int)
*/
public void setValueAt(Object value, int row, int col) {
}
/* (non-Javadoc)
- * @see javax.swing.table.TableCellRenderer#getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
+ * @see
+ * javax.swing.table.TableCellRenderer#getTableCellRendererComponent(
+ * javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
*/
public Component getTableCellRendererComponent(JTable table,
Object object, boolean isSelected, boolean hasFocus, int
@@ -248,16 +234,22 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/**
- * The class VSTableCellEditor.
+ * The class VSTableCellEditor, is the editor of the VSEditorTable
*/
- private class VSTableCellEditor extends AbstractCellEditor implements TableCellEditor {
+ private class VSTableCellEditor extends AbstractCellEditor
+ implements TableCellEditor {
+ /** The serial version uid */
private static final long serialVersionUID = 1L;
/* (non-Javadoc)
- * @see javax.swing.table.TableCellEditor#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)
+ * @see javax.swing.table.TableCellEditor#getTableCellEditorComponent(
+ * javax.swing.JTable, java.lang.Object, boolean, int, int)
*/
- public Component getTableCellEditorComponent(JTable table, Object object,
- boolean isSelected, int row, int col) {
+ public Component getTableCellEditorComponent(JTable table,
+ Object object,
+ boolean isSelected,
+ int row,
+ int col) {
return nodes.get(row).getComponent();
}
@@ -270,7 +262,7 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/**
- * Instantiates a new lang.process.removeeditor table.
+ * Instantiates a new VSEditorTable object.
*
* @param prefs the prefs
*/
@@ -314,7 +306,7 @@ public class VSEditorTable extends JTable { /* implements Serializable */
}
/**
- * Fire table data changed.
+ * Fires that the table data has changed.
*/
public void fireTableDataChanged() {
model.fireTableDataChanged();