コード例 #1
0
 /** Refreshes the user interface in response to display changes such as Language. */
 protected void refreshGUI() {
   super.refreshGUI();
   messageLabel.setText(ControlsRes.getString("OSPControl.Messages"));
   clearLabel.setText(ControlsRes.getString("OSPControl.Clear"));
   inputLabel.setText(ControlsRes.getString("OSPControl.Input_Parameters"));
   table.refresh();
 }
コード例 #2
0
 /** Remove all text from the data input area. */
 public void clearValues() {
   table.clearValues();
 }
コード例 #3
0
 /**
  * Reads the current property names.
  *
  * @return the property names
  */
 public Collection getPropertyNames() {
   return table.getPropertyNames();
 }
コード例 #4
0
 /**
  * Reads a parameter value from the input display.
  *
  * @param par the parameter name
  * @return the value of of the parameter
  */
 public boolean getBoolean(String par) {
   return table.getBoolean(par);
 }
コード例 #5
0
 /**
  * Reads a parameter value from the input display.
  *
  * @param par the parameter name
  * @return String the value of of the parameter
  */
 public String getString(String par) {
   return table.getString(par);
 }
コード例 #6
0
 /**
  * Gets the object with the specified property name. Throws an UnsupportedOperationException if
  * the named object has not been stored.
  *
  * @param par
  * @return the object
  */
 public Object getObject(String par) throws UnsupportedOperationException {
   return table.getObject(par);
 }
コード例 #7
0
 /**
  * Reads a parameter value from the input display.
  *
  * @param par
  * @return int the value of of the parameter
  */
 public int getInt(String par) {
   return table.getInt(par);
 }
コード例 #8
0
 /**
  * Reads a parameter value from the input display.
  *
  * @param par
  * @return double the value of of the parameter
  */
 public double getDouble(String par) {
   return table.getDouble(par);
 }
コード例 #9
0
 /**
  * Removes a parameter from the table.
  *
  * @param par the parameter name
  */
 public void removeParameter(String par) {
   table.setValue(par, null);
 }
コード例 #10
0
 /**
  * Adds an initial value of a parameter to the input display.
  *
  * @param par the parameter name
  * @param val the initial parameter value
  */
 public void setValue(String par, int val) {
   table.setValue(par, Integer.toString(val));
 }
コード例 #11
0
 /**
  * Adds an initial value of a parameter to the input display.
  *
  * @param par the parameter name
  * @param val the initial parameter value
  */
 public void setValue(String par, double val) {
   table.setValue(par, Double.toString(val));
 }
コード例 #12
0
 /**
  * Adds an initial boolean value of a parameter to the input display.
  *
  * @param par the parameter name
  * @param val the initial parameter value
  */
 public void setValue(String par, boolean val) {
   table.setValue(par, val);
 }
コード例 #13
0
 /**
  * Adds a parameter to the input display.
  *
  * @param par the parameter name
  * @param val the initial parameter value
  */
 public void setValue(String par, Object val) {
   table.setValue(par, val);
 }
コード例 #14
0
 /**
  * Creates a string representation of the control parameters.
  *
  * @return the control parameters
  */
 public String toString() {
   return table.toString();
 }
コード例 #15
0
 /**
  * Locks the control's interface. Values sent to the control will not update the display until the
  * control is unlocked.
  *
  * @param lock boolean
  */
 public void setLockValues(boolean lock) {
   table.setLockValues(true);
 }
コード例 #16
0
 /**
  * Sets the editable property of the given parameter so that it can not be changed from within the
  * GUI.
  *
  * @param parameter String
  * @param editable boolean
  */
 public void setEditable(String parameter, boolean editable) {
   table.setEditable(parameter, editable);
 }