de.uni_paderborn.fujaba.messages
Class MessageView

java.lang.Object
  extended byde.uni_paderborn.fujaba.messages.MessageView

public class MessageView
extends java.lang.Object

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

Nested Class Summary
private  class MessageView.MessageModel
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private static int[] CLOUMN_WIDTHS
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN_CATEGORY
          No comment provided by developer, please add a comment to improve documentation.
(package private) static java.lang.Class[] COLUMN_CLASSES
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN_ICON
          No comment provided by developer, please add a comment to improve documentation.
(package private) static java.lang.String[] COLUMN_NAMES
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN_PACKAGE
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN_TEXT
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN_TIME
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JComponent component
          store the value for field component
private  javax.swing.AbstractAction deleteMessageAction
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.AbstractAction deleteMessageCategoryAction
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JPopupMenu headerPopupMenu
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.AbstractAction hideMessageViewAction
          No comment provided by developer, please add a comment to improve documentation.
private static int IMAGE_SIZE
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.KeyAdapter keyListener
          No comment provided by developer, please add a comment to improve documentation.
(package private)  int lastClickedColumn
          No comment provided by developer, please add a comment to improve documentation.
(package private)  int lastClickedRow
          No comment provided by developer, please add a comment to improve documentation.
static int MAX_PREFERRED_WIDTH
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.List messages
          No comment provided by developer, please add a comment to improve documentation.
(package private)  MessageView.MessageModel model
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.event.MouseListener mouseListener
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.lang.Runnable notifyRunnable
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JTable table
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.Set tableModelListeners
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String title
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
MessageView(java.lang.String title)
          Constructor for class MessageView
 
Method Summary
 boolean addToMessages(Message value)
          Access method for a To N-association.
(package private)  boolean addToTableModelListeners(javax.swing.event.TableModelListener value)
          Access method for a To N-association.
(package private)  int compareStrings(java.lang.String text1, java.lang.String text2, boolean ascending)
          No comment provided by developer, please add a comment to improve documentation.
 void deleteMessages(java.lang.String messageClass)
          No comment provided by developer, please add a comment to improve documentation.
 javax.swing.JComponent getComponent()
          getter for field component
 Message getFromMessages(int index)
          Get the fromMessages attribute of the MessageView object
 java.lang.String getTitle()
          Get the title attribute of the MessageView object
 boolean hasInMessages(Message value)
          No comment provided by developer, please add a comment to improve documentation.
private  void init()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfMessages()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfSelectedMessages()
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.util.Iterator iteratorOfTableModelListeners()
          No comment provided by developer, please add a comment to improve documentation.
private  void notifyModelChange()
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromMessages()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromMessages(Message value)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  boolean removeFromTableModelListeners(javax.swing.event.TableModelListener value)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  void showPopup(java.awt.event.MouseEvent e)
          No comment provided by developer, please add a comment to improve documentation.
 int sizeOfMessages()
          No comment provided by developer, please add a comment to improve documentation.
 void sortBy(int column, boolean ascending)
          Sort messages by a specified column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ICON

public static final int COLUMN_ICON
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN_TEXT

public static final int COLUMN_TEXT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN_PACKAGE

public static final int COLUMN_PACKAGE
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN_CATEGORY

public static final int COLUMN_CATEGORY
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN_TIME

public static final int COLUMN_TIME
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN_NAMES

static final java.lang.String[] COLUMN_NAMES
No comment provided by developer, please add a comment to improve documentation.


COLUMN_CLASSES

static final java.lang.Class[] COLUMN_CLASSES
No comment provided by developer, please add a comment to improve documentation.


CLOUMN_WIDTHS

private static final int[] CLOUMN_WIDTHS
No comment provided by developer, please add a comment to improve documentation.


IMAGE_SIZE

private static final int IMAGE_SIZE
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

notifyRunnable

java.lang.Runnable notifyRunnable
No comment provided by developer, please add a comment to improve documentation.


MAX_PREFERRED_WIDTH

public static final int MAX_PREFERRED_WIDTH
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

title

private java.lang.String title
No comment provided by developer, please add a comment to improve documentation.


table

javax.swing.JTable table
No comment provided by developer, please add a comment to improve documentation.


model

MessageView.MessageModel model
No comment provided by developer, please add a comment to improve documentation.


tableModelListeners

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


messages

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


keyListener

private java.awt.event.KeyAdapter keyListener
No comment provided by developer, please add a comment to improve documentation.


lastClickedColumn

int lastClickedColumn
No comment provided by developer, please add a comment to improve documentation.


lastClickedRow

int lastClickedRow
No comment provided by developer, please add a comment to improve documentation.


mouseListener

private java.awt.event.MouseListener mouseListener
No comment provided by developer, please add a comment to improve documentation.


headerPopupMenu

javax.swing.JPopupMenu headerPopupMenu
No comment provided by developer, please add a comment to improve documentation.


hideMessageViewAction

private javax.swing.AbstractAction hideMessageViewAction
No comment provided by developer, please add a comment to improve documentation.


deleteMessageAction

private javax.swing.AbstractAction deleteMessageAction
No comment provided by developer, please add a comment to improve documentation.


deleteMessageCategoryAction

private javax.swing.AbstractAction deleteMessageCategoryAction
No comment provided by developer, please add a comment to improve documentation.


component

private javax.swing.JComponent component
store the value for field component

Constructor Detail

MessageView

public MessageView(java.lang.String title)
Constructor for class MessageView

Parameters:
title - No description provided
Method Detail

getTitle

public java.lang.String getTitle()
Get the title attribute of the MessageView object

Returns:
The title value

addToTableModelListeners

boolean addToTableModelListeners(javax.swing.event.TableModelListener value)
Access method for a To N-association.

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

iteratorOfTableModelListeners

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

Returns:
No description provided

removeFromTableModelListeners

boolean removeFromTableModelListeners(javax.swing.event.TableModelListener value)
No comment provided by developer, please add a comment to improve documentation.

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

addToMessages

public boolean addToMessages(Message value)
Access method for a To N-association.

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

notifyModelChange

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


hasInMessages

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

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

iteratorOfMessages

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

Returns:
No description provided

removeAllFromMessages

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


deleteMessages

public void deleteMessages(java.lang.String messageClass)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
messageClass - No description provided

removeFromMessages

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

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

sizeOfMessages

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

Returns:
No description provided

getFromMessages

public Message getFromMessages(int index)
Get the fromMessages attribute of the MessageView object

Parameters:
index - No description provided
Returns:
The fromMessages value

init

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


iteratorOfSelectedMessages

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

Returns:
No description provided

showPopup

void showPopup(java.awt.event.MouseEvent e)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided

sortBy

public void sortBy(int column,
                   boolean ascending)
Sort messages by a specified column.

Parameters:
column - which column to be sorted by
ascending - true to sort in ascending order, false for descending

compareStrings

int compareStrings(java.lang.String text1,
                   java.lang.String text2,
                   boolean ascending)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
text1 - No description provided
text2 - No description provided
ascending - No description provided
Returns:
No description provided

getComponent

public javax.swing.JComponent getComponent()
getter for field component

Returns:
current value of field component