Class TextDirectoryLoaderContainer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.data.AbstractDataContainer
-
- adams.gui.tools.wekainvestigator.data.TextDirectoryLoaderContainer
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.gui.core.UndoHandler
,adams.gui.core.UndoHandlerWithQuickAccess
,adams.gui.event.UndoListener
,DataContainer
,Serializable
,Comparable<DataContainer>
,EventListener
public class TextDirectoryLoaderContainer extends AbstractDataContainer
Dataset generated by TextDirectoryLoader.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.core.converters.TextDirectoryLoader
m_Loader
the generator used to load the data.-
Fields inherited from class adams.gui.tools.wekainvestigator.data.AbstractDataContainer
m_Data, m_ID, m_IDCounter, m_LastUpdated, m_Modified, m_Undo
-
-
Constructor Summary
Constructors Constructor Description TextDirectoryLoaderContainer(weka.core.converters.TextDirectoryLoader loader)
Loads the data using the specified loader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyUndoData(Serializable[] data)
Restores the data from the undo point.boolean
canReload()
Whether it is possible to reload this item.void
cleanUp()
Cleans up data structures, frees up memory.protected String
doReload()
Reloads the data.String
getSource()
Returns the source of the data item.protected Serializable[]
getUndoData()
Returns the data to store in the undo.-
Methods inherited from class adams.gui.tools.wekainvestigator.data.AbstractDataContainer
addUndoPoint, compareTo, equals, getData, getID, getUndo, handleException, isModified, isUndoSupported, lastUpdated, nextID, redo, reload, setData, setModified, setUndo, toString, undo, undoOccurred
-
-
-
-
Method Detail
-
getSource
public String getSource()
Returns the source of the data item.- Returns:
- the source
-
canReload
public boolean canReload()
Whether it is possible to reload this item.- Returns:
- true if reloadable
-
doReload
protected String doReload()
Reloads the data.- Specified by:
doReload
in classAbstractDataContainer
- Returns:
- null if successfully reloaded, otherwise error message
-
getUndoData
protected Serializable[] getUndoData()
Returns the data to store in the undo.- Overrides:
getUndoData
in classAbstractDataContainer
- Returns:
- the undo point
-
applyUndoData
protected void applyUndoData(Serializable[] data)
Restores the data from the undo point.- Overrides:
applyUndoData
in classAbstractDataContainer
- Parameters:
data
- the undo point
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classAbstractDataContainer
-
-