public class LabeledStringDocument extends StringDocument implements LabeledDocument
LabeledDocument
implementation backed by a String
whose
contents are used for the document text.Constructor and Description |
---|
LabeledStringDocument(String label,
String docText)
Constructs a
Document using the provided string as the document
text |
Modifier and Type | Method and Description |
---|---|
String |
label()
Returns a label associated with this particular document.
|
reader, toString
public String label()
label
in interface LabeledDocument
Copyright © 2012. All Rights Reserved.