cz.cuni.jagrlib.gui
Class ParamJGLScript

java.lang.Object
  extended by cz.cuni.jagrlib.gui.ParamJGLScript
All Implemented Interfaces:
ParamGUI.ParamEdit

public class ParamJGLScript
extends java.lang.Object
implements ParamGUI.ParamEdit

JGL script file-name dialog box.

See Also:
ParamJGLScript.java

Field Summary
protected  java.lang.String fileName
          JaGrLib script file-name.
protected  CommonFileFilter filter
          File filter for JGL script chooser.
protected  javax.swing.JFileChooser chooser
          JGL script chooser.
 
Constructor Summary
ParamJGLScript()
           
 
Method Summary
 java.lang.String edit()
          Invokes edit dialog for special parameter.
 java.lang.String getText()
          Returns String representation of parameter value.
 java.lang.Object getValue()
          Returns internal value of the parameter.
 java.lang.Object setValue(java.lang.Object val)
          Sets value of the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

protected java.lang.String fileName
JaGrLib script file-name.


chooser

protected javax.swing.JFileChooser chooser
JGL script chooser.


filter

protected CommonFileFilter filter
File filter for JGL script chooser.

Constructor Detail

ParamJGLScript

public ParamJGLScript()
Method Detail

setValue

public java.lang.Object setValue(java.lang.Object val)
Sets value of the parameter.

Specified by:
setValue in interface ParamGUI.ParamEdit
Parameters:
val - New value (internal representation).
Returns:
Old value (internal representation).

getValue

public java.lang.Object getValue()
Returns internal value of the parameter.

Specified by:
getValue in interface ParamGUI.ParamEdit

getText

public java.lang.String getText()
Returns String representation of parameter value.

Specified by:
getText in interface ParamGUI.ParamEdit

edit

public java.lang.String edit()
Invokes edit dialog for special parameter.

Specified by:
edit in interface ParamGUI.ParamEdit
Returns:
String representation of the new parameter value.