Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.text.html.parser.* (10)

javax.swing.text.html: Javadoc index of package javax.swing.text.html.


Package Samples:

javax.swing.text.html.parser

Classes:

DocumentParser: A simple error-tolerant HTML parser that uses a DTD document to access data on the possible tokens, arguments and syntax. The parser reads an HTML content from a Reader and calls various notifying methods (which should be overridden in a subclass) when tags or data are encountered. Some HTML elements need no opening or closing tags. The task of this parser is to invoke the tag handling methods also when the tags are not explicitly specified and must be supposed using information, stored in the DTD. For example, parsing the document <table><tr><td>a<td>b<td>c</tr> ...
DTD: Representation or the SGML DTD document. Provides basis for describing a syntax of the HTML documents. The fields of this class are NOT initialized in constructor. You need to do this separately before passing this data structure to the HTML parser. The subclasses with the fields, pre- initialized, for example, for HTML 4.01, can be available only between the implementation specific classes ( for example, gnu.javax.swing.text.html.parser.HTML_401F in this implementation). If you need more information about SGML DTD documents, the author suggests to read SGML tutorial on http://www.w3.org/TR/WD-html40-970708/intro/sgmltut.html ...
Parser: A simple error-tolerant HTML parser that uses a DTD document to access data on the possible tokens, arguments and syntax. The parser reads an HTML content from a Reader and calls various notifying methods (which should be overridden in a subclass) when tags or data are encountered. Some HTML elements need no opening or closing tags. The task of this parser is to invoke the tag handling methods also when the tags are not explicitly specified and must be supposed using information, stored in the DTD. For example, parsing the document <table><tr><td>a<td>b<td>c</tr> ...
FormView: A View that renders HTML form elements like buttons and input fields. This is implemented as a javax.swing.text.ComponentView that creates different Swing component depending on the type and setting of the different form elements. Namely, this view creates the following components: Element type Swing component input, button JButton input, checkbox JButton input, image JButton input, password JButton input, radio JButton input, reset JButton input, submit JButton input, text JButton select, size > 1 or with multiple attribute JList in JScrollPane select, size unspecified or == 1 JComboBox textarea, ...
ContentModel: A representation of the element content. The instances of this class can be arranged into the linked list, representing a BNF expression. The content model is constructed as a branched tree structure in the following way: a = new ContentModel('+', A, null); // a reprensents A+ b = new ContentModel('&', B, a); // b represents B & A+ c = new ContentModel('*', b, null); // c represents ( B & A+) * d = new ContentModel('|', new ContentModel('*', A, null), new ContentModel('?', B, null)); // d represents ( A* | B? ) where the valid operations are: E* E occurs zero or more times E+ E occurs ...
AttributeList: Stores the attribute information, obtained by parsing SGML (DTD) tag <!ATTLIST .. > Elements can have a associated named properties (attributes) having the assigned values. The element start tag can have any number of attribute value pairs, separated by spaces. They can appear in any order. SGML requires you to delimit the attribute values using either double (") or single (') quotation marks. In HTML, it is possible (but not recommended) to specify the value of an attribute without quotation marks. Such attribute value may only contain letters, digits, hyphens (-) and periods (.) . The AttributeList ...
StyleSheet: This class adds support for defining the visual characteristics of HTML views being rendered. This enables views to be customized by a look-and-feel, mulitple views over the same model can be rendered differently. Each EditorPane has its own StyleSheet, but by default one sheet will be shared by all of the HTMLEditorKit instances. An HTMLDocument can also have a StyleSheet, which holds specific CSS specs. In order for Views to store less state and therefore be more lightweight, the StyleSheet can act as a factory for painters that handle some of the rendering tasks. Since the StyleSheet may be ...
ObjectView: A view for HTML <object> tags. This is a javax.swing.text.ComponentView that creates special components depending on the object specification. If the object tag has a classid attribute, then this view will try to load the class specified by this attribute using the classloader that loaded the associated document. If the class could be loaded, an instance is created and the type narrowed to java.awt.Component . It is also possible to set bean properties on the created component using nested <param> tags. For example:
CSSParser: Parses a CSS document. This works by way of a delegate that implements the CSSParserCallback interface. The delegate is notified of the following events: - Import statement: handleImport - Selectors handleSelector. This is invoked for each string. For example if the Reader contained p, bar , a {}, the delegate would be notified 4 times, for 'p,' 'bar' ',' and 'a'. - When a rule starts, startRule - Properties in the rule via the handleProperty. This is invoked one per property/value key, eg font size: foo;, would cause the delegate to be notified once with a value of 'font size'. - Values in the ...
DTDConstants: This class defines the SGML basic types, used for describing HTML 4.01 at http://www.w3.org/TR/html4/types.html . Not all constants, defined here, are actually used in HTML 4.01 SGML specification. Some others are defined just as part of the required implementation. If you need more information about SGML DTD documents, the author suggests to read SGML tutorial on http://www.w3.org/TR/WD-html40-970708/intro/sgmltut.html . We also recommend Goldfarb C.F (1991) The SGML Handbook , Oxford University Press, 688 p, ISBN: 0198537379.
Element: Stores the element information, obtained by parsing SGML DTD tag <!ELEMENT .. > . This class has no public constructor and can only be instantiated using the DTD methods SGML defines elements that represent structures or behavior. An element typically consists of a start tag, content, and an end tag. Hence the elements are not tags. The HTML 4.0 definition specifies that some elements are not required to have the end tags. Also, some HTML elements (like <hr> ) have no content. Element names are case sensitive.
CSS: Provides CSS attributes to be used by the HTML view classes. The constants defined here are used as keys for text attributes for use in javax.swing.text.AttributeSet s of javax.swing.text.Element s.
InlineView: Renders HTML content (identified by HTML.Tag.CONTENT 55 ). This is basically a javax.swing.text.LabelView that is adjusted to understand styles defined by stylesheets.
Entity: Stores information, obtained by parsing SGML DTL <!ENTITY % .. > tag. The entity defines some kind of macro that can be used elsewhere in the document. When the macro is referred to by the name in the DTD, it is expanded into a string
ParserDelegator: This class instantiates and starts the working instance of html parser, being responsible for providing the default DTD. TODO Later this class must be derived from the totally abstract class HTMLEditorKit.Parser. HTMLEditorKit that does not yet exist.
ParagraphView: Renders a paragraph in HTML. This is a subclass of javax.swing.text.ParagraphView with some adjustments for understanding stylesheets.
ListView: A View to render HTML lists, like the <ul> and <ol> tags.
HTMLFrameHyperlinkEvent: HTMLFrameHyperlinkEvent transfers information about the link that was activated in a frame.
NullView: A dummy view that renders nothing. This is used for invisible HTML elements like .

Home | Contact Us | Privacy Policy | Terms of Service