Class Controller
- java.lang.Object
-
- java.util.Observable
-
- net.ssehub.easy.producer.core.mgmt.Controller
-
- Direct Known Subclasses:
MemberController
public abstract class Controller extends java.util.ObservableParent-class for all controller-classes. Every controller which changes the model should inherit this class to make it observable.- Author:
- Kapeluch
-
-
Constructor Summary
Constructors Constructor Description Controller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchanged()Notifies all observers.voidchanged(java.lang.Object oldValue, java.lang.Object newValue)Overloaded method for notification including the comparison of old and new value.
-
-
-
Method Detail
-
changed
public void changed()
Notifies all observers.
-
changed
public void changed(java.lang.Object oldValue, java.lang.Object newValue)Overloaded method for notification including the comparison of old and new value. Notification will only be applied if newValue differs from oldValue.- Parameters:
oldValue- The old value (before a change is done).newValue- The new value (should differ from the oldValue, otherwise this method will no fire a change event).
-
-