org.emboss.jemboss.gui.sequenceChooser
Class FileChooser

java.lang.Object
  extended byorg.emboss.jemboss.gui.sequenceChooser.FileChooser

public class FileChooser
extends java.lang.Object

Creates a JFileChooser and add it to the Box.


Field Summary
private  javax.swing.JFileChooser fc
          file chooser
private  TextFieldSink fileName
          file name text field
private  javax.swing.JLabel lname
          label for text field
 
Constructor Summary
FileChooser(javax.swing.Box bdown, java.lang.String name, JembossParams mysettings)
           
 
Method Summary
 java.lang.String getFileChosen()
          Get the selected file
 javax.swing.JFileChooser getJFileChooser()
          Get the JFileChooser
 java.awt.Dimension getPreferredSize()
          Get the preferred size of the text field
 TextFieldSink getTextFieldSink()
          Get the text field
 void setForeground(java.awt.Color c)
          Set the label colour
 void setPreferredSize(java.awt.Dimension d)
          Set the preferred size of the text field
 void setSize(java.awt.Dimension d)
          Set the size of the text field
 void setText(java.lang.String txt)
          Set the text field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fc

private final javax.swing.JFileChooser fc
file chooser


fileName

private TextFieldSink fileName
file name text field


lname

private javax.swing.JLabel lname
label for text field

Constructor Detail

FileChooser

public FileChooser(javax.swing.Box bdown,
                   java.lang.String name,
                   JembossParams mysettings)
Parameters:
bdown - container in form to add to
name - label name for field
mysettings - jemboss properties
Method Detail

getFileChosen

public java.lang.String getFileChosen()
Get the selected file

Returns:
file name

getJFileChooser

public javax.swing.JFileChooser getJFileChooser()
Get the JFileChooser

Returns:
file chooser

getTextFieldSink

public TextFieldSink getTextFieldSink()
Get the text field

Returns:
text field

setText

public void setText(java.lang.String txt)
Set the text field

Parameters:
txt - text to set in the text field

setSize

public void setSize(java.awt.Dimension d)
Set the size of the text field

Parameters:
d - size of text field

setPreferredSize

public void setPreferredSize(java.awt.Dimension d)
Set the preferred size of the text field

Parameters:
d - size of text field

getPreferredSize

public java.awt.Dimension getPreferredSize()
Get the preferred size of the text field

Returns:
size of text field

setForeground

public void setForeground(java.awt.Color c)
Set the label colour

Parameters:
c - colour