|
||||||||||
| 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
public class InstanceComparePanel
A tool for comparing two datasets visually.
| Nested Class Summary | |
|---|---|
static class |
InstanceComparePanel.DatasetIndexer
Helper class for indexing the rows of a dataset. |
static class |
InstanceComparePanel.DatasetPanel
Specialized panel for loading dataset and setting various parameters. |
| 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 | |
|---|---|
static String |
FILENAME
the name of the props file. |
protected JLabel |
m_LabelRows
the label for the combobox. |
protected BaseList |
m_ListRows
the JLiast with the rows. |
protected DefaultListModel |
m_ListRowsModel
the model for the combobox with the rows. |
protected JMenuBar |
m_MenuBar
the menu bar. |
protected JMenuItem |
m_MenuItemLoadRecent1
the recent file menu item (first file). |
protected JMenuItem |
m_MenuItemLoadRecent2
the recent file menu item (second file). |
protected JMenuItem |
m_MenuItemReload
the reload menu item. |
protected InstancePanel |
m_PanelComparison
the panel for displaying the two instances. |
protected InstanceComparePanel.DatasetPanel |
m_PanelDataset1
the panel for the first dataset. |
protected InstanceComparePanel.DatasetPanel |
m_PanelDataset2
the panel for the second dataset. |
protected InstancePanel |
m_PanelDifference
the panel with the difference. |
protected static Properties |
m_Properties
the properties. |
protected RecentFilesHandler |
m_RecentFilesHandler1
the recent files handler. |
protected RecentFilesHandler |
m_RecentFilesHandler2
the recent files handler. |
protected ReportFactory.Table |
m_ReportTable
the table with the report. |
protected List<String> |
m_RowIndex
the internal index. |
protected BaseStatusBar |
m_StatusBar
for displaying error messages. |
static String |
SESSION_FILE_1
the file to store the recent files in (first file). |
static String |
SESSION_FILE_2
the file to store the recent files in (second file). |
| 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()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
void |
close()
closes the dialog/frame. |
String |
getFirstAttributeRange()
Returns the first attribute range. |
File |
getFirstDataset()
Returns the first dataset. |
String |
getFirstRowIndex()
Returns the first row index. |
JMenuBar |
getMenuBar()
Creates a menu bar (singleton per panel object). |
static Properties |
getProperties()
Returns the properties that define the editor. |
String |
getSecondAttributeRange()
Returns the second attribute range. |
File |
getSecondDataset()
Returns the second dataset. |
String |
getSecondRowIndex()
Returns the second row index. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
protected void |
performComparison()
Performs the comparison between the rows from the two datasets. |
void |
reload()
Reloads the datasets. |
void |
setFirstAttributeRange(String value)
Sets the first attribute range ('first' and 'last' can be used as well). |
void |
setFirstDataset(File value)
Sets the first dataset. |
void |
setFirstRowIndex(String value)
Sets the first row index ('first' and 'last' can be used as well). |
void |
setSecondAttributeRange(String value)
Sets the second attribute range ('second' and 'last' can be used as well). |
void |
setSecondDataset(File value)
Sets the second dataset. |
void |
setSecondRowIndex(String value)
Sets the second row index ('second' and 'last' can be used as well). |
void |
showStatus(String msg)
Displays a message. |
protected List<String> |
trimIDs(List<String> list)
Removes the leading 0s. |
protected void |
updateMenu()
updates the enabled state of the menu items. |
protected void |
updateRows()
Updates the combobox with the rows. |
| 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 |
|---|
public static final String FILENAME
public static final String SESSION_FILE_1
public static final String SESSION_FILE_2
protected static Properties m_Properties
protected InstanceComparePanel.DatasetPanel m_PanelDataset1
protected InstanceComparePanel.DatasetPanel m_PanelDataset2
protected InstancePanel m_PanelComparison
protected InstancePanel m_PanelDifference
protected JLabel m_LabelRows
protected BaseList m_ListRows
protected DefaultListModel m_ListRowsModel
protected ReportFactory.Table m_ReportTable
protected BaseStatusBar m_StatusBar
protected List<String> m_RowIndex
protected JMenuBar m_MenuBar
protected JMenuItem m_MenuItemReload
protected JMenuItem m_MenuItemLoadRecent1
protected JMenuItem m_MenuItemLoadRecent2
protected RecentFilesHandler m_RecentFilesHandler1
protected RecentFilesHandler m_RecentFilesHandler2
| Constructor Detail |
|---|
public InstanceComparePanel()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelpublic JMenuBar getMenuBar()
getMenuBar in interface MenuBarProviderprotected void updateMenu()
public void reload()
public void close()
protected List<String> trimIDs(List<String> list)
list - the list to process
protected void updateRows()
protected void performComparison()
public void showStatus(String msg)
showStatus in interface StatusMessageHandlermsg - the message to displaypublic void setFirstDataset(File value)
value - the first datasetpublic File getFirstDataset()
public void setFirstAttributeRange(String value)
value - the attribute rangepublic String getFirstAttributeRange()
public void setFirstRowIndex(String value)
value - the index of the row attributepublic String getFirstRowIndex()
public void setSecondDataset(File value)
value - the second datasetpublic File getSecondDataset()
public void setSecondAttributeRange(String value)
value - the attribute rangepublic String getSecondAttributeRange()
public void setSecondRowIndex(String value)
value - the index of the row attributepublic String getSecondRowIndex()
public void cleanUp()
cleanUp in interface CleanUpHandlerpublic static Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||