|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmvc.Choice.ControllerImplementation<TC,TD>
public abstract static class Choice.ControllerImplementation<TC,TD>
Concrete subclasses should retain TC as a parameter but should replace TD in the class declaration and all of its method declarations with a non-generic class that can be displayed by the subclass.
| Constructor Summary | |
|---|---|
Choice.ControllerImplementation(Choice.Model<? extends TC> m,
Converter<? super TC,? extends TD> cvtr)
new Controller(m, cvtr) returns a new Controller for the values of m. |
|
| Method Summary | |
|---|---|
protected abstract javax.swing.JComponent |
createViewComponent()
|
Choice.Model<? extends TC> |
getModel()
DOCME. |
javax.swing.JComponent |
getViewComponent()
DOCME. |
protected abstract int |
getViewIndex()
DOCME. |
protected abstract void |
setDisplayObjects(java.util.Iterator<TD> nms)
Concrete subclasses should implement setDisplayObjects() to record and display objects from nms. |
void |
setModel(Choice.Model<? extends TC> m)
DOCME. |
protected void |
setModelValue()
DOCME. |
protected abstract void |
setViewIndex(int indx)
DOCME. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Choice.ControllerImplementation(Choice.Model<? extends TC> m,
Converter<? super TC,? extends TD> cvtr)
m - cvtr - | Method Detail |
|---|
protected abstract javax.swing.JComponent createViewComponent()
protected abstract void setDisplayObjects(java.util.Iterator<TD> nms)
nms - protected abstract void setViewIndex(int indx)
indx - protected abstract int getViewIndex()
protected final void setModelValue()
public javax.swing.JComponent getViewComponent()
getViewComponent in interface Viewablepublic void setModel(Choice.Model<? extends TC> m)
setModel in interface Choice.Controller<TC>m - public Choice.Model<? extends TC> getModel()
getModel in interface Choice.Controller<TC>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||