|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.config.swing.MappedOptionsField
public class MappedOptionsField
Allow the user to choose from a combo box.
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 static Logger |
log
The log stream |
Constructor Summary | |
---|---|
MappedOptionsField()
Create an empty MappedOptionsField |
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 static final Logger log
Constructor Detail |
---|
public MappedOptionsField()
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-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |