|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.CSS.CssValue javax.swing.text.html.CSS.StringValue
By default CSS attributes are represented as simple strings. They also have no conversion to/from StyleConstants by default. This class represents the value as a string (via the superclass), but provides StyleConstants conversion support for the CSS attributes that are held as strings.
Field Summary | |
(package private) String |
svalue
The value as a string... before conversion to a binary format. |
Constructor Summary | |
(package private) |
CSS.StringValue()
|
Method Summary | |
(package private) Object |
fromStyleConstants(StyleConstants key,
Object value)
Converts a StyleConstants attribute value to
a CSS attribute value. |
(package private) boolean |
isItalic()
|
(package private) boolean |
isStrike()
|
(package private) boolean |
isSub()
|
(package private) boolean |
isSup()
|
(package private) boolean |
isUnderline()
|
(package private) Object |
parseCssValue(String value)
Convert a CSS value string to the internal format (for fast processing) used in the attribute sets. |
(package private) Object |
parseHtmlValue(String value)
Convert an HTML attribute value to a CSS attribute value. |
String |
toString()
Return the CSS format of the value |
(package private) Object |
toStyleConstants(StyleConstants key,
View v)
Converts a CSS attribute value to a StyleConstants value.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
String svalue
Constructor Detail |
CSS.StringValue()
Method Detail |
Object parseCssValue(String value)
parseCssValue
in class CSS.CssValue
Object fromStyleConstants(StyleConstants key, Object value)
StyleConstants
attribute value to
a CSS attribute value. If there is no conversion
returns null
.
fromStyleConstants
in class CSS.CssValue
key
- the StyleConstants
attributevalue
- the value of a StyleConstants
attribute to be converted
StyleConstants
valueObject toStyleConstants(StyleConstants key, View v)
StyleConstants
value.
If there is no conversion, returns null
.
By default, there is no conversion.
toStyleConstants
in class CSS.CssValue
key
- the StyleConstants
attributev
- the view containing AttributeSet
StyleConstants
attribute value that
represents the CSS attribute valueboolean isItalic()
boolean isStrike()
boolean isUnderline()
boolean isSub()
boolean isSup()
Object parseHtmlValue(String value)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |