FileDocCategorySizeDatePackage
ModePanel.javaAPI DocExample2526Tue Feb 14 13:50:58 GMT 2006None

ModePanel

public class ModePanel extends JPanel

Fields Summary
private JCheckBox
bigEndian
private JCheckBox
deflated
private JCheckBox
gzipped
private ButtonGroup
dataTypes
private JRadioButton
asciiRadio
private JRadioButton
decimalRadio
private JRadioButton
hexRadio
private JRadioButton
shortRadio
private JRadioButton
intRadio
private JRadioButton
longRadio
private JRadioButton
floatRadio
private JRadioButton
doubleRadio
private JTextField
password
Constructors Summary
public ModePanel()

  
    
  
    this.setLayout(new GridLayout(13, 1));
    this.add(bigEndian);
    this.add(deflated);
    this.add(gzipped);
    
    this.add(asciiRadio);
    asciiRadio.setSelected(true);
    this.add(decimalRadio);
    this.add(hexRadio);
    this.add(shortRadio);
    this.add(intRadio);
    this.add(longRadio);
    this.add(floatRadio);
    this.add(doubleRadio);
    
    dataTypes.add(asciiRadio);
    dataTypes.add(decimalRadio);
    dataTypes.add(hexRadio);
    dataTypes.add(shortRadio);
    dataTypes.add(intRadio);
    dataTypes.add(longRadio);
    dataTypes.add(floatRadio);
    dataTypes.add(doubleRadio);
    
    this.add(password);
  
Methods Summary
public intgetMode()


    if (asciiRadio.isSelected()) return FileDumper6.ASC;
    else if (decimalRadio.isSelected()) return FileDumper6.DEC;
    else if (hexRadio.isSelected()) return FileDumper6.HEX;
    else if (shortRadio.isSelected()) return FileDumper6.SHORT;
    else if (intRadio.isSelected()) return FileDumper6.INT;
    else if (longRadio.isSelected()) return FileDumper6.LONG;
    else if (floatRadio.isSelected()) return FileDumper6.FLOAT;
    else if (doubleRadio.isSelected()) return FileDumper6.DOUBLE;
    else return FileDumper6.ASC;
  
public java.lang.StringgetPassword()

    return password.getText();
  
public booleanisBigEndian()

    return bigEndian.isSelected();
  
public booleanisDeflated()

    return deflated.isSelected();
  
public booleanisGZipped()

    return gzipped.isSelected();