com.ibm.edms.od
Class ODNote

java.lang.Object
  |
  +--com.ibm.edms.od.ODNote

public class ODNote
extends java.lang.Object

A class representing an OnDemand note. For example:

    ODNote note = new ODNote();
 
(C) Copyright IBM Corp. 1993, 2002. All Rights Reserved


Field Summary
static int PRIVATE_GROUP
           
static int PRIVATE_USER
           
static int PUBLIC
           
 
Constructor Summary
ODNote()
          Class constructor.
 
Method Summary
 char getColor()
          Get the note color
 java.lang.String getDateTime()
          Get the note creation date/time.
 java.lang.String getGroupName()
          Get the note group name.
 int getOffsetX()
          Get the offset of the note
 int getOffsetY()
          Get the offset of the note
 int getPageNum()
          Get the page number
 java.lang.String getText()
          Get the note text.
 java.lang.String getUserId()
          Get the note creator.
 boolean isOkToCopy()
          Determine if this note can be copied to another server.
 boolean isPublic()
          Check if note is public or not.
 void setGroupName(java.lang.String groupName)
          Set the note group name.
 void setOkToCopy(boolean okToCopy)
          Set whether or not this note can be copied to another server.
 void setPublic(boolean isPublic)
          Set whether or not this note is public.
 void setText(java.lang.String text)
          Set the note text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLIC

public static final int PUBLIC

PRIVATE_USER

public static final int PRIVATE_USER

PRIVATE_GROUP

public static final int PRIVATE_GROUP
Constructor Detail

ODNote

public ODNote()
Class constructor.
Method Detail

isPublic

public boolean isPublic()
Check if note is public or not.
Returns:
true/false

setPublic

public void setPublic(boolean isPublic)
Set whether or not this note is public.
Parameters:
isPublic - true/false

isOkToCopy

public boolean isOkToCopy()
Determine if this note can be copied to another server.
Returns:
true/false

setOkToCopy

public void setOkToCopy(boolean okToCopy)
Set whether or not this note can be copied to another server.
Parameters:
okToCopy - true/false

getPageNum

public int getPageNum()
Get the page number
Returns:
The page number the note is associated with.

getOffsetX

public int getOffsetX()
Get the offset of the note
Returns:
The X coordinate of the note placement.

getOffsetY

public int getOffsetY()
Get the offset of the note
Returns:
The Y coordinate of the note placement.

getColor

public char getColor()
Get the note color
Returns:
The color of the note.
See Also:
ODConstant.ColorWhite, ODConstant.ColorBlack, ODConstant.ColorRed, ODConstant.ColorBlue, ODConstant.ColorGreen, ODConstant.ColorYellow, ODConstant.ColorMagenta, ODConstant.ColorCyan, ODConstant.ColorGrey

getUserId

public java.lang.String getUserId()
Get the note creator.
Returns:
The userid of the individual who created the note.

getDateTime

public java.lang.String getDateTime()
Get the note creation date/time.
Returns:
Note creation timestamp.

getGroupName

public java.lang.String getGroupName()
Get the note group name.
Returns:
If the note was associated with an OnDemand group return this name.

setGroupName

public void setGroupName(java.lang.String groupName)
Set the note group name.
Parameters:
groupName - Set if note should be associated with an OnDemand group.

getText

public java.lang.String getText()
Get the note text.
Returns:
Note text.

setText

public void setText(java.lang.String text)
Set the note text.
Parameters:
text - The content of the note.