net.beadsproject.beads.gui
Class Chooser
java.lang.Object
net.beadsproject.beads.gui.Chooser
- All Implemented Interfaces:
- InterfaceElement
public class Chooser
- extends java.lang.Object
- implements InterfaceElement
Field Summary |
protected int |
choice
|
protected java.util.List<java.lang.String> |
elements
|
Constructor Summary |
Chooser(java.lang.String label)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected java.util.List<java.lang.String> elements
choice
protected int choice
Chooser
public Chooser(java.lang.String label)
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)