class EventLogManagerController.FooterAreaButtonActionListener extends Object implements ActionListener
ActionListener
for defining the
actionPerformed(ActionEvent)
method and creating a specific listener to use on the
FooterAreaButton
buttons.
Every FooterAreaButton
button is connected to a specific JInternalFrame
frame through this
listener that gives to the button the possibility to minimise, maximise or select
the connected frame by simply pressing it.
ActionListener
,
ActionEvent
,
FooterAreaButton
,
JInternalFrame
Constructor and Description |
---|
FooterAreaButtonActionListener() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
public void actionPerformed(ActionEvent e)
FooterAreaButton
button generates the action event, then it checks the state of the linked JInternalFrame
frame and implements the respective action to apply to this frame, according to its state.
If the frame is minimised, the method maximises it; if the frame is maximised and selected, the method minimises it; if the frame is maximised but not selected, the method set it as selected.
actionPerformed
in interface ActionListener
e
- the action event generated by a componentJInternalFrame
,
ActionEvent
,
FooterAreaButton