|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.config.swing.OptionsField
public class OptionsField
Allow the user to choose from True/False.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private JComboBox |
combo
The component that we are wrapping in a field |
private String[] |
list
The options |
private static Logger |
log
The log stream |
Constructor Summary | |
---|---|
OptionsField()
|
Method Summary | |
---|---|
JComponent |
getComponent()
Get the actual component that we can add to a Panel. |
String |
getValue()
Return a string for use in the properties file |
void |
setChoice(Choice param)
Some fields will need some extra info to display properly like the options in an options field. |
void |
setValue(String value)
Set the current value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JComboBox combo
private String[] list
private static final Logger log
Constructor Detail |
---|
public OptionsField()
Method Detail |
---|
public void setChoice(Choice param)
setChoice
in interface Field
param
- The options provided by the Choicepublic String getValue()
getValue
in interface Field
public void setValue(String value)
setValue
in interface Field
value
- The new textpublic JComponent getComponent()
getComponent
in interface Field
|
Copyright ยจ 2003-2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |