Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.viewer.xml
Class StyledString

java.lang.Object
  extended by org.bounce.viewer.xml.StyledString
Direct Known Subclasses:
StyledString.AttributeName, StyledString.AttributePrefix, StyledString.AttributeValue, StyledString.CommentText, StyledString.ElementName, StyledString.ElementPrefix, StyledString.ElementValue, StyledString.NamespacePrefix, StyledString.NamespaceURI

public class StyledString
extends java.lang.Object

Holds information for a styled string.

Author:
Edwin Dankert

Nested Class Summary
(package private) static class StyledString.AttributeName
           
(package private) static class StyledString.AttributePrefix
           
(package private) static class StyledString.AttributeValue
           
(package private) static class StyledString.CommentText
           
(package private) static class StyledString.ElementName
           
(package private) static class StyledString.ElementPrefix
           
(package private) static class StyledString.ElementValue
           
(package private) static class StyledString.NamespacePrefix
           
(package private) static class StyledString.NamespaceURI
           
 
Field Summary
(package private) static StyledString ATTRIBUTE_ASIGN
           
(package private) static StyledString ATTRIBUTE_COLON
           
static java.lang.String ATTRIBUTE_NAME_COLOR_ID
           
static java.lang.String ATTRIBUTE_VALUE_COLOR_ID
           
(package private) static StyledString CLOSE_BRACKET
           
static java.lang.String COMMENT_COLOR_ID
           
(package private) static StyledString COMMENT_END
           
(package private) static StyledString COMMENT_START
           
static java.lang.String CONTROL_COLOR_ID
           
(package private) static StyledString ELEMENT_COLON
           
static java.lang.String ELEMENT_NAME_COLOR_ID
           
static java.lang.String ELEMENT_VALUE_COLOR_ID
           
(package private) static StyledString NAMESPACE_ASIGN
           
protected static StyledString NAMESPACE_COLON
           
(package private) static StyledString NAMESPACE_NAME
           
static java.lang.String NAMESPACE_NAME_COLOR_ID
           
static java.lang.String NAMESPACE_PREFIX_COLOR_ID
           
static java.lang.String NAMESPACE_URI_COLOR_ID
           
(package private) static StyledString OPEN_BRACKET
           
(package private) static StyledString SLASH
           
(package private) static StyledString SPACE
           
(package private) static StyledString TAB
           
 
Constructor Summary
StyledString(java.lang.String text)
           
StyledString(java.lang.String text, java.lang.String colorID, java.awt.Color color)
           
 
Method Summary
(package private)  java.awt.Color getColor()
           
(package private)  java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_COLOR_ID

public static final java.lang.String CONTROL_COLOR_ID
See Also:
Constant Field Values

COMMENT_COLOR_ID

public static final java.lang.String COMMENT_COLOR_ID
See Also:
Constant Field Values

ELEMENT_NAME_COLOR_ID

public static final java.lang.String ELEMENT_NAME_COLOR_ID
See Also:
Constant Field Values

NAMESPACE_PREFIX_COLOR_ID

public static final java.lang.String NAMESPACE_PREFIX_COLOR_ID
See Also:
Constant Field Values

NAMESPACE_NAME_COLOR_ID

public static final java.lang.String NAMESPACE_NAME_COLOR_ID
See Also:
Constant Field Values

NAMESPACE_URI_COLOR_ID

public static final java.lang.String NAMESPACE_URI_COLOR_ID
See Also:
Constant Field Values

ATTRIBUTE_NAME_COLOR_ID

public static final java.lang.String ATTRIBUTE_NAME_COLOR_ID
See Also:
Constant Field Values

ATTRIBUTE_VALUE_COLOR_ID

public static final java.lang.String ATTRIBUTE_VALUE_COLOR_ID
See Also:
Constant Field Values

ELEMENT_VALUE_COLOR_ID

public static final java.lang.String ELEMENT_VALUE_COLOR_ID
See Also:
Constant Field Values

COMMENT_START

static final StyledString COMMENT_START

COMMENT_END

static final StyledString COMMENT_END

SPACE

static final StyledString SPACE

TAB

static final StyledString TAB

SLASH

static final StyledString SLASH

ATTRIBUTE_ASIGN

static final StyledString ATTRIBUTE_ASIGN

ATTRIBUTE_COLON

static final StyledString ATTRIBUTE_COLON

NAMESPACE_ASIGN

static final StyledString NAMESPACE_ASIGN

NAMESPACE_COLON

protected static final StyledString NAMESPACE_COLON

NAMESPACE_NAME

static final StyledString NAMESPACE_NAME

ELEMENT_COLON

static final StyledString ELEMENT_COLON

OPEN_BRACKET

static final StyledString OPEN_BRACKET

CLOSE_BRACKET

static final StyledString CLOSE_BRACKET
Constructor Detail

StyledString

StyledString(java.lang.String text)

StyledString

StyledString(java.lang.String text,
             java.lang.String colorID,
             java.awt.Color color)
Method Detail

getText

java.lang.String getText()

getColor

java.awt.Color getColor()

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.