A B C D F G H I J M N R S U V

A

actionPerformed(ActionEvent) - Method in class counter.awt.controllers.BasicContr
The action event handler for the buttons in this controller
actionPerformed(ActionEvent) - Method in class counter.awt.controllers.SetContr
The action event handler for the text field in this controller
actionPerformed(ActionEvent) - Method in class counter.swing.controllers.BasicContr
The action event handler for the buttons in this controller
actionPerformed(ActionEvent) - Method in class counter.swing.controllers.SetContr
The action event handler for the text field in this controller
addView(View) - Method in class gvt.mvc.Model
Add a view to the model list.

B

BasicContr - class counter.awt.controllers.BasicContr.
This class implements a panel of buttons to control a counter
BasicContr - class counter.swing.controllers.BasicContr.
This class implements a panel of buttons to control a counter
BasicContr(Counter) - Constructor for class counter.awt.controllers.BasicContr
The Constructor: it build the needed buttons save a reference of the model and hooks the handler for actions on the buttons
BasicContr(Counter) - Constructor for class counter.swing.controllers.BasicContr
The Constructor: it build the needed buttons save a reference of the model and hooks the handler for actions on the buttons

C

clearChanged() - Method in class gvt.mvc.Model
Clear the changed flag.
Counter - class counter.models.Counter.
This class implements the model of a Counter
counter.awt.controllers - package counter.awt.controllers
 
counter.awt.views - package counter.awt.views
 
counter.models - package counter.models
 
counter.swing.controllers - package counter.swing.controllers
 
counter.swing.views - package counter.swing.views
 
Counter() - Constructor for class counter.models.Counter
The Constructor: it resets the counter;
CounterPanel - class counter.awt.views.CounterPanel.
This class implements a label view of a Counter as a panel
CounterPanel - class counter.swing.views.CounterPanel.
This class implements a label view of a Counter as a panel
CounterPanel(String) - Constructor for class counter.awt.views.CounterPanel
The Constructor: it add the labels to the panel
CounterPanel(String) - Constructor for class counter.swing.views.CounterPanel
The Constructor: it add the labels to the panel
CounterTest - class CounterTest.
 
CounterTest() - Constructor for class CounterTest
 
CounterTestApplet - class CounterTestApplet.
 
CounterTestApplet() - Constructor for class CounterTestApplet
 

D

decr() - Method in class counter.models.Counter
decrements the counter

F

FixedLabel - class gvt.awt.FixedLabel.
AWT implementation of fixed size labels
FixedLabel(int) - Constructor for class gvt.awt.FixedLabel
Construct an empty label of width char

G

get() - Method in class counter.models.Counter
get the value of the counter
getPreferredSize() - Method in class gvt.awt.FixedLabel
override root class getPreferredSize
getPreferredSize() - Method in class gvt.swing.JFixedLabel
override root class getPreferredSize
gvt.awt - package gvt.awt
 
gvt.mvc - package gvt.mvc
 
gvt.swing - package gvt.swing
 

H

hasChanged() - Method in class gvt.mvc.Model
Query the changed flag.

I

incr() - Method in class counter.models.Counter
increments the counter
init() - Method in class CounterTestApplet
 
init() - Method in class JCounterTestApplet
 

J

JCounterTest - class JCounterTest.
 
JCounterTest() - Constructor for class JCounterTest
 
JCounterTestApplet - class JCounterTestApplet.
 
JCounterTestApplet() - Constructor for class JCounterTestApplet
 
JFixedLabel - class gvt.swing.JFixedLabel.
Swing implementation of fixed size labels
JFixedLabel(int) - Constructor for class gvt.swing.JFixedLabel
Construct an empty label of width char

M

main(String[]) - Static method in class CounterTest
 
main(String[]) - Static method in class JCounterTest
 
Model - class gvt.mvc.Model.
This class is the superclass of all models
Model() - Constructor for class gvt.mvc.Model
 

N

notifyViews() - Method in class gvt.mvc.Model
Updated all views attached to the model.

R

removeView(View) - Method in class gvt.mvc.Model
Remove a view from the model list.
reset() - Method in class counter.models.Counter
resets the counter to zero

S

set(Number) - Method in class counter.models.Counter
set the counter to a given value
setChanged() - Method in class gvt.mvc.Model
Set the changed flag.
SetContr - class counter.awt.controllers.SetContr.
This class implements a panel with a text field and calls the set method of the counter model This is a "pure" controller
SetContr - class counter.swing.controllers.SetContr.
This class implements a panel with a text field and calls the set method of the counter model This is a "pure" controller
SetContr(Counter) - Constructor for class counter.awt.controllers.SetContr
The Constructor: it build the textfield save a reference of the model and hooks the hander for actions in the text field
SetContr(Counter) - Constructor for class counter.swing.controllers.SetContr
The Constructor: it build the textfield save a reference of the model and hooks the hander for actions in the text field

U

updateView(Model) - Method in interface gvt.mvc.View
The model will call this method to update the view
updateView(Model) - Method in class counter.awt.views.CounterPanel
it will called from the model to update the view
updateView(Model) - Method in class counter.awt.controllers.BasicContr
This controller is also a view when called from the model it sets the enabled status of the decr button
updateView(Model) - Method in class counter.swing.views.CounterPanel
it will called from the model to update the view
updateView(Model) - Method in class counter.swing.controllers.BasicContr
This controller is also a view when called from the model it sets the enabled status of the decr button

V

View - interface gvt.mvc.View.
This interface must be implemented from all Views

A B C D F G H I J M N R S U V