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 Object
implements ParamGUI.ParamEdit

JGL script file-name dialog box.

Version:
0.26 $Rev: 424 $ $Date: 2007-04-22 19:50:04 +0200 (ne, 22 IV 2007) $ $Author: pepca $
See Also:
ParamJGLScript.java

Field Summary
protected  String fileName
          JaGrLib script file-name.
protected  CommonFileFilter filter
          File filter for JGL script chooser.
protected  JFileChooser chooser
          JGL script chooser.
 
Constructor Summary
ParamJGLScript()
           
 
Method Summary
 String edit()
          Invokes edit dialog for special parameter.
 String getText()
          Returns String representation of parameter value.
 Object getValue()
          Returns internal value of the parameter.
 Object setValue(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 String fileName
JaGrLib script file-name.


chooser

protected JFileChooser chooser
JGL script chooser.


filter

protected CommonFileFilter filter
File filter for JGL script chooser.

Constructor Detail

ParamJGLScript

public ParamJGLScript()
Method Detail

setValue

public Object setValue(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 Object getValue()
Returns internal value of the parameter.

Specified by:
getValue in interface ParamGUI.ParamEdit

getText

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

Specified by:
getText in interface ParamGUI.ParamEdit

edit

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

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