de.uni_paderborn.fujaba.messages
Class Message

java.lang.Object
  extended byde.uni_paderborn.fujaba.messages.Message
Direct Known Subclasses:
ErrorMessage, SearchResult, Warning

public class Message
extends java.lang.Object

Version:
$Revision: 1.3 $ $Date: 2005/02/24 15:54:48 $
Author:
christian.schneider@uni-kassel.de

Nested Class Summary
private  class Message.ShowContextAction
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private  java.util.Set context
          No comment provided by developer, please add a comment to improve documentation.
(package private) static javax.swing.Action dobsAction
          No comment provided by developer, please add a comment to improve documentation.
private static boolean dobsLoaded
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String messageCategory
          store the value for field messageClass
private  MessageView messageView
          store value for field messageView
private  java.lang.String text
          store the value for field text
private  long time
          store the value for field time
 
Constructor Summary
Message()
          Constructor for class Message
Message(java.lang.String text)
          Constructor for class Message
 
Method Summary
 boolean addToContext(FElement value)
          Access method for a To N-association.
 javax.swing.Action getDefaultAction()
           
private  javax.swing.Action getDobsAction()
          Get the dobsAction attribute of the Message object
 javax.swing.Icon getIcon()
          Get the icon attribute of the Message object
protected  java.net.URL getIconURL()
          Get the iconURL attribute of the Message object
 java.lang.String getMessageCategory()
          getter for field messageClass
 MessageView getMessageView()
           
 java.lang.String getPath()
          Query fully qualified package, class or method, etc. to provide userfriendly order/hierarchy.
 java.lang.String getText()
          getter for field text
 long getTime()
          getter for field time
 boolean hasInContext(FElement value)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfActions()
          Query actions than can be performed on this message.
 java.util.Iterator iteratorOfContext()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromContext()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromContext(FElement value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          remove this message
 void setMessageCategory(java.lang.String value)
          setter for field messageClass
(package private)  boolean setMessageView(MessageView value)
          Don't call directly!
 void setText(java.lang.String text)
          setter for field text
 void showContext()
          Show the context of this message via gotoElement.
 int sizeOfContext()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageCategory

private java.lang.String messageCategory
store the value for field messageClass


text

private java.lang.String text
store the value for field text


context

private java.util.Set context
No comment provided by developer, please add a comment to improve documentation.


messageView

private MessageView messageView
store value for field messageView


time

private long time
store the value for field time


dobsLoaded

private static boolean dobsLoaded
No comment provided by developer, please add a comment to improve documentation.


dobsAction

static javax.swing.Action dobsAction
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

Message

public Message()
Constructor for class Message


Message

public Message(java.lang.String text)
Constructor for class Message

Parameters:
text - No description provided
Method Detail

getMessageCategory

public java.lang.String getMessageCategory()
getter for field messageClass

Returns:
current value of field messageClass

setMessageCategory

public void setMessageCategory(java.lang.String value)
setter for field messageClass

Parameters:
value - new value

getText

public java.lang.String getText()
getter for field text

Returns:
current value of field text

setText

public void setText(java.lang.String text)
setter for field text

Parameters:
text - new value of field text

addToContext

public boolean addToContext(FElement value)
Access method for a To N-association.

Parameters:
value - The object added.
Returns:
No description provided

hasInContext

public boolean hasInContext(FElement value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfContext

public java.util.Iterator iteratorOfContext()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

removeAllFromContext

public void removeAllFromContext()
No comment provided by developer, please add a comment to improve documentation.


removeFromContext

public boolean removeFromContext(FElement value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

sizeOfContext

public int sizeOfContext()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getIcon

public javax.swing.Icon getIcon()
Get the icon attribute of the Message object

Returns:
The icon value

getIconURL

protected java.net.URL getIconURL()
Get the iconURL attribute of the Message object

Returns:
The iconURL value

removeYou

public void removeYou()
remove this message


getMessageView

public MessageView getMessageView()
Returns:
current value of the field messageView

setMessageView

boolean setMessageView(MessageView value)
Don't call directly! Use MessageView.addToMessages(de.uni_paderborn.fujaba.messages.Message)/MessageView.removeFromMessages(de.uni_paderborn.fujaba.messages.Message) instead

Parameters:
value - new value for field messageView
Returns:
true if messageView was changed

getPath

public java.lang.String getPath()
Query fully qualified package, class or method, etc. to provide userfriendly order/hierarchy.

Returns:
fully qualified name of a class/package/method this message belongs to

getTime

public long getTime()
getter for field time

Returns:
current value of field time

showContext

public void showContext()
Show the context of this message via gotoElement.


getDobsAction

private javax.swing.Action getDobsAction()
Get the dobsAction attribute of the Message object

Returns:
The dobsAction value

iteratorOfActions

public java.util.Iterator iteratorOfActions()
Query actions than can be performed on this message.

Returns:
iterator through actions than can be performed on this message.

getDefaultAction

public javax.swing.Action getDefaultAction()
Returns:
the default action, taken when the message is clicked