|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
adams.gui.goe.AbstractPropertyEditorSupport
adams.gui.goe.WekaExperimentFileEditor
public class WekaExperimentFileEditor
A PropertyEditor for WekaExperimentFile objects that lets the user select a file.
| Nested Class Summary | |
|---|---|
static class |
WekaExperimentFileEditor.SimpleSetupDialog
A dialog for displaying the simple setup of an experiment. |
| Field Summary | |
|---|---|
protected JButton |
m_ButtonCancel
the Cancel button. |
protected JButton |
m_ButtonEdit
the button to bring up the dialog for editing the experiment. |
protected JButton |
m_ButtonOK
the OK button. |
protected BasePanel |
m_PanelEditor
the editor panel. |
protected FileChooserPanel |
m_PanelFile
the panel for selecting the experiment file. |
| Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
APPROVE_OPTION, CANCEL_OPTION, m_ChosenOption, m_CustomEditor, m_WindowAdapter |
| Constructor Summary | |
|---|---|
WekaExperimentFileEditor()
|
|
| Method Summary | |
|---|---|
protected JComponent |
createCustomEditor()
Gets the custom editor component. |
Object |
fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation. |
String |
getInlineValue()
Returns the current value. |
String |
getJavaInitializationString()
Returns a representation of the current property value as java source. |
protected void |
initForDisplay()
Initializes the display of the value. |
boolean |
isInlineEditingAvailable()
Checks whether inline editing is available. |
boolean |
isInlineValueValid(String value)
Checks whether the value id valid. |
static weka.experiment.Experiment |
newExperiment()
Generates a new (simple) experiment. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current Object. |
void |
setInlineValue(String value)
Sets the value to use. |
String |
toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object. |
static String |
toString(AbstractOption option,
Object object)
Returns the file as string. |
static Object |
valueOf(AbstractOption option,
String str)
Returns a file generated from the string. |
| Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
addWindowAdapter, cleanUp, closeDialog, createPopup, createWindowAdapter, getChosenOption, getCustomEditor, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FileChooserPanel m_PanelFile
protected BasePanel m_PanelEditor
protected JButton m_ButtonEdit
protected JButton m_ButtonOK
protected JButton m_ButtonCancel
| Constructor Detail |
|---|
public WekaExperimentFileEditor()
| Method Detail |
|---|
public static String toString(AbstractOption option,
Object object)
option - the current optionobject - the file object to convert
public static Object valueOf(AbstractOption option,
String str)
option - the current optionstr - the string to convert to a file
public String toCustomStringRepresentation(Object obj)
toCustomStringRepresentation in interface CustomStringRepresentationHandlerobj - the object to turn into a string
public Object fromCustomStringRepresentation(String str)
fromCustomStringRepresentation in interface CustomStringRepresentationHandlerstr - the string to turn into an object
public static weka.experiment.Experiment newExperiment()
public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportprotected JComponent createCustomEditor()
createCustomEditor in class AbstractPropertyEditorSupportprotected void initForDisplay()
initForDisplay in class AbstractPropertyEditorSupport
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorpaintValue in class PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint intopublic boolean isInlineEditingAvailable()
isInlineEditingAvailable in interface InlineEditorSupportpublic void setInlineValue(String value)
setInlineValue in interface InlineEditorSupportvalue - the value to usepublic String getInlineValue()
getInlineValue in interface InlineEditorSupportpublic boolean isInlineValueValid(String value)
isInlineValueValid in interface InlineEditorSupportvalue - the value to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||