Class TextLabel
-
Field Summary
Fields inherited from class com.adobe.xfa.text.TextStream
DEFAULT_STREAMFields inherited from class com.adobe.xfa.text.TextLegacy
LEVEL_CORRECT_SPACING, LEVEL_NORMAL, LEVEL_V6 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.adobe.xfa.text.TextDispStr
allowOverflow, allowOverflow, combCells, combCells, enforceJustifyHeight, enforceJustifyWidth, equals, extent, hashCode, justifyHeight, justifyHPoint, justifyVPoint, justifyWidth, maxHeight, maxWidth, minHeight, minWidth, notEqual, onLoadFrame, runtimeExtent, unlimitedHeight, unlimitedWidthMethods inherited from class com.adobe.xfa.text.TextSparseStream
appendFrame, appendFrame, appendFrameRef, appendFrameRef, createDisplay, defaultDirection, defaultDirection, forceFrame, forceFrame, getContext, getFrame, getFrameCount, insertFrame, insertFrameRef, onFrameRemoved, onNewFrame, onRemoveFrame, removeFrame, removeFrame, setContext, setFrame, setFrameCount, setFrameRefMethods inherited from class com.adobe.xfa.text.TextStream
allowNewLines, allowNewLines, anyNewLines, append, append, append, append, append, append, cascadeLegacyLevel, coalesceMarker, contiguousText, copyFrom, currentSize, debug, display, enumEmbed, enumField, enumMarker, find, find, findRangeMarkerOver, fontService, fontService, gfxSource, gfxSource, isDescendentOf, isDescendentOf, legacyPositioning, markup, markup, markup, markup, markup, maxSize, maxSize, notEqual, position, posnCount, posnInsert, posnInsert, posnInsertPara, posnNext, posnNextAttr, posnNextChar, posnNextEmbed, posnNextField, posnNextType, posnNextType, posnPrev, posnPrevAttr, posnPrevChar, posnPrevEmbed, posnPrevField, posnPrevType, posnPrevType, posnUpdateStreamLoc, rangeEnumMarker, rangeMarker, rangeMarkerInternal, removeMarker, setText, spaceLeft, splitMarker, suppressFormat, text, text, updateNotificationMethods inherited from class com.adobe.xfa.text.TextLegacy
getLegacyLevel, hasCorrectPositioning, hasLegacyPositioning, hasNormalPositioning, setLegacyLevel
-
Constructor Details
-
TextLabel
public TextLabel()Default constructor.The text stream contains no content and has no pool/mapping assocotiation.
-
TextLabel
Copy constructor.Copies all contents of the text label.
-
TextLabel
Constructor with source text string.Create a text stream whose initial content is copied from the given string. The text stream initially has no attribute pool association. The display is not automatically created.
- Parameters:
sSource- - String whose contents are to be copied to the text stream.
-
-
Method Details
-
copyFrom
Assign this text label's content from the given text label.Replace this stream's content with a copy of the content of the given stream. The graphic source information is not copied. In other words, fonts will be re-mapped in this stream's font service and attributes will be re-pooled in any attribute pool associated with this stream. The display pointer is not copied, as each stream has its own display; nor is a display automatically created.
- Parameters:
oSource- - Stream containing source content to copy.
-
notEqual
Compare text streams for inequality.Compare this stream against the one passed on the parameter oCompare for inequality. The graphics sources of the streams are not compared. This is the exact opposite of the equality comparison. The display does not participate in the comparison.
- Parameters:
oCompare- - Stream to compare against- Returns:
- TRUE if the streams are unequal; FALSE otherwise.
-