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 protectedInternalController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent arg0)Next, Previous and Month buttons clicked, causes the model to be updated.voidmouseClicked(MouseEvent arg0)voidmouseEntered(MouseEvent arg0)voidmouseExited(MouseEvent arg0)voidmousePressed(MouseEvent arg0)Mouse down on monthLabel pops up a table.voidmouseReleased(MouseEvent arg0)
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent arg0)
Next, Previous and Month buttons clicked, causes the model to be updated.- Specified by:
actionPerformedin 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:
mousePressedin interfaceMouseListener
-
mouseClicked
public void mouseClicked(MouseEvent arg0)
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent arg0)
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent arg0)
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent arg0)
- Specified by:
mouseReleasedin interfaceMouseListener
-
-