Package adams.gui.tools.wekainvestigator
Class InvestigatorWorkspaceHelper
- java.lang.Object
-
- adams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
-
- adams.gui.tools.wekainvestigator.InvestigatorWorkspaceHelper
-
public class InvestigatorWorkspaceHelper extends adams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
Helper class for Weka Investigator workspaces.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_CLASSATTRIBUTE
static String
KEY_DATA
static String
KEY_RELATIONNAME
static String
KEY_TABS
static String
KEY_UNDOENABLED
-
Constructor Summary
Constructors Constructor Description InvestigatorWorkspaceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(InvestigatorPanel panel, Object data, adams.core.MessageCollection errors)
Deserializes the data and configures the panel.Object
serialize(InvestigatorPanel panel)
Generates a view of the panel that can be serialized.
-
-
-
Field Detail
-
KEY_DATA
public static final String KEY_DATA
- See Also:
- Constant Field Values
-
KEY_TABS
public static final String KEY_TABS
- See Also:
- Constant Field Values
-
KEY_CLASSATTRIBUTE
public static final String KEY_CLASSATTRIBUTE
- See Also:
- Constant Field Values
-
KEY_RELATIONNAME
public static final String KEY_RELATIONNAME
- See Also:
- Constant Field Values
-
KEY_UNDOENABLED
public static final String KEY_UNDOENABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
public Object serialize(InvestigatorPanel panel)
Generates a view of the panel that can be serialized.- Specified by:
serialize
in classadams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
- Parameters:
panel
- the panel to serialize- Returns:
- the data to serialize
-
deserialize
public void deserialize(InvestigatorPanel panel, Object data, adams.core.MessageCollection errors)
Deserializes the data and configures the panel.- Specified by:
deserialize
in classadams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
- Parameters:
panel
- the panel to updatedata
- the serialized data to restore the panel witherrors
- for storing errors
-
-