|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--weka.gui.experiment.DatasetListPanel
This panel controls setting a list of datasets for an experiment to iterate over.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JButton |
m_AddBut
Click to add a dataset |
protected FileFilter |
m_ArffFilter
A filter to ensure only arff files get selected |
protected JButton |
m_DeleteBut
Click to remove the selected dataset from the list |
protected Experiment |
m_Exp
The experiment to set the dataset list of |
protected JFileChooser |
m_FileChooser
The file chooser component |
protected JList |
m_List
The component displaying the dataset list |
protected JCheckBox |
m_relativeCheck
Make file paths relative to the user (start) directory |
protected File |
m_UserDir
The user (start) directory |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
DatasetListPanel()
Create the dataset list panel initially disabled. |
|
DatasetListPanel(Experiment exp)
Creates the dataset list panel with the given experiment. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Handle actions when buttons get pressed. |
protected File |
convertToRelativePath(File absolute)
Converts a File's absolute path to a path relative to the user (ie start) directory |
protected void |
getFilesRecursively(File directory,
Vector files)
Gets all the files in the given directory that match the currently selected extension. |
static void |
main(String[] args)
Tests out the dataset list panel from the command line. |
void |
setExperiment(Experiment exp)
Tells the panel to act on a new experiment. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Experiment m_Exp
protected JList m_List
protected JButton m_AddBut
protected JButton m_DeleteBut
protected JCheckBox m_relativeCheck
protected FileFilter m_ArffFilter
protected File m_UserDir
protected JFileChooser m_FileChooser
Constructor Detail |
public DatasetListPanel(Experiment exp)
exp
- a value of type 'Experiment'public DatasetListPanel()
Method Detail |
public void setExperiment(Experiment exp)
exp
- a value of type 'Experiment'protected void getFilesRecursively(File directory, Vector files)
protected File convertToRelativePath(File absolute) throws Exception
absolute
- the File to convert to relative path
Exception
- if the path cannot be constructedpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- a value of type 'ActionEvent'public static void main(String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |