|
||||||||||
| 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.visualization.instance.InstanceComparePanel.DatasetPanel
public static class InstanceComparePanel.DatasetPanel
Specialized panel for loading dataset and setting various parameters.
| Nested Class Summary |
|---|
| 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 String |
m_BorderTitle
the border title. |
protected JButton |
m_ButtonDisplay
the button for displaying the dataset. |
protected HashSet<ChangeListener> |
m_ChangeListeners
the change listeners. |
protected JComboBox |
m_ComboBoxRowAttribute
the combobox with the attribute names. |
protected DefaultComboBoxModel |
m_ComboBoxRowAttributeModel
the underlying model for the comboxbox. |
protected String |
m_ID
the ID to use for the returned instances. |
protected InstanceComparePanel.DatasetIndexer |
m_Indexer
the currently loaded dataset. |
protected JLabel |
m_LabelAttributeRange
the label for the range. |
protected JLabel |
m_LabelRowAttribute
the label for the attribute names. |
protected DatasetFileChooserPanel |
m_PanelDataset
the panel for loading the file. |
protected JTextField |
m_TextAttributeRange
the edit field for the range. |
| 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 | |
|---|---|
InstanceComparePanel.DatasetPanel(String title,
String id)
Initializes the panel. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds the change listener to the internal list. |
protected void |
displayDataset()
Displays the dataset in a separate window. |
void |
fireSetupChanged()
Fires a ChangeEvent that the setup has changed. |
String |
getAttributeRange()
Returns the current range of attributes. |
String |
getBorderTitle()
Returns the title of the border. |
File |
getDataset()
Return the currently selected dataset. |
String |
getID()
Returns the ID to use for the returned instances. |
Instance |
getRow(String row)
Returns the row to display. |
String |
getRowIndex()
Returns the currently selected. |
List<String> |
getRows()
Returns a list of row IDs. |
boolean |
hasDataset()
Checks whether an existing file has been set. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
boolean |
isString()
Returns whether the index values are nominal/string or numeric. |
protected void |
loadDataset()
Loads the dataset, if possible. |
protected void |
notifyChangeListeners(ChangeEvent e)
Sends the event to all change listeners. |
void |
reload()
Reloads the currently loaded dataset. |
void |
removeChangeListener(ChangeListener l)
Removes the change listener from the internal list. |
void |
setAttributeRange(String value)
Sets the range of attributes. |
void |
setBorderTitle(String value)
Sets the title of the border. |
void |
setDataset(File value)
Sets the dataset to use. |
void |
setID(String value)
Sets the ID to use for the returned instances. |
void |
setRowIndex(String value)
Sets the index of the attribute to use for matching rows (only works if dataset already loaded). |
protected void |
update()
Updates buttons, etc. |
| 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 InstanceComparePanel.DatasetIndexer m_Indexer
protected String m_BorderTitle
protected String m_ID
protected DatasetFileChooserPanel m_PanelDataset
protected JButton m_ButtonDisplay
protected JTextField m_TextAttributeRange
protected JLabel m_LabelAttributeRange
protected JComboBox m_ComboBoxRowAttribute
protected DefaultComboBoxModel m_ComboBoxRowAttributeModel
protected JLabel m_LabelRowAttribute
protected HashSet<ChangeListener> m_ChangeListeners
| Constructor Detail |
|---|
public InstanceComparePanel.DatasetPanel(String title,
String id)
title - the title of the borderid - the ID for the returned instances| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelpublic void setBorderTitle(String value)
value - the titlepublic String getBorderTitle()
public void setID(String value)
value - the IDpublic String getID()
public void setDataset(File value)
value - the datasetpublic File getDataset()
public boolean hasDataset()
public void setAttributeRange(String value)
value - the rangepublic String getAttributeRange()
public void setRowIndex(String value)
value - the index (1-based, first and last OK as well), use ""
to not use a specific attribute.public String getRowIndex()
protected void update()
public void reload()
protected void loadDataset()
protected void displayDataset()
public List<String> getRows()
public Instance getRow(String row)
row - the ID of the row to retrieve
public boolean isString()
public void addChangeListener(ChangeListener l)
l - the listener to addpublic void removeChangeListener(ChangeListener l)
l - the listener to removeprotected void notifyChangeListeners(ChangeEvent e)
e - the event to sendpublic void fireSetupChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||