|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfinitewisdom.view.ViewConfig
gamedom1.view.ViewConfigDom1
public class ViewConfigDom1
I pasted the whole source code of this class, as it's really short and shows well how to use it and its parent.
public class ViewConfigDom1 extends ViewConfig{
// This gets initialized in parent class
// HashMap modelViewMap.put = new HashMap();
public ViewConfigDom1() {
modelViewMap.put(Swordsman.class,SwordsmanView.class );
modelViewMap.put(Archer.class,ArcherView.class );
}
}
| Field Summary |
|---|
| Fields inherited from class infinitewisdom.view.ViewConfig |
|---|
modelViewMap |
| Constructor Summary | |
|---|---|
ViewConfigDom1()
|
|
| Method Summary |
|---|
| Methods inherited from class infinitewisdom.view.ViewConfig |
|---|
createViewForNewUnits, getModelViewMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewConfigDom1()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||