|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.gui.option.OptionUI<FileOption>
net.sf.freecol.client.gui.option.FileOptionUI
public final class FileOptionUI
This class provides visualization for an FileOption. In order to enable values
to be both seen and changed.
| Field Summary | |
|---|---|
private javax.swing.JTextField |
fileField
|
private javax.swing.JPanel |
panel
|
| Fields inherited from class net.sf.freecol.client.gui.option.OptionUI |
|---|
gui |
| Constructor Summary | |
|---|---|
FileOptionUI(GUI gui,
FileOption option,
boolean editable)
Creates a new FileOptionUI for the given
FileOption. |
|
| Method Summary | |
|---|---|
javax.swing.JPanel |
getComponent()
Get the Component used to set the value of the
Option. |
void |
reset()
Reset the value of the UI's component from the Option. |
void |
setValue(java.io.File f)
Sets the value of this UI's component. |
void |
updateOption()
Update the value of the Option from the UI's component. |
| Methods inherited from class net.sf.freecol.client.gui.option.OptionUI |
|---|
getLabel, getListCellRenderer, getOption, getOptionUI, initialize, isEditable, setEditable, setLabel, setOption |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.JPanel panel
private final javax.swing.JTextField fileField
| Constructor Detail |
|---|
public FileOptionUI(GUI gui,
FileOption option,
boolean editable)
FileOptionUI for the given
FileOption.
option - The FileOption to make a user interface for.editable - boolean whether user can modify the setting| Method Detail |
|---|
public void setValue(java.io.File f)
public javax.swing.JPanel getComponent()
Component used to set the value of the
Option.
getComponent in class OptionUI<FileOption>JComponent valuepublic void updateOption()
updateOption in interface OptionUpdaterupdateOption in class OptionUI<FileOption>public void reset()
reset in interface OptionUpdaterreset in class OptionUI<FileOption>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||