ppe.gui.networkspec
Interface ChoiceComponent

All Known Implementing Classes:
LabeledTextFieldCC, OtherCC, RadioButtonCC, SpotPriceCC

public interface ChoiceComponent

A JComponent used to specify a choice. Every Choice creates an appropriate ChoiceComponent but a Choicce can supply other information as well (such as a description).


Field Summary
static java.awt.Dimension BUTTON_SIZE
           
static java.awt.Font CHOICE_FONT
           
static java.awt.Font CHOICE_FONT_BOLD
           
static java.awt.Dimension TEXT_FIELD_SIZE
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener actionListener)
           
 javax.swing.JComponent getComponent()
           
 javax.swing.JRadioButton getRadioButton()
           
 boolean isSelected()
           
 void setActionCommand(java.lang.String cmd)
           
 void setEnabled(boolean enabled)
           
 void setSelected(boolean selected)
           
 

Field Detail

BUTTON_SIZE

static final java.awt.Dimension BUTTON_SIZE

CHOICE_FONT

static final java.awt.Font CHOICE_FONT

CHOICE_FONT_BOLD

static final java.awt.Font CHOICE_FONT_BOLD

TEXT_FIELD_SIZE

static final java.awt.Dimension TEXT_FIELD_SIZE
Method Detail

setEnabled

void setEnabled(boolean enabled)

setSelected

void setSelected(boolean selected)

getRadioButton

javax.swing.JRadioButton getRadioButton()

addActionListener

void addActionListener(java.awt.event.ActionListener actionListener)

setActionCommand

void setActionCommand(java.lang.String cmd)

getComponent

javax.swing.JComponent getComponent()

isSelected

boolean isSelected()