public class Observable extends Object
Constructor and Description |
---|
Observable()
Observable
|
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer observer) |
protected void |
clearChanged()
clearChanged
|
int |
countObservers() |
void |
deleteObserver(Observer observer) |
void |
deleteObservers()
deleteObservers
|
boolean |
hasChanged() |
void |
notifyObservers()
notifyObservers
|
void |
notifyObservers(Object obj) |
protected void |
setChanged()
setChanged
|
public void addObserver(Observer observer)
observer
- ?protected void clearChanged()
public int countObservers()
public void deleteObserver(Observer observer)
observer
- ?public void deleteObservers()
public boolean hasChanged()
public void notifyObservers()
public void notifyObservers(Object obj)
obj
- ?protected void setChanged()