|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.chooser.AbstractChooserPanel<File>
adams.gui.chooser.FileChooserPanel
adams.gui.chooser.DatasetFileChooserPanel
public class DatasetFileChooserPanel
A panel that contains a text field with the current file and a button for bringing up a ConverterFileChooser.
ConverterFileChooser,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.gui.chooser.AbstractChooserPanel |
|---|
AbstractChooserPanel.PopupMenuCustomizer |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected weka.gui.ConverterFileChooser |
m_FileChooser
the filechooser for selecting the dataset. |
protected weka.core.converters.AbstractFileLoader |
m_Loader
the current loader. |
protected weka.core.converters.AbstractFileSaver |
m_Saver
the current saver. |
| Fields inherited from class adams.gui.chooser.FileChooserPanel |
|---|
m_UseSaveDialog |
| Fields inherited from class adams.gui.chooser.AbstractChooserPanel |
|---|
m_ButtonSelection, m_ChangeListeners, m_LabelPrefix, m_LabelPrefixSpacer, m_PopupMenuCustomizer, m_Self, m_TextSelection |
| 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 | |
|---|---|
DatasetFileChooserPanel()
Initializes the panel with no file. |
|
DatasetFileChooserPanel(File path)
Initializes the panel with the given filename/directory. |
|
DatasetFileChooserPanel(String path)
Initializes the panel with the given filename/directory. |
|
| Method Summary | |
|---|---|
protected File |
doChoose()
Performs the actual choosing of an object. |
File |
getCurrentDirectory()
Returns the current directory in use by the file chooser. |
weka.core.converters.AbstractFileLoader |
getLoader()
Returns the current loader. |
weka.core.converters.AbstractFileSaver |
getSaver()
Returns the current saver. |
protected void |
initialize()
Initializes the members. |
protected void |
initializeConverters(File path)
Initializes the converters. |
boolean |
setCurrent(File value)
Sets the current value. |
void |
setCurrentDirectory(File value)
Sets the current directory to use for the file chooser. |
| Methods inherited from class adams.gui.chooser.AbstractChooserPanel |
|---|
addChangeListener, choose, cleanUp, copyToClipboard, fireCurrentValueChanged, getCurrent, getDefaultString, getPopupMenu, getPopupMenuCustomizer, getPrefix, getPrefixLabel, getSelectionColumns, getTextColumns, grabFocus, hasValue, initGUI, notifyChangeListeners, pasteFromClipboard, removeChangeListener, setEnabled, setPopupMenuCustomizer, setPrefix, setTextColumns, updatePreferredSize |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| 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 weka.gui.ConverterFileChooser m_FileChooser
protected weka.core.converters.AbstractFileLoader m_Loader
protected weka.core.converters.AbstractFileSaver m_Saver
| Constructor Detail |
|---|
public DatasetFileChooserPanel()
public DatasetFileChooserPanel(String path)
path - the filename/directory to usepublic DatasetFileChooserPanel(File path)
path - the filename/directory to use| Method Detail |
|---|
protected void initializeConverters(File path)
path - the path/filename to useprotected void initialize()
initialize in class FileChooserPanelprotected File doChoose()
doChoose in class FileChooserPanelpublic weka.core.converters.AbstractFileLoader getLoader()
public weka.core.converters.AbstractFileSaver getSaver()
public void setCurrentDirectory(File value)
setCurrentDirectory in class FileChooserPanelvalue - the current directorypublic File getCurrentDirectory()
getCurrentDirectory in class FileChooserPanelpublic boolean setCurrent(File value)
setCurrent in class FileChooserPanelvalue - the value to use, can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||