FileDocCategorySizeDatePackage
ModePanel.javaAPI DocExample2433Sun Mar 28 19:08:40 BST 1999None

ModePanel

public class ModePanel extends JPanel

Fields Summary
JCheckBox
bigEndian
JCheckBox
deflated
JCheckBox
gzipped
ButtonGroup
dataTypes
JRadioButton
asciiRadio
JRadioButton
decimalRadio
JRadioButton
hexRadio
JRadioButton
shortRadio
JRadioButton
intRadio
JRadioButton
longRadio
JRadioButton
floatRadio
JRadioButton
doubleRadio
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 FileDumper5.ASC;
    else if (decimalRadio.isSelected()) return FileDumper5.DEC;
    else if (hexRadio.isSelected()) return FileDumper5.HEX;
    else if (shortRadio.isSelected()) return FileDumper5.SHORT;
    else if (intRadio.isSelected()) return FileDumper5.INT;
    else if (longRadio.isSelected()) return FileDumper5.LONG;
    else if (floatRadio.isSelected()) return FileDumper5.FLOAT;
    else if (doubleRadio.isSelected()) return FileDumper5.DOUBLE;
    else return FileDumper5.ASC;
    
  
public java.lang.StringgetPassword()

    return password.getText();
  
public booleanisBigEndian()

    return bigEndian.isSelected();
  
public booleanisDeflated()

    return deflated.isSelected();
  
public booleanisGZipped()

    return gzipped.isSelected();