org.jurvis.util
Class JvHTMLText

java.lang.Object
  extended by org.jurvis.util.JvHTMLText
All Implemented Interfaces:
Serializable

public class JvHTMLText
extends Object
implements Serializable

A text string that may contain HTML tags. This class is primarily used as a JavaBean property type. The JvSwingFactory.createField() methods will detect this type and will use a JEditorPane component to edit/display the propertys value.

Author:
Neil W. Weber
See Also:
Serialized Form

Constructor Summary
JvHTMLText()
          Construct a new empty JvHTMLText.
JvHTMLText(String text)
          Construct a new JvHTMLText with the specified contents.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 String getString()
          Return a String containing HTML markup
 String toString()
          Return a String containing HTML markup
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JvHTMLText

public JvHTMLText()
Construct a new empty JvHTMLText.


JvHTMLText

public JvHTMLText(String text)
Construct a new JvHTMLText with the specified contents.

Parameters:
text - a String containing HTML markup
Method Detail

getString

public String getString()
Return a String containing HTML markup

Returns:
a String containing HTML markup

toString

public String toString()
Return a String containing HTML markup

Overrides:
toString in class Object
Returns:
a String containing HTML markup

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.