Interface SinkEventAttributes
- All Superinterfaces:
AttributeSet, MutableAttributeSet
- All Known Implementing Classes:
SinkEventAttributeSet
All sink methods that produce some presentation-level output should have at least one form that allows to pass in a Set of SinkEventAttributes. For instance in
void text(String text, SinkEventAttributes attributes);
the attributes parameter can be used to specify some text styling
options, or other optional parameters.
What kind of attributes are supported depends on the event and the sink implementation. The sink API just specifies a list of suggested attribute names, that sinks are expected to recognize, and parsers are expected to use preferably when emitting events.
It is recommended that for simple attributes, both keys and values should be
lower-case Strings, but this is not mandatory. One example of an exception is
the STYLE attribute, whose value may itself be an AttributeSet again.
The base attributes that are supported by almost all events are
CLASS, ID, LANG, STYLE and TITLE.
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecifies an abbreviated version of the content in an element.static final StringSpecifies the alignment of the event element within its parent element.static final StringDefines a short description of the event element.static final StringDefines a name for a cell.static final StringSpecifies the background color of an event element.static final StringDefines a border around an event element.static final StringSpecifies the space between cell walls and contents.static final StringSpecifies the space between cells.static final StringSpecifies the character encoding of text associated with an event element.static final StringThe class of the event element.static final StringIndicates the number of columns a cell should span.static final StringMay be used in conjunction withSHAPE.static final StringSpecifies a machine readable date/time for the time element.static final StringSpecifies a decoration for an element.static final StringAn electronic mail address.static final StringSpecifies which sides of a border surrounding an element should be visible.static final StringA space-separated list of cell IDs that supply header information for the cell.static final StringDefines the height of an event element.static final StringThe target URL of an event element, eg a link.static final StringSpecifies the base language of the target URL.static final StringDefines white space on the left and right side of an event element.static final StringA unique id for the event element.static final StringDefines an image as a server-side image map.static final StringThe language code for the event element.static final StringSpecifies the name of an anchor.static final StringUsed to indicate that an element comes with a shadow.static final StringWhether to disable or enable automatic text wrapping for an element.static final StringA space separated list of URL's that contains meta data information about the document.static final StringFor references to external resourcs, specifies the relationship between the current document and the target URL.static final StringFor references to external resourcs, specifies the relationship between the target URL and the current document.static final StringIndicates the number of rows a cell should span.static final StringSpecifies horizontal/vertical divider lines between certain elements, eg table cells.static final StringA general scope parameter.static final StringSpecifies the semantics of an element.static final StringSpecifies the semantics of an element.static final StringDefines the type of region to be defined for a mapping.static final StringSpecifies the size, or thickness, or height of an event element.static final StringThe URL of an external resource, eg an image.static final StringAn inline style definition.static final StringSpecifies a summary of an event attribute for speech-synthesizing/non-visual target output.static final StringWhere to open the target URL.static final StringA text to display in a tool tip.static final StringSpecifies the MIME (Multipurpose Internet Mail Extensions) type of an external resource URL, eg a link.static final StringDefines an image as a client-side image map.static final StringSpecifies the vertical alignment of an element.static final StringSpecifies a value for the data element.static final StringDefines white space on the top and bottom of the event element.static final StringSets the width of an event element.Fields inherited from interface AttributeSet
NameAttribute, ResolveAttribute -
Method Summary
Methods inherited from interface AttributeSet
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualMethods inherited from interface MutableAttributeSet
addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParent
-
Field Details
-
CLASS
-
ID
-
LANG
-
STYLE
An inline style definition.Generally supported values are "italic", "bold", "monospaced" and AttributeSets.
If the value of this Attribute is itself an AttributeSet, it is interpreted as a sequence of CSS properties. For instance, the HTML paragraph opening
<p style="color: red; margin-left: 20px">
can be produced by an HTML Sink via the event
, where the value of the SinkEventAttribute is an AttributeSet with two Attributes ("Sink.paragraph(SinkEventAttributes)color" and "margin-left" with values "red" and "20px", respectively).- See Also:
-
TITLE
-
PROFILE
A space separated list of URL's that contains meta data information about the document.- See Also:
-
EMAIL
-
ALIGN
Specifies the alignment of the event element within its parent element.Generally supported values are "left", "right", "center", "justify".
- See Also:
-
ALT
-
BORDER
-
HEIGHT
-
HSPACE
Defines white space on the left and right side of an event element.- See Also:
-
ISMAP
Defines an image as a server-side image map. Only used by the figureGraphics Sink event.- See Also:
-
SRC
-
USEMAP
-
VSPACE
Defines white space on the top and bottom of the event element.- See Also:
-
WIDTH
-
NOSHADE
-
SIZE
-
NAME
-
CHARSET
Specifies the character encoding of text associated with an event element.- See Also:
-
COORDS
-
HREF
-
HREFLANG
-
REL
For references to external resourcs, specifies the relationship between the current document and the target URL.Valid values are the same as for the corresponding HTML attribute.
- See Also:
-
REV
For references to external resourcs, specifies the relationship between the target URL and the current document.Valid values are the same as for the corresponding HTML attribute.
- See Also:
-
SHAPE
-
TARGET
Where to open the target URL.Valid values are the same as for the corresponding HTML attribute.
- See Also:
-
TYPE
Specifies the MIME (Multipurpose Internet Mail Extensions) type of an external resource URL, eg a link.- See Also:
-
BGCOLOR
-
CELLPADDING
-
CELLSPACING
-
FRAME
Specifies which sides of a border surrounding an element should be visible.Valid values are the same as for the corresponding HTML attribute.
- See Also:
-
RULES
Specifies horizontal/vertical divider lines between certain elements, eg table cells.- See Also:
-
SUMMARY
Specifies a summary of an event attribute for speech-synthesizing/non-visual target output.- See Also:
-
ABBRV
-
AXIS
-
COLSPAN
Indicates the number of columns a cell should span. Used in tables.- See Also:
-
HEADERS
A space-separated list of cell IDs that supply header information for the cell.- See Also:
-
NOWRAP
Whether to disable or enable automatic text wrapping for an element.- See Also:
-
ROWSPAN
Indicates the number of rows a cell should span. Used in tables.- See Also:
-
SCOPE
A general scope parameter. In Particular, for table cells this specifies if the cell provides header information for the rest of the row that contains it ("row"), or for the rest of the column ("col"), or for the rest of the row group that contains it ("rowgroup"), or for the rest of the column group that contains it ("colgroup").- See Also:
-
VALIGN
Specifies the vertical alignment of an element.Generally accepted values are "top", "baseline", "middle", "bottom", "sup", "sub".
- See Also:
-
DECORATION
Specifies a decoration for an element.Generally accepted values are "underline", "overline", "line-through", "source".
- See Also:
-
SEMANTICS
Specifies the semantics of an element.Generally accepted values are "emphasis", "strong", "small", "line-through", "citation", "quote", "definition", "abbreviation", "italic", "bold", "monospaced", "code, "variable", "sample", "keyboard", "superscript", "subscript", "annotation", "highlight", "ruby", "rubyBase", "rubyText", "rubyTextContainer", "rubyParentheses", "bidirectionalIsolation", "bidirectionalOverride", "phrase", "insert", "delete".
- See Also:
-
SECTIONS
Specifies the semantics of an element.Generally accepted values are "article", "section", "navigation", "sidebar".
- See Also:
-
VALUE
-
DATETIME
-
-
Method Details
-
entrySet
Returns aSetview of the attributes in form ofMap.Entryitems. The set is backed by the underlying map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's ownremoveoperation, or through thesetValueoperation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via theIterator.remove,Set.remove,removeAll,retainAllandclearoperations. It does not support theaddoraddAlloperations.- Returns:
- a set view of the attributes
- Since:
- 2.1.0
-