org.openscience.jmol.app

Class FileTyper

public class FileTyper extends JPanel implements PropertyChangeListener, ItemListener

Field Summary
String[]choices
intdefaultTypeIndex
StringfileType
JComboBoxfileTypeComboBox
JLabelfileTypeLabel
booleanuseFileExtension
JCheckBoxuseFileExtensionCheckBox
Constructor Summary
FileTyper()
A simple panel with a combo box for allowing the user to choose the input file type.
Method Summary
StringgetType()
voiditemStateChanged(ItemEvent event)
voidpropertyChange(PropertyChangeEvent event)
voidsetUseFileExtension(boolean value)

Field Detail

choices

private String[] choices

defaultTypeIndex

private int defaultTypeIndex

fileType

private String fileType

fileTypeComboBox

private JComboBox fileTypeComboBox

fileTypeLabel

private JLabel fileTypeLabel

useFileExtension

private boolean useFileExtension

useFileExtensionCheckBox

private JCheckBox useFileExtensionCheckBox

Constructor Detail

FileTyper

public FileTyper()
A simple panel with a combo box for allowing the user to choose the input file type.

Method Detail

getType

public String getType()

Returns: The file type which contains the user's choice

itemStateChanged

public void itemStateChanged(ItemEvent event)

propertyChange

public void propertyChange(PropertyChangeEvent event)

setUseFileExtension

private void setUseFileExtension(boolean value)