public abstract class Model<T> extends Object
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
void |
addModelListener(ModelListener<T> listener) |
void |
clear()
Clears this model underlying representation.
|
protected void |
clearImpl()
Called by
clear() before fireModelCleared() , for
implementations that want to specialise their clear()
method without the need to reimplement the event logic. |
protected void |
fireModelCleared() |
protected void |
fireModelUpdate(T data) |
protected abstract T |
getData() |
void |
rebuild()
Rebuilds this model underlying representation.
|
protected void |
rebuildImpl() |
void |
removeModelListener(ModelListener<T> listener) |
public void addModelListener(ModelListener<T> listener)
public void removeModelListener(ModelListener<T> listener)
protected abstract T getData()
public void rebuild()
ModelListener.modelRebuilt(Model, Object)
event.protected void rebuildImpl()
public void clear()
ModelListener.modelCleared(Model)
event.protected void clearImpl()
clear()
before fireModelCleared()
, for
implementations that want to specialise their clear()
method without the need to reimplement the event logic.protected void fireModelUpdate(T data)
protected void fireModelCleared()
Copyright © 2017. All rights reserved.