net.beadsproject.beads.gui
Class Chooser

java.lang.Object
  extended by net.beadsproject.beads.gui.Chooser
All Implemented Interfaces:
InterfaceElement

public class Chooser
extends java.lang.Object
implements InterfaceElement


Nested Class Summary
static interface Chooser.ChooserListener
           
 
Field Summary
protected  int choice
           
protected  java.util.List<java.lang.String> elements
           
 
Constructor Summary
Chooser(java.lang.String label)
           
 
Method Summary
 void add(java.lang.String s)
           
 void clear()
           
 int getBoxHeight()
           
 int getBoxWidth()
           
 java.lang.String getChoice()
           
 javax.swing.JComponent getComponent()
           
 java.lang.String getLabel()
           
 Chooser.ChooserListener getListener()
           
 void refreshList()
           
 void repaint()
           
static Chooser sampleChooserFromGroupChooser(Chooser groupChooser)
           
static Chooser sampleGroupChooser()
           
 void setBoxHeight(int boxHeight)
           
 void setBoxWidth(int boxWidth)
           
 void setChoice(int c)
           
 void setChoice(java.lang.String group)
           
 void setListener(Chooser.ChooserListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected java.util.List<java.lang.String> elements

choice

protected int choice
Constructor Detail

Chooser

public Chooser(java.lang.String label)
Method Detail

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface InterfaceElement

refreshList

public void refreshList()

add

public void add(java.lang.String s)

getBoxHeight

public int getBoxHeight()

setBoxHeight

public void setBoxHeight(int boxHeight)

getBoxWidth

public int getBoxWidth()

setBoxWidth

public void setBoxWidth(int boxWidth)

getListener

public Chooser.ChooserListener getListener()

setListener

public void setListener(Chooser.ChooserListener listener)

getLabel

public java.lang.String getLabel()

setChoice

public void setChoice(int c)

setChoice

public void setChoice(java.lang.String group)

getChoice

public java.lang.String getChoice()

clear

public void clear()

repaint

public void repaint()

sampleGroupChooser

public static Chooser sampleGroupChooser()

sampleChooserFromGroupChooser

public static Chooser sampleChooserFromGroupChooser(Chooser groupChooser)