public abstract class History
extends java.lang.Object
FileHistory
and DataSourceHistory
These history classes are used to show a history list in the File
menu so, once the user has loaded some file, they can easily reload the file.Constructor and Description |
---|
History()
Parameterless ctor for xml encoding/decoding
|
History(java.lang.String name)
Create this History object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Override the equals method
|
static History |
findWithAlias(java.lang.String alias,
java.util.List historyList,
java.lang.Class theClass)
Search the given list for a PC object that has the given alias.
|
java.lang.String |
getAlias()
Get the Alias property.
|
java.lang.String |
getName()
Get the Name property.
|
boolean |
hasAlias()
Does this object have an alias.
|
int |
hashCode()
Override the hashcode method.
|
abstract boolean |
process(IntegratedDataViewer idv)
Create the data source (or load the file) represented by this object.
|
void |
setAlias(java.lang.String value)
Set the Alias property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
java.lang.String |
toString()
Override the toString method
|
public History()
public History(java.lang.String name)
name
- The namepublic boolean hasAlias()
public abstract boolean process(IntegratedDataViewer idv)
idv
- The idvpublic void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.String getName()
public void setAlias(java.lang.String value)
value
- The new value for Aliaspublic java.lang.String getAlias()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The other objectpublic static History findWithAlias(java.lang.String alias, java.util.List historyList, java.lang.Class theClass)
alias
- The alias to serach for.historyList
- The list of History objectstheClass
- If non-null then only find History objects of the given theClass