mvc
Class TabbedChooser<T>

java.lang.Object
  extended by mvc.Choice.ControllerImplementation<T,java.lang.String>
      extended by mvc.TabbedChooser<T>
All Implemented Interfaces:
Viewable, Choice.Controller<T>

public class TabbedChooser<T>
extends Choice.ControllerImplementation<T,java.lang.String>

DOCME.


Constructor Summary
TabbedChooser(Choice.Model<? extends T> m, Converter<? super T,? extends java.lang.String> cvtr, int w)
          new TabbedChooser(m, cvtr, w) returns a new TabbedChooser with width w.
TabbedChooser(Choice.Model<? extends T> m, int w)
          new TabbedChooser(m, w) returns a new TabbedChooser with width w.
TabbedChooser(Choice.Model<? extends T> m, Namer<? super T> nmr, int w)
          new TabbedChooser(m, cvtr, w) returns a new TabbedChooser with width w.
 
Method Summary
protected  javax.swing.JComponent createViewComponent()
          tc.createViewComponent() returns the component that displays the choices of tc.
protected  int getViewIndex()
          DOCME.
protected  void setDisplayObjects(java.util.Iterator<java.lang.String> nms)
          tc.setDisplayObjects(nms) sets the displayed choices of tc to the names iterated by nms .
protected  void setViewIndex(int nm)
          tc.setViewIndex(i) sets the choice with view index i as the selected item of tc.
 
Methods inherited from class mvc.Choice.ControllerImplementation
getModel, getViewComponent, setModel, setModelValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabbedChooser

public TabbedChooser(Choice.Model<? extends T> m,
                     int w)
new TabbedChooser(m, w) returns a new TabbedChooser with width w.

Parameters:
m -

TabbedChooser

public TabbedChooser(Choice.Model<? extends T> m,
                     Converter<? super T,? extends java.lang.String> cvtr,
                     int w)
new TabbedChooser(m, cvtr, w) returns a new TabbedChooser with width w.

Parameters:
m -
cvtr -

TabbedChooser

public TabbedChooser(Choice.Model<? extends T> m,
                     Namer<? super T> nmr,
                     int w)
new TabbedChooser(m, cvtr, w) returns a new TabbedChooser with width w.

Parameters:
m -
nmr -
Method Detail

createViewComponent

protected javax.swing.JComponent createViewComponent()
tc.createViewComponent() returns the component that displays the choices of tc.

Specified by:
createViewComponent in class Choice.ControllerImplementation<T,java.lang.String>
Returns:
the view component

setDisplayObjects

protected void setDisplayObjects(java.util.Iterator<java.lang.String> nms)
tc.setDisplayObjects(nms) sets the displayed choices of tc to the names iterated by nms .

Specified by:
setDisplayObjects in class Choice.ControllerImplementation<T,java.lang.String>
Parameters:
nms - the names to be displayed

setViewIndex

protected void setViewIndex(int nm)
tc.setViewIndex(i) sets the choice with view index i as the selected item of tc.

Specified by:
setViewIndex in class Choice.ControllerImplementation<T,java.lang.String>
Parameters:
nm -

getViewIndex

protected int getViewIndex()
DOCME.

Specified by:
getViewIndex in class Choice.ControllerImplementation<T,java.lang.String>
Returns: