diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-25 09:03:33 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-25 09:03:33 +0000 |
| commit | 009350323123fc4b47041cb2194e8df19f69423b (patch) | |
| tree | a9562cf215181a03137d5281d49d26e0fe5a3b45 /sources/prefs | |
| parent | bb1dbccae485263ea5182546006339870c57b367 (diff) | |
Run astyle.
Diffstat (limited to 'sources/prefs')
| -rw-r--r-- | sources/prefs/VSDefaultPrefs.java | 10 | ||||
| -rw-r--r-- | sources/prefs/VSPrefs.java | 250 | ||||
| -rw-r--r-- | sources/prefs/editors/VSBetterEditor.java | 20 | ||||
| -rw-r--r-- | sources/prefs/editors/VSColorChooser.java | 14 | ||||
| -rw-r--r-- | sources/prefs/editors/VSEditor.java | 126 | ||||
| -rw-r--r-- | sources/prefs/editors/VSEditorFrame.java | 8 | ||||
| -rw-r--r-- | sources/prefs/editors/VSEditorTable.java | 40 | ||||
| -rw-r--r-- | sources/prefs/editors/VSProcessEditor.java | 8 | ||||
| -rw-r--r-- | sources/prefs/editors/VSSimulatorEditor.java | 12 |
9 files changed, 244 insertions, 244 deletions
diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java index d7d3f81..8e4fb03 100644 --- a/sources/prefs/VSDefaultPrefs.java +++ b/sources/prefs/VSDefaultPrefs.java @@ -12,11 +12,11 @@ import java.awt.event.KeyEvent; * The Class VSDefaultPrefs. */ public class VSDefaultPrefs extends VSPrefs { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** * Inits the. - * + * * @return the vS prefs */ public static VSPrefs init() { @@ -25,9 +25,9 @@ public class VSDefaultPrefs extends VSPrefs { /** * Inits the. - * + * * @param fileName the file name - * + * * @return the vS prefs */ public static VSPrefs init(String fileName) { diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java index 611e0fa..6948dee 100644 --- a/sources/prefs/VSPrefs.java +++ b/sources/prefs/VSPrefs.java @@ -13,64 +13,64 @@ import java.util.*; * The Class VSPrefs. */ public abstract class VSPrefs implements Serializable { - + /** The Constant BOOLEAN_PREFIX. */ public static final String BOOLEAN_PREFIX = "Boolean: "; - + /** The Constant COLOR_PREFIX. */ public static final String COLOR_PREFIX = "Color: "; - + /** The Constant FLOAT_PREFIX. */ public static final String FLOAT_PREFIX = "Float: "; - + /** The Constant INTEGER_PREFIX. */ public static final String INTEGER_PREFIX = "Integer: "; - + /** The Constant LONG_PREFIX. */ public static final String LONG_PREFIX = "Long: "; - + /** The Constant STRING_PREFIX. */ public static final String STRING_PREFIX = "String: "; - + /** The color prefs. */ private HashMap<String,Color> colorPrefs; - + /** The float prefs. */ private HashMap<String,Float> floatPrefs; - + /** The integer prefs. */ private HashMap<String,Integer> integerPrefs; - + /** The long prefs. */ private HashMap<String,Long> longPrefs; - + /** The setting restriction prefs. */ private HashMap<String,SettingRestriction> settingRestrictionPrefs; - + /** The description prefs. */ private HashMap<String,String> descriptionPrefs; - + /** The string prefs. */ private HashMap<String,String> stringPrefs; - + /** The boolean prefs. */ private HashMap<String,Boolean> booleanPrefs; - + /** The object prefs. */ private HashMap<String,Object> objectPrefs; - + /** The units. */ private HashMap<String,String> units; - + /** The Constant serialVersionUID. */ private static final long serialVersionUID = 4L; - + /** The Constant PREFERENCES_FILENAME. */ protected final static String PREFERENCES_FILENAME = "vs.dat"; - + /** The id counter. */ private static long idCounter; - + /** The id. */ protected long id; @@ -78,23 +78,23 @@ public abstract class VSPrefs implements Serializable { * The Class SettingRestriction. */ public class SettingRestriction implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; } /** * The Class IntegerSettingRestriction. */ public class IntegerSettingRestriction extends SettingRestriction { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; /** The min value. */ private int minValue; - + /** The max value. */ private int maxValue; /** * Instantiates a new integer setting restriction. - * + * * @param minValue the min value * @param maxValue the max value */ @@ -105,7 +105,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the min value. - * + * * @return the min value */ public int getMinValue() { @@ -114,7 +114,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the max value. - * + * * @return the max value */ public int getMaxValue() { @@ -126,14 +126,14 @@ public abstract class VSPrefs implements Serializable { * The Class StringSettingRestriction. */ public class StringSettingRestriction extends SettingRestriction { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** The possible selections. */ Vector<String> possibleSelections; /** * Instantiates a new string setting restriction. - * + * * @param possibleSelections the possible selections */ public StringSettingRestriction(String [] possibleSelections) { @@ -145,7 +145,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the possible selections. - * + * * @return the possible selections */ public Vector<String> getPossibleSelections() { @@ -187,9 +187,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the object. - * + * * @param key the key - * + * * @return the object */ public synchronized Object getObject(String key) { @@ -206,7 +206,7 @@ public abstract class VSPrefs implements Serializable { /** * Removes the object. - * + * * @param key the key */ public synchronized void removeObject(String key) { @@ -215,9 +215,9 @@ public abstract class VSPrefs implements Serializable { /** * Object exists. - * + * * @param key the key - * + * * @return true, if successful */ public synchronized boolean objectExists(String key) { @@ -226,9 +226,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the string. - * + * * @param key the key - * + * * @return the string */ public synchronized String getString(String key) { @@ -245,9 +245,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the integer obj. - * + * * @param key the key - * + * * @return the integer obj */ public synchronized Integer getIntegerObj(String key) { @@ -264,9 +264,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the integer. - * + * * @param key the key - * + * * @return the integer */ public int getInteger(String key) { @@ -275,9 +275,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the float obj. - * + * * @param key the key - * + * * @return the float obj */ public synchronized Float getFloatObj(String key) { @@ -294,9 +294,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the float. - * + * * @param key the key - * + * * @return the float */ public float getFloat(String key) { @@ -305,9 +305,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the long obj. - * + * * @param key the key - * + * * @return the long obj */ public synchronized Long getLongObj(String key) { @@ -324,9 +324,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the long. - * + * * @param key the key - * + * * @return the long */ public long getLong(String key) { @@ -335,9 +335,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the boolean obj. - * + * * @param key the key - * + * * @return the boolean obj */ public synchronized Boolean getBooleanObj(String key) { @@ -351,9 +351,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the boolean. - * + * * @param key the key - * + * * @return the boolean */ public boolean getBoolean(String key) { @@ -362,9 +362,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the color. - * + * * @param key the key - * + * * @return the color */ public synchronized Color getColor(String key) { @@ -381,9 +381,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the description. - * + * * @param key the key - * + * * @return the description */ public synchronized String getDescription(String key) { @@ -392,9 +392,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the unit. - * + * * @param key the key - * + * * @return the unit */ public synchronized String getUnit(String key) { @@ -403,9 +403,9 @@ public abstract class VSPrefs implements Serializable { /** * Gets the restriction. - * + * * @param key the key - * + * * @return the restriction */ public synchronized SettingRestriction getRestriction(String key) { @@ -414,7 +414,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the string key set. - * + * * @return the string key set */ public synchronized Set<String> getStringKeySet() { @@ -423,7 +423,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the integer key set. - * + * * @return the integer key set */ public synchronized Set<String> getIntegerKeySet() { @@ -432,7 +432,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the float key set. - * + * * @return the float key set */ public synchronized Set<String> getFloatKeySet() { @@ -441,7 +441,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the long key set. - * + * * @return the long key set */ public synchronized Set<String> getLongKeySet() { @@ -450,7 +450,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the boolean key set. - * + * * @return the boolean key set */ public synchronized Set<String> getBooleanKeySet() { @@ -459,7 +459,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the color key set. - * + * * @return the color key set */ public synchronized Set<String> getColorKeySet() { @@ -468,7 +468,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the object. - * + * * @param key the key * @param val the val */ @@ -478,7 +478,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the string. - * + * * @param key the key * @param val the val */ @@ -488,7 +488,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the integer. - * + * * @param key the key * @param val the val */ @@ -498,7 +498,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the color. - * + * * @param key the key * @param color the color */ @@ -508,7 +508,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the int. - * + * * @param key the key * @param val the val */ @@ -518,7 +518,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the float. - * + * * @param key the key * @param val the val */ @@ -528,7 +528,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the float. - * + * * @param key the key * @param val the val */ @@ -538,7 +538,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the long. - * + * * @param key the key * @param val the val */ @@ -548,7 +548,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the long. - * + * * @param key the key * @param val the val */ @@ -558,7 +558,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the boolean. - * + * * @param key the key * @param val the val */ @@ -568,7 +568,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the boolean. - * + * * @param key the key * @param val the val */ @@ -578,7 +578,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the string. - * + * * @param key the key * @param val the val */ @@ -589,7 +589,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val */ @@ -600,7 +600,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val */ @@ -610,7 +610,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the long. - * + * * @param key the key * @param val the val */ @@ -621,7 +621,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the long. - * + * * @param key the key * @param val the val */ @@ -631,7 +631,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the float. - * + * * @param key the key * @param val the val */ @@ -642,7 +642,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the float. - * + * * @param key the key * @param val the val */ @@ -652,7 +652,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the long if unset. - * + * * @param key the key * @param val the val */ @@ -663,7 +663,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the long if unset. - * + * * @param key the key * @param val the val */ @@ -673,7 +673,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the boolean. - * + * * @param key the key * @param val the val */ @@ -684,7 +684,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the boolean. - * + * * @param key the key * @param val the val */ @@ -694,7 +694,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the color. - * + * * @param key the key * @param color the color */ @@ -705,7 +705,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the description if unset. - * + * * @param key the key * @param descr the descr */ @@ -717,7 +717,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the restriction. - * + * * @param key the key * @param settingRestriction the setting restriction */ @@ -727,7 +727,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the unit. - * + * * @param key the key * @param unit the unit */ @@ -737,7 +737,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the string. - * + * * @param key the key * @param val the val * @param descr the descr @@ -749,7 +749,7 @@ public abstract class VSPrefs implements Serializable { /** * Sets the long if unset. - * + * * @param key the key * @param val the val * @param descr the descr @@ -761,7 +761,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the boolean. - * + * * @param key the key * @param val the val * @param descr the descr @@ -773,7 +773,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the boolean unit. - * + * * @param key the key * @param val the val * @param descr the descr @@ -786,7 +786,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val * @param descr the descr @@ -800,7 +800,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val * @param descr the descr @@ -813,7 +813,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val * @param descr the descr @@ -825,7 +825,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer. - * + * * @param key the key * @param val the val * @param descr the descr @@ -838,7 +838,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the integer unit. - * + * * @param key the key * @param val the val * @param descr the descr @@ -853,7 +853,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the long. - * + * * @param key the key * @param val the val * @param descr the descr @@ -865,7 +865,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the long. - * + * * @param key the key * @param val the val * @param descr the descr @@ -876,7 +876,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the long unit. - * + * * @param key the key * @param val the val * @param descr the descr @@ -889,7 +889,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the float. - * + * * @param key the key * @param val the val * @param descr the descr @@ -901,7 +901,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the float. - * + * * @param key the key * @param val the val * @param descr the descr @@ -912,7 +912,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the float unit. - * + * * @param key the key * @param val the val * @param descr the descr @@ -926,7 +926,7 @@ public abstract class VSPrefs implements Serializable { /** * Inits the color. - * + * * @param key the key * @param val the val * @param descr the descr @@ -940,27 +940,27 @@ public abstract class VSPrefs implements Serializable { * Fill default strings. */ public void fillDefaultStrings() {} - + /** * Fill default integers. */ public void fillDefaultIntegers() {} - + /** * Fill default floats. */ public void fillDefaultFloats() {} - + /** * Fill default colors. */ public void fillDefaultColors() {} - + /** * Fill default booleans. */ public void fillDefaultBooleans() {} - + /** * Fill with defaults. */ @@ -968,9 +968,9 @@ public abstract class VSPrefs implements Serializable { /** * Write object. - * + * * @param objectOutputStream the object output stream - * + * * @throws IOException Signals that an I/O exception has occurred. */ public synchronized void writeObject(ObjectOutputStream objectOutputStream) @@ -986,9 +986,9 @@ public abstract class VSPrefs implements Serializable { /** * 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 */ @@ -1042,7 +1042,7 @@ public abstract class VSPrefs implements Serializable { /** * Copy integers. - * + * * @param copyInto the copy into * @param keys the keys */ @@ -1054,7 +1054,7 @@ public abstract class VSPrefs implements Serializable { /** * Copy longs. - * + * * @param copyInto the copy into * @param keys the keys */ @@ -1065,7 +1065,7 @@ public abstract class VSPrefs implements Serializable { /** * Copy floats. - * + * * @param copyInto the copy into * @param keys the keys */ @@ -1076,7 +1076,7 @@ public abstract class VSPrefs implements Serializable { /** * Copy strings. - * + * * @param copyInto the copy into * @param keys the keys */ @@ -1087,7 +1087,7 @@ public abstract class VSPrefs implements Serializable { /** * Copy colors. - * + * * @param copyInto the copy into * @param keys the keys */ @@ -1147,7 +1147,7 @@ public abstract class VSPrefs implements Serializable { /** * Gets the iD. - * + * * @return the iD */ public long getID() { @@ -1156,7 +1156,7 @@ public abstract class VSPrefs implements Serializable { /** * Checks if is empty. - * + * * @return true, if is empty */ public boolean isEmpty() { diff --git a/sources/prefs/editors/VSBetterEditor.java b/sources/prefs/editors/VSBetterEditor.java index 211e8ed..79470ba 100644 --- a/sources/prefs/editors/VSBetterEditor.java +++ b/sources/prefs/editors/VSBetterEditor.java @@ -16,19 +16,19 @@ import utils.*; * The Class VSBetterEditor. */ public abstract class VSBetterEditor extends VSEditor { - + /** The content pane. */ private Container contentPane; - + /** The info area. */ private VSInfoArea infoArea; - + /** The title. */ private String title; /** * Instantiates a new vS better editor. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit * @param title the title @@ -41,7 +41,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the title. - * + * * @return the title */ public String getTitle() { @@ -50,7 +50,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the content pane. - * + * * @return the content pane */ public Container getContentPane() { @@ -60,7 +60,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Creates the content pane. - * + * * @return the j panel */ private JPanel createContentPane() { @@ -83,12 +83,12 @@ public abstract class VSBetterEditor extends VSEditor { * @see prefs.editors.VSEditor#addToButtonPanelFront(javax.swing.JPanel) */ protected void addToButtonPanelFront(JPanel buttonPanel) { } - + /* (non-Javadoc) * @see prefs.editors.VSEditor#addToButtonPanelLast(javax.swing.JPanel) */ protected void addToButtonPanelLast(JPanel buttonPanel) { } - + /* (non-Javadoc) * @see prefs.editors.VSEditor#addToEditTableLast() */ @@ -106,7 +106,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the info area. - * + * * @return the info area */ protected VSInfoArea getInfoArea() { diff --git a/sources/prefs/editors/VSColorChooser.java b/sources/prefs/editors/VSColorChooser.java index 245e599..0b5c849 100644 --- a/sources/prefs/editors/VSColorChooser.java +++ b/sources/prefs/editors/VSColorChooser.java @@ -15,23 +15,23 @@ import prefs.VSPrefs; * The Class VSColorChooser. */ public class VSColorChooser extends JPanel implements ChangeListener { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** The color chooser. */ protected JColorChooser colorChooser; - + /** The color. */ private Color color; - + /** The val field. */ private JTextField valField; - + /** The prefs. */ - //private VSPrefs prefs; + //private VSPrefs prefs; /** * Instantiates a new vS color chooser. - * + * * @param prefs the prefs * @param valField the val field */ diff --git a/sources/prefs/editors/VSEditor.java b/sources/prefs/editors/VSEditor.java index 8eda1e0..013b62a 100644 --- a/sources/prefs/editors/VSEditor.java +++ b/sources/prefs/editors/VSEditor.java @@ -17,82 +17,82 @@ import prefs.VSPrefs; * The Class VSEditor. */ public abstract class VSEditor implements ActionListener { - + /** The boolean keys. */ private ArrayList<String> booleanKeys; - + /** The color keys. */ private ArrayList<String> colorKeys; - + /** The float keys. */ private ArrayList<String> floatKeys; - + /** The integer keys. */ private ArrayList<String> integerKeys; - + /** The long keys. */ private ArrayList<String> longKeys; - + /** The string keys. */ private ArrayList<String> stringKeys; - + /** The boolean fields. */ private HashMap<String,JCheckBox> booleanFields; - + /** The integer fields. */ private HashMap<String,JComboBox> integerFields; - + /** The color fields. */ private HashMap<String,JTextField> colorFields; - + /** The float fields. */ private HashMap<String,JTextField> floatFields; - + /** The long fields. */ private HashMap<String,JTextField> longFields; - + /** The string fields. */ private HashMap<String,JTextField> stringFields; - + /** The prefs to edit map. */ private HashMap<String,VSPrefs> prefsToEditMap; - + /** The button panel. */ private JPanel buttonPanel; - + /** The edit panel. */ private JPanel editPanel; - + /** The edit table. */ private VSEditorTable editTable; - + /** The frame. */ private VSFrame frame; - + /** The expert mode changed. */ private boolean expertModeChanged; - + /** The prefs. */ protected VSPrefs prefs; - + /** The prefs to edit. */ protected VSPrefs prefsToEdit; - + /** The Constant MIN_UNIT_LENGTH. */ protected static final int MIN_UNIT_LENGTH = 5; - + /** The Constant VALUE_FIELD_COLS. */ protected static final int VALUE_FIELD_COLS = 9; - + /** The Constant ALL_PREFERENCES. */ public static final int ALL_PREFERENCES = 0; - + /** The Constant SIMULATION_PREFERENCES. */ public static final int SIMULATION_PREFERENCES = 1; /** * Instantiates a new vS editor. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit */ @@ -102,18 +102,18 @@ public abstract class VSEditor implements ActionListener { /** * Adds the to button panel front. - * + * * @param buttonPanel the button panel */ abstract protected void addToButtonPanelFront(JPanel buttonPanel); - + /** * Adds the to button panel last. - * + * * @param buttonPanel the button panel */ abstract protected void addToButtonPanelLast(JPanel buttonPanel); - + /** * Adds the to edit table last. */ @@ -121,7 +121,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the prefs. - * + * * @param prefs the new prefs */ public void setPrefs(VSPrefs prefs) { @@ -130,7 +130,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the prefs to edit. - * + * * @param prefsToEdit the new prefs to edit */ public void setPrefsToEdit(VSPrefs prefsToEdit) { @@ -139,7 +139,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the frame. - * + * * @param frame the new frame */ public void setFrame(VSFrame frame) { @@ -148,7 +148,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the frame. - * + * * @return the frame */ public VSFrame getFrame() { @@ -173,7 +173,7 @@ public abstract class VSEditor implements ActionListener { /** * Inits the. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit */ @@ -205,9 +205,9 @@ public abstract class VSEditor implements ActionListener { /** * Filter keys. - * + * * @param set the set - * + * * @return the array list< string> */ private ArrayList<String> filterKeys(Set<String> set) { @@ -228,7 +228,7 @@ public abstract class VSEditor implements ActionListener { /** * Creates the button panel. - * + * * @return the j panel */ private JPanel createButtonPanel() { @@ -249,10 +249,10 @@ public abstract class VSEditor implements ActionListener { /** * Creates the unit panel. - * + * * @param comp the comp * @param key the key - * + * * @return the j panel */ private JPanel createUnitPanel(Component comp, String key) { @@ -278,7 +278,7 @@ public abstract class VSEditor implements ActionListener { /** * Creates the edit panel. - * + * * @return the j panel */ private JPanel createEditPanel() { @@ -295,11 +295,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the integer component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j combo box> */ protected VSTupel<String,Component,JComboBox> createIntegerComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -331,11 +331,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the boolean component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j check box> */ protected VSTupel<String,Component,JCheckBox> createBooleanComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -350,11 +350,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the long component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel<String,Component,JTextField> createLongComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -375,11 +375,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the float component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel<String,Component,JTextField> createFloatComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -400,11 +400,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the color component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel<String,Component,JTextField> createColorComponent(String fullKey, String key, final VSPrefs prefsToEdit) { @@ -441,11 +441,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the string component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel<String,Component,JTextField> createStringComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -466,7 +466,7 @@ public abstract class VSEditor implements ActionListener { /** * Fill edit panel. - * + * * @param prefsToEdit the prefs to edit */ private void fillEditPanel(VSPrefs prefsToEdit) { @@ -593,7 +593,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the to editor. - * + * * @param label the label * @param prefsKey the prefs key * @param prefsToAdd the prefs to add @@ -661,7 +661,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the separator. - * + * * @param label the label */ private void addSeparator(String label) { @@ -670,7 +670,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the variable. - * + * * @param label the label * @param component the component * @param prefs the prefs @@ -681,7 +681,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the variable. - * + * * @param prefsKey the prefs key * @param label the label * @param component the component @@ -734,9 +734,9 @@ public abstract class VSEditor implements ActionListener { /** * Gets the keys. - * + * * @param key the key - * + * * @return [0] := key, [1] := prefsKey */ private String[] getKeys(String key) { @@ -817,7 +817,7 @@ public abstract class VSEditor implements ActionListener { /** * Expert mode changed. - * + * * @return true, if successful */ public boolean expertModeChanged() { @@ -845,7 +845,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the edits the panel. - * + * * @return the edits the panel */ public JPanel getEditPanel() { @@ -854,7 +854,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the edits the table. - * + * * @return the edits the table */ public VSEditorTable getEditTable() { @@ -863,7 +863,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the button panel. - * + * * @return the button panel */ public JPanel getButtonPanel() { diff --git a/sources/prefs/editors/VSEditorFrame.java b/sources/prefs/editors/VSEditorFrame.java index 18a5eb6..9af98fa 100644 --- a/sources/prefs/editors/VSEditorFrame.java +++ b/sources/prefs/editors/VSEditorFrame.java @@ -16,16 +16,16 @@ import utils.*; * The Class VSEditorFrame. */ public class VSEditorFrame extends VSFrame implements ActionListener { - + /** The editor. */ private VSBetterEditor editor; - + /** The prefs. */ private VSPrefs prefs; /** * Instantiates a new vS editor frame. - * + * * @param prefs the prefs * @param relativeTo the relative to * @param editor the editor @@ -53,7 +53,7 @@ public class VSEditorFrame extends VSFrame implements ActionListener { /** * Fill button panel. - * + * * @param buttonPanel the button panel */ private void fillButtonPanel(JPanel buttonPanel) { diff --git a/sources/prefs/editors/VSEditorTable.java b/sources/prefs/editors/VSEditorTable.java index 88d7886..4963f68 100644 --- a/sources/prefs/editors/VSEditorTable.java +++ b/sources/prefs/editors/VSEditorTable.java @@ -18,17 +18,17 @@ import prefs.*; * The Class VSEditorTable. */ public class VSEditorTable extends JTable { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** The Constant MIN_ROWS. */ private static final int MIN_ROWS = 20; - + /** The prefs. */ private VSPrefs prefs; - + /** The nodes. */ private ArrayList<VSNode> nodes; - + /** The model. */ private VSEditorTableModel model; @@ -36,16 +36,16 @@ public class VSEditorTable extends JTable { * The Class VSNode. */ private class VSNode { - + /** The key. */ private String key; - + /** The comp. */ private Component comp; /** * Instantiates a new vS node. - * + * * @param key the key */ public VSNode(String key) { @@ -54,7 +54,7 @@ public class VSEditorTable extends JTable { /** * Instantiates a new vS node. - * + * * @param key the key * @param comp the comp */ @@ -65,7 +65,7 @@ public class VSEditorTable extends JTable { /** * Gets the key. - * + * * @return the key */ public String getKey() { @@ -74,7 +74,7 @@ public class VSEditorTable extends JTable { /** * Gets the component. - * + * * @return the component */ public Component getComponent() { @@ -83,7 +83,7 @@ public class VSEditorTable extends JTable { /** * Gets the renderer component. - * + * * @return the renderer component */ public Component getRendererComponent() { @@ -92,7 +92,7 @@ public class VSEditorTable extends JTable { /** * Checks if is separator. - * + * * @return true, if is separator */ public boolean isSeparator() { @@ -104,8 +104,8 @@ public class VSEditorTable extends JTable { * The Class VSEditorTableModel. */ private class VSEditorTableModel extends AbstractTableModel implements TableCellRenderer { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** * Instantiates a new vS editor table model. */ @@ -207,8 +207,8 @@ public class VSEditorTable extends JTable { * The Class VSTableCellEditor. */ private class VSTableCellEditor extends AbstractCellEditor implements TableCellEditor { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /* (non-Javadoc) * @see javax.swing.table.TableCellEditor#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int) */ @@ -227,7 +227,7 @@ public class VSEditorTable extends JTable { /** * Instantiates a new vS editor table. - * + * * @param prefs the prefs */ public VSEditorTable(VSPrefs prefs) { @@ -252,7 +252,7 @@ public class VSEditorTable extends JTable { /** * Adds the variable. - * + * * @param key the key * @param comp the comp */ @@ -262,7 +262,7 @@ public class VSEditorTable extends JTable { /** * Adds the separator. - * + * * @param text the text */ public void addSeparator(String text) { diff --git a/sources/prefs/editors/VSProcessEditor.java b/sources/prefs/editors/VSProcessEditor.java index e17f89a..fc0e01d 100644 --- a/sources/prefs/editors/VSProcessEditor.java +++ b/sources/prefs/editors/VSProcessEditor.java @@ -18,16 +18,16 @@ import prefs.VSPrefs; * The Class VSProcessEditor. */ public class VSProcessEditor extends VSBetterEditor { - + /** The process. */ private VSProcess process; - + /** The TAKEOVE r_ button. */ public static boolean TAKEOVER_BUTTON; - + /** * Instantiates a new vS process editor. - * + * * @param prefs the prefs * @param process the process */ diff --git a/sources/prefs/editors/VSSimulatorEditor.java b/sources/prefs/editors/VSSimulatorEditor.java index 1264377..2bd965f 100644 --- a/sources/prefs/editors/VSSimulatorEditor.java +++ b/sources/prefs/editors/VSSimulatorEditor.java @@ -15,22 +15,22 @@ import prefs.*; * The Class VSSimulatorEditor. */ public class VSSimulatorEditor extends VSBetterEditor { - + /** The simulator frame. */ private VSSimulatorFrame simulatorFrame; - + /** The simulation. */ private VSSimulator simulation; - + /** The TAKEOVE r_ button. */ public static boolean TAKEOVER_BUTTON; - + /** The dont start new simulation. */ private boolean dontStartNewSimulation; /** * Instantiates a new vS simulator editor. - * + * * @param prefs the prefs * @param simulatorFrame the simulator frame * @param simulation the simulation @@ -45,7 +45,7 @@ public class VSSimulatorEditor extends VSBetterEditor { /** * Instantiates a new vS simulator editor. - * + * * @param prefs the prefs * @param simulatorFrame the simulator frame */ |
