net.aerith.misao.gui.dialog
Class DesignationDialog

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

public class DesignationDialog
extends Dialog

The DesignationDialog represents a dialog to input the designation of an asteroid, comet or satellite.


Inner Class Summary
protected  class DesignationDialog.DesignationChangedListener
          The DesignationChangedListener is a listener class to change the designation.
protected  class DesignationDialog.TypeChangedListener
          The TypeChangedListener is a listener class of the radio button selection.
 
Field Summary
protected  javax.swing.JComboBox combo_asteroid_month_code
          The combo box to select the month code of provisional designation of an asteroid.
protected  javax.swing.JComboBox combo_asteroid_orbit
          The combo box to select the orbit type of an asteroid.
protected  javax.swing.JComboBox combo_asteroid_sub_code
          The combo box to select the sub code in month of provisional designation of an asteroid.
protected  javax.swing.JComboBox combo_asteroid_survey
          The combo box to select the survey.
protected  javax.swing.JComboBox combo_comet_fragment
          The combo box to select the fragment.
protected  javax.swing.JComboBox combo_comet_month_code
          The combo box to select the month code of provisional designation of a comet.
protected  javax.swing.JComboBox combo_comet_orbit
          The combo box to select the orbit type of a comet.
protected  javax.swing.JComboBox combo_satellite_planet
          The combo box to select the planet.
protected  Designation designation
          The designation.
protected  javax.swing.JRadioButton radio_asteroid
          The radio button for an asteroid.
protected  javax.swing.JRadioButton radio_asteroid_numbered
          The radio button for a numbered asteroid.
protected  javax.swing.JRadioButton radio_asteroid_provisional
          The radio button for a provisional asteroid.
protected  javax.swing.JRadioButton radio_asteroid_survey
          The radio button for an asteroid of a special survey.
protected  javax.swing.JRadioButton radio_comet
          The radio button for a comet.
protected  javax.swing.JRadioButton radio_comet_numbered
          The radio button for a numbered periodic comet.
protected  javax.swing.JRadioButton radio_comet_provisional
          The radio button for a provisional comet.
protected  javax.swing.JRadioButton radio_satellite
          The radio button for a satellite.
protected  javax.swing.JRadioButton radio_satellite_numbered
          The radio button for a numbered satellite.
protected  javax.swing.JRadioButton radio_satellite_provisional
          The radio button for a provisional satellite.
protected  javax.swing.JTextField text_asteroid_number
          The text field to input the number of a numbered asteroid.
protected  javax.swing.JTextField text_asteroid_sequential
          The text field to input the sequential number in month of provisional designation of an asteroid.
protected  javax.swing.JTextField text_asteroid_survey_number
          The text field to input the number in survey.
protected  javax.swing.JTextField text_asteroid_year
          The text field to input the year of provisional designation of an asteroid.
protected  javax.swing.JTextField text_comet_number
          The text field to input the number of a numbered periodic comet.
protected  javax.swing.JTextField text_comet_sequential
          The text field to input the sequential number in month of provisional designation of a comet.
protected  javax.swing.JTextField text_comet_year
          The text field to input the year of provisional designation of a comet.
protected  javax.swing.JTextField text_designation
          The text field to show the designation.
protected  javax.swing.JTextField text_satellite_number
          The text field to input the number of a numbered satellite.
protected  javax.swing.JTextField text_satellite_sequential
          The text field to input the sequential number of provisional designation of a satellite.
protected  javax.swing.JTextField text_satellite_year
          The text field to input the year of provisional designation of a satellite.
 
Fields inherited from class net.aerith.misao.gui.dialog.Dialog
components, default_values, parent_pane
 
Constructor Summary
DesignationDialog()
          Constructs a DesignationDialog.
 
Method Summary
 Designation getDesignation()
          Gets the designation.
protected  java.lang.String getTitle()
          Gets the title of the dialog.
protected  void saveDefaultValues()
          Saves the default values.
protected  void setDefaultValues()
          Sets the default values.
private  void updateDesignation()
          Updates the designation.
private  void updateEnabled()
          Enables and disables the components properly.
 
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

designation

protected Designation designation
The designation.

text_designation

protected javax.swing.JTextField text_designation
The text field to show the designation.

radio_asteroid

protected javax.swing.JRadioButton radio_asteroid
The radio button for an asteroid.

radio_comet

protected javax.swing.JRadioButton radio_comet
The radio button for a comet.

radio_satellite

protected javax.swing.JRadioButton radio_satellite
The radio button for a satellite.

combo_asteroid_orbit

protected javax.swing.JComboBox combo_asteroid_orbit
The combo box to select the orbit type of an asteroid.

radio_asteroid_numbered

protected javax.swing.JRadioButton radio_asteroid_numbered
The radio button for a numbered asteroid.

radio_asteroid_provisional

protected javax.swing.JRadioButton radio_asteroid_provisional
The radio button for a provisional asteroid.

radio_asteroid_survey

protected javax.swing.JRadioButton radio_asteroid_survey
The radio button for an asteroid of a special survey.

text_asteroid_number

protected javax.swing.JTextField text_asteroid_number
The text field to input the number of a numbered asteroid.

text_asteroid_year

protected javax.swing.JTextField text_asteroid_year
The text field to input the year of provisional designation of an asteroid.

combo_asteroid_month_code

protected javax.swing.JComboBox combo_asteroid_month_code
The combo box to select the month code of provisional designation of an asteroid.

combo_asteroid_sub_code

protected javax.swing.JComboBox combo_asteroid_sub_code
The combo box to select the sub code in month of provisional designation of an asteroid.

text_asteroid_sequential

protected javax.swing.JTextField text_asteroid_sequential
The text field to input the sequential number in month of provisional designation of an asteroid.

combo_asteroid_survey

protected javax.swing.JComboBox combo_asteroid_survey
The combo box to select the survey.

text_asteroid_survey_number

protected javax.swing.JTextField text_asteroid_survey_number
The text field to input the number in survey.

combo_comet_orbit

protected javax.swing.JComboBox combo_comet_orbit
The combo box to select the orbit type of a comet.

radio_comet_numbered

protected javax.swing.JRadioButton radio_comet_numbered
The radio button for a numbered periodic comet.

radio_comet_provisional

protected javax.swing.JRadioButton radio_comet_provisional
The radio button for a provisional comet.

text_comet_number

protected javax.swing.JTextField text_comet_number
The text field to input the number of a numbered periodic comet.

text_comet_year

protected javax.swing.JTextField text_comet_year
The text field to input the year of provisional designation of a comet.

combo_comet_month_code

protected javax.swing.JComboBox combo_comet_month_code
The combo box to select the month code of provisional designation of a comet.

text_comet_sequential

protected javax.swing.JTextField text_comet_sequential
The text field to input the sequential number in month of provisional designation of a comet.

combo_comet_fragment

protected javax.swing.JComboBox combo_comet_fragment
The combo box to select the fragment.

combo_satellite_planet

protected javax.swing.JComboBox combo_satellite_planet
The combo box to select the planet.

radio_satellite_numbered

protected javax.swing.JRadioButton radio_satellite_numbered
The radio button for a numbered satellite.

radio_satellite_provisional

protected javax.swing.JRadioButton radio_satellite_provisional
The radio button for a provisional satellite.

text_satellite_number

protected javax.swing.JTextField text_satellite_number
The text field to input the number of a numbered satellite.

text_satellite_year

protected javax.swing.JTextField text_satellite_year
The text field to input the year of provisional designation of a satellite.

text_satellite_sequential

protected javax.swing.JTextField text_satellite_sequential
The text field to input the sequential number of provisional designation of a satellite.
Constructor Detail

DesignationDialog

public DesignationDialog()
Constructs a DesignationDialog.
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

getDesignation

public Designation getDesignation()
Gets the designation.
Returns:
the designation.

updateDesignation

private void updateDesignation()
Updates the designation.

updateEnabled

private void updateEnabled()
Enables and disables the components properly.