com.borland.primetime.ide
Class MessageCategory

java.lang.Object
  |
  +--com.borland.primetime.ide.MessageCategory

public class MessageCategory
extends java.lang.Object
implements javax.swing.Icon

A MessageCategory defines a unique tab along the bottom of the message view. Once a category is defined, messages added to the message view passing the same MessageCategory will appear on the same tab.

See Also:
MessageView, Message

Field Summary
static java.lang.String PROP_ICON
           
static java.lang.String PROP_TITLE
           
static java.lang.String PROP_TOOLTIP
           
 
Constructor Summary
MessageCategory(java.lang.String title)
           
MessageCategory(java.lang.String title, javax.swing.Icon icon)
           
MessageCategory(java.lang.String title, java.lang.String toolTip)
           
MessageCategory(java.lang.String title, java.lang.String toolTip, javax.swing.Icon icon)
           
MessageCategory(java.lang.String title, java.lang.String toolTip, javax.swing.Icon icon, java.lang.String params)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void categoryActivated()
          This is a notification that the category has been activated in the MessageView.
 void categoryClosing()
          This is a notification that the category is being removed from the MessageView.
 void categoryDeactivated()
          This is a notification that the category has been deactivated in the MessageView.
protected  void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
 javax.swing.Icon getIcon()
           
 int getIconHeight()
           
 int getIconWidth()
           
 java.lang.String getParams()
           
 java.lang.String getTitle()
           
 java.lang.String getToolTip()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setIcon(javax.swing.Icon icon)
           
 void setParams(java.lang.String parsms)
           
 void setTitle(java.lang.String title)
           
 void setToolTip(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_TITLE

public static final java.lang.String PROP_TITLE

PROP_ICON

public static final java.lang.String PROP_ICON

PROP_TOOLTIP

public static final java.lang.String PROP_TOOLTIP
Constructor Detail

MessageCategory

public MessageCategory(java.lang.String title)

MessageCategory

public MessageCategory(java.lang.String title,
                       javax.swing.Icon icon)

MessageCategory

public MessageCategory(java.lang.String title,
                       java.lang.String toolTip)

MessageCategory

public MessageCategory(java.lang.String title,
                       java.lang.String toolTip,
                       javax.swing.Icon icon)

MessageCategory

public MessageCategory(java.lang.String title,
                       java.lang.String toolTip,
                       javax.swing.Icon icon,
                       java.lang.String params)
Method Detail

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

setIcon

public void setIcon(javax.swing.Icon icon)

getIcon

public javax.swing.Icon getIcon()

setToolTip

public void setToolTip(java.lang.String text)

getToolTip

public java.lang.String getToolTip()

getParams

public java.lang.String getParams()

setParams

public void setParams(java.lang.String parsms)

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

categoryActivated

public void categoryActivated()
This is a notification that the category has been activated in the MessageView.

categoryDeactivated

public void categoryDeactivated()
This is a notification that the category has been deactivated in the MessageView.

categoryClosing

public void categoryClosing()
                     throws VetoException
This is a notification that the category is being removed from the MessageView. A VetoException will prevent the tab from being removed.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)