com.jgraph.components.labels
public class RichTextBusinessObject extends Object implements Cloneable, Serializable
See Also: RichTextGraphModel
Field Summary | |
---|---|
protected Map | properties
Holds the properties as (key, value) pairs. |
static String | valueKey
Key to use for converting this object to a string. |
Constructor Summary | |
---|---|
RichTextBusinessObject()
Constructs a business object with an empty string as its value. | |
RichTextBusinessObject(Object value)
Constructs a business object with the specified value.
|
Method Summary | |
---|---|
protected String | chopString(String s, int max)
A helper method that crops string to the specified length, adding 3 dots
if there were more characters.
|
Object | clone()
Returns a clone of the object. |
Map | getProperties()
Returns the properties.
|
Object | getProperty(Object key)
Returns the property under the specified key.
|
String | getTooltip()
Hook for subclassers to create a custom tooltip for this user object.
|
Object | getValue()
Returns the value for valueKey.
|
boolean | isComponent()
Returns true if the value is a component.
|
boolean | isRichText()
Returns true if the value is a rich text value.
|
Object | putProperty(Object key, Object value)
Sets the property under the specified key.
|
void | setProperties(Map properties)
Sets the properties.
|
void | setValue(Object value)
Sets the value for valueKey.
|
String | toString()
Returns the string representation of the value or an empty string if no
value exists.
|
Parameters: value The value of the new object.
Returns: The chopped string.
Returns: Returns a clone of this object.
Returns: Returns the properties.
Parameters: key The key of the property.
Returns: Returns the specified property.
Returns: Returns a tooltip for the user object.
Returns: Returns the value.
Returns: Returns true if value is a component.
Returns: Returns true if value is rich text.
Parameters: key They key of the property. value The value of the property.
Returns: Returns the previous value.
Parameters: properties The properties to set.
Parameters: value The value to set.
Returns: Returns the value as a string.