net.aerith.misao.gui.dialog
Class VsnetReportSettingDialog

java.lang.Object
  |
  +--net.aerith.misao.gui.dialog.Dialog
        |
        +--net.aerith.misao.gui.dialog.VsnetReportSettingDialog

public class VsnetReportSettingDialog
extends Dialog

The VsnetReportSettingDialog represents a dialog to set up parameters to make a report of magnitude to VSNET or VSOLJ.


Field Summary
protected  javax.swing.JComboBox combo_accuracy
          The combo box to select the magnitude accuracy.
protected  javax.swing.JComboBox combo_society
          The combo box to select a society to report to.
protected  javax.swing.JRadioButton radio_extended
          The radio button for the extended format.
protected  javax.swing.JRadioButton radio_extended_instruments
          The radio button for the extended format, with the instruments.
protected  javax.swing.JRadioButton radio_original
          The radio button for the original format.
protected  javax.swing.JTextField text_code
          The text field to input the observer's code.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
VsnetReportSettingDialog()
          Constructs a VsnetReportSettingDialog.
 
Method Summary
 void fixToVsnet()
          Selects the VSNET and disables the combo box.
 void fixToVsolj()
          Selects the VSOLJ and disables the combo box.
 int getAccuracy()
          Gets the magnitude accuracy number.
 int getFormat()
          Gets the format number.
 java.lang.String getObserverCode()
          Gets the observer's code.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
 boolean isVsnetSelected()
          True if the VSNET is selected as the society.
protected  void saveDefaultValues()
          Saves the default values.
 void selectVsnet()
          Selects the VSNET.
 void selectVsolj()
          Selects the VSOLJ.
 void setAccuracy(int accuracy)
          Sets the magnitude accuracy number.
protected  void setDefaultValues()
          Sets the default values.
 void setFormat(int format)
          Sets the format number.
 void setObserverCode(java.lang.String code)
          Sets the observer's code.
 
Methods inherited from class net.aerith.misao.gui.dialog.Dialog
show
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

combo_society

protected javax.swing.JComboBox combo_society
The combo box to select a society to report to.

radio_original

protected javax.swing.JRadioButton radio_original
The radio button for the original format.

radio_extended

protected javax.swing.JRadioButton radio_extended
The radio button for the extended format.

radio_extended_instruments

protected javax.swing.JRadioButton radio_extended_instruments
The radio button for the extended format, with the instruments.

combo_accuracy

protected javax.swing.JComboBox combo_accuracy
The combo box to select the magnitude accuracy.

text_code

protected javax.swing.JTextField text_code
The text field to input the observer's code.
Constructor Detail

VsnetReportSettingDialog

public VsnetReportSettingDialog()
Constructs a VsnetReportSettingDialog.
Method Detail

getTitle

protected java.lang.String getTitle()
Gets the title of the dialog.
Overrides:
getTitle in class Dialog
Returns:
the title of the dialog.

setDefaultValues

protected void setDefaultValues()
Sets the default values.

saveDefaultValues

protected void saveDefaultValues()
Saves the default values.
Overrides:
saveDefaultValues in class Dialog

selectVsnet

public void selectVsnet()
Selects the VSNET.

selectVsolj

public void selectVsolj()
Selects the VSOLJ.

fixToVsnet

public void fixToVsnet()
Selects the VSNET and disables the combo box.

fixToVsolj

public void fixToVsolj()
Selects the VSOLJ and disables the combo box.

isVsnetSelected

public boolean isVsnetSelected()
True if the VSNET is selected as the society.
Returns:
true if the VSNET is selected as the society.

getFormat

public int getFormat()
Gets the format number.
Returns:
the format number.

setFormat

public void setFormat(int format)
Sets the format number.
Parameters:
format - the format number.

getAccuracy

public int getAccuracy()
Gets the magnitude accuracy number.
Returns:
the magnitude accuracy number.

setAccuracy

public void setAccuracy(int accuracy)
Sets the magnitude accuracy number.
Parameters:
accuracy - the magnitude accuracy number.

getObserverCode

public java.lang.String getObserverCode()
Gets the observer's code.
Returns:
the observer's code.

setObserverCode

public void setObserverCode(java.lang.String code)
Sets the observer's code.
Parameters:
code - the observer's code.