de.jface.remind.core
Class NoteMetaData
java.lang.Object
|
+--de.jface.remind.core.NoteMetaData
- public class NoteMetaData
- extends java.lang.Object
Interface NoteMetaData
of project RemotePostIt.
- Version:
- $Revision: 1.1 $
- Author:
- Moritz Petersen
Constructor Summary |
NoteMetaData()
Creates a new NoteMetaData object with a new unique
number. |
NoteMetaData(long uniqueNumber,
java.util.Date dateOfCreation)
Creates a new NoteMetaData object with the given unique number.
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NoteMetaData
public NoteMetaData()
- Creates a new NoteMetaData object with a new unique
number.
NoteMetaData
public NoteMetaData(long uniqueNumber,
java.util.Date dateOfCreation)
throws IllegalUniqueNumberException
- Creates a new NoteMetaData object with the given unique number.
This constructor is used to reproduce already created
instances of NoteMetaData. It should be used when unmarshalling
this object form the persistance storage.
- Parameters:
uniqueNumber
- the unique number that is assigned
to the new NoteMetaData instance.
getUniqueNumber
public long getUniqueNumber()
- Returns the uniqe number of this NoteMetaData.
- Returns:
- the unique number of this NoteMetaData.
getDateOfCreation
public java.util.Date getDateOfCreation()
- Returns the date of the creation of this note.
setBounds
public void setBounds(java.awt.Rectangle bounds)
getBounds
public java.awt.Rectangle getBounds()
setVisibility
public void setVisibility(NoteMetaData.Visibility visibility)
getVisibility
public NoteMetaData.Visibility getVisibility()
equals
public boolean equals(java.lang.Object o)
- Compares this instance of NoteMetaData with the specified
object. Returns true, if both have the same unique
number.
- Overrides:
equals
in class java.lang.Object
- Parameters:
o
- The instance to compare with.- Returns:
- true, if the unique numbers of both instances
are equal.
hashCode
public int hashCode()
- Returns the hash code of this object.
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2002 Moritz Petersen. All Rights Reserved.