Class DateDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DateDialog extends JDialog
Dialog for user friendly selecting date to be displayed in Day View.
See Also:
  • Field Details

    • TYPE_SWITCH_DATE

      public static final int TYPE_SWITCH_DATE
      Identifies dialog for switching current day view.
      See Also:
    • TYPE_COPY_TASK

      public static final int TYPE_COPY_TASK
      Identifies dialog for copying task to different day.
      See Also:
    • type

      private int type
      Type of dialog.
    • btCancel

      private JButton btCancel
    • btOK

      private JButton btOK
    • cmbMonth

      private JComboBox cmbMonth
    • lbSelectDate

      private JLabel lbSelectDate
    • pnDays

      private JPanel pnDays
    • spYear

      private JSpinner spYear
    • txtDate

      private JTextField txtDate
    • date

      private Date date
    • previousYear

      private Date previousYear
  • Constructor Details

    • DateDialog

      public DateDialog(Frame parent, Date date, int type)
      Creates new form DateDialog
  • Method Details

    • updateDays

      private void updateDays()
    • getFont

      public Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      Font to be used in this component.
    • initComponents

      private void initComponents()
      This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
    • pnDaysKeyPressed

      private void pnDaysKeyPressed(KeyEvent evt)
    • cmbMonthKeyPressed

      private void cmbMonthKeyPressed(KeyEvent evt)
    • txtDateMouseClicked

      private void txtDateMouseClicked(MouseEvent evt)
    • lbDayMouseClicked

      private void lbDayMouseClicked(MouseEvent evt)
    • spYearStateChanged

      private void spYearStateChanged(ChangeEvent evt)
    • cmbMonthActionPerformed

      private void cmbMonthActionPerformed(ActionEvent evt)
    • btCancelActionPerformed

      private void btCancelActionPerformed(ActionEvent evt)
    • btOKActionPerformed

      private void btOKActionPerformed(ActionEvent evt)
    • formMouseEntered

      private void formMouseEntered(MouseEvent evt)