Package adams.gui.chooser
Class DatePanel.InternalController
- java.lang.Object
-
- adams.gui.chooser.DatePanel.InternalController
-
- All Implemented Interfaces:
ActionListener
,MouseListener
,EventListener
- Enclosing class:
- DatePanel
protected class DatePanel.InternalController extends Object implements ActionListener, MouseListener
This inner class hides the public view event handling methods from the outside. This class acts as an internal controller for this component. It receives events from the view components and updates the model.- Author:
- Juan Heyns
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InternalController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent arg0)
Next, Previous and Month buttons clicked, causes the model to be updated.void
mouseClicked(MouseEvent arg0)
void
mouseEntered(MouseEvent arg0)
void
mouseExited(MouseEvent arg0)
void
mousePressed(MouseEvent arg0)
Mouse down on monthLabel pops up a table.void
mouseReleased(MouseEvent arg0)
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent arg0)
Next, Previous and Month buttons clicked, causes the model to be updated.- Specified by:
actionPerformed
in interfaceActionListener
-
mousePressed
public void mousePressed(MouseEvent arg0)
Mouse down on monthLabel pops up a table. Mouse down on todayLabel sets the value of the internal model to today. Mouse down on day table will set the day to the value. Mouse down on none label will clear the date.- Specified by:
mousePressed
in interfaceMouseListener
-
mouseClicked
public void mouseClicked(MouseEvent arg0)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent arg0)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent arg0)
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent arg0)
- Specified by:
mouseReleased
in interfaceMouseListener
-
-