Pregunta: | 8850 - MANIPULACIóN DE DOCUMENTOS CON STYLEDDOCUMENT |
Autor: | Pedro Guerrero Muñoz |
Me gustaria saber donde podría encontrar información sobre la clase DefaultStyledDocument y de como se manipulan documentos con esta clase y como se usan los objetos Element. Si es posible en castellano. |
Respuesta: | car23 dxwe |
public class DefaultStyledDocument
extends AbstractDocument implements StyledDocument A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format. The element structure for this document represents style crossings for style runs. These style runs are mapped into a paragraph element structure (which may reside in some other structure). The style runs break at paragraph boundries since logical styles are assigned to paragraph boundries. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence. public final class Element extends Object implements DTDConstants, Serializable An element as described in a DTD using the ELEMENT construct. This is essentiall the description of a tag. It describes the type, content model, attributes, attribute types etc. It is used to correctly parse a document by the Parser. See Also: DTD, AttributeList, Serialized Form |