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

Inner Class Summary
static class NoteMetaData.Visibility
           
 
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.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this instance of NoteMetaData with the specified object.
 java.awt.Rectangle getBounds()
           
 java.util.Date getDateOfCreation()
          Returns the date of the creation of this note.
 long getUniqueNumber()
          Returns the uniqe number of this NoteMetaData.
 NoteMetaData.Visibility getVisibility()
           
 int hashCode()
          Returns the hash code of this object.
 void setBounds(java.awt.Rectangle bounds)
           
 void setVisibility(NoteMetaData.Visibility visibility)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.