M - the generic type of the modelV - the generic type of the viewpublic abstract class AbstractGenericController<M,V> extends Object implements Controller<M,V>, ActionListener
| Constructor and Description |
|---|
AbstractGenericController()
Instantiates a new abstract generic controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event)
(non-Javadoc).
|
Controller<M,V> |
getChild(String key)
(non-Javadoc).
|
Map<String,Controller<M,V>> |
getChildren()
(non-Javadoc).
|
M |
getModel()
(non-Javadoc).
|
String |
getName()
Gets the name from the Controller.
|
Controller<M,V> |
getParent()
(non-Javadoc).
|
V |
getView()
(non-Javadoc).
|
boolean |
hasChild(Controller<M,V> controller)
(non-Javadoc).
|
boolean |
hasChild(String key)
(non-Javadoc).
|
protected void |
initialize()
Initialize.
|
protected void |
postinitialize()
Postinitialize.
|
protected void |
preinitialize()
Preinitialize.
|
abstract void |
process(ActionEvent event)
Process.
|
Controller<M,V> |
removeChild(Controller<M,V> controller)
(non-Javadoc).
|
Controller<M,V> |
removeChild(String key)
(non-Javadoc).
|
Object |
setChild(String key,
Controller<M,V> controller)
(non-Javadoc).
|
void |
setModel(M model)
(non-Javadoc).
|
void |
setParent(Controller<M,V> controller)
(non-Javadoc).
|
void |
setView(V view)
(non-Javadoc).
|
public AbstractGenericController()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - the eventActionListener.actionPerformed(java.awt.event.ActionEvent)public Controller<M,V> getChild(String key)
getChild in interface Controller<M,V>key - the keypublic Map<String,Controller<M,V>> getChildren()
getChildren in interface Controller<M,V>public M getModel()
getModel in interface Controller<M,V>public String getName()
ControllergetName in interface Controller<M,V>public Controller<M,V> getParent()
getParent in interface Controller<M,V>public V getView()
getView in interface Controller<M,V>public boolean hasChild(Controller<M,V> controller)
hasChild in interface Controller<M,V>controller - the controllerpublic boolean hasChild(String key)
hasChild in interface Controller<M,V>key - the keyprotected void initialize()
protected void postinitialize()
protected void preinitialize()
public abstract void process(ActionEvent event)
process in interface Controller<M,V>event - the eventpublic Controller<M,V> removeChild(Controller<M,V> controller)
removeChild in interface Controller<M,V>controller - the controllerpublic Controller<M,V> removeChild(String key)
removeChild in interface Controller<M,V>key - the keypublic Object setChild(String key, Controller<M,V> controller)
setChild in interface Controller<M,V>key - the keycontroller - the controllerpublic void setModel(M model)
setModel in interface Controller<M,V>model - the modelpublic void setParent(Controller<M,V> controller)
setParent in interface Controller<M,V>controller - the controllerpublic void setView(V view)
setView in interface Controller<M,V>view - the viewCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.