Class TextLabel
- java.lang.Object
-
- com.adobe.xfa.text.TextLegacy
-
- com.adobe.xfa.text.TextStream
-
- com.adobe.xfa.text.TextSparseStream
-
- com.adobe.xfa.text.TextDispStr
-
- com.adobe.xfa.text.TextLabel
-
public class TextLabel extends TextDispStr
A text label is a displayable stream (see class TextDispStr) that has unlimited height and width, with minimums going right down to zero. The application does not set these dimensions directly; they are always derived from the text content.
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.text.TextStream
DEFAULT_STREAM
-
Fields inherited from class com.adobe.xfa.text.TextLegacy
LEVEL_CORRECT_SPACING, LEVEL_NORMAL, LEVEL_V6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(TextLabel oSource)
Assign this text label's content from the given text label.boolean
notEqual(TextLabel oCompare)
Compare text streams for inequality.-
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, unlimitedWidth
-
Methods 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, setFrameRef
-
Methods 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, updateNotification
-
Methods inherited from class com.adobe.xfa.text.TextLegacy
getLegacyLevel, hasCorrectPositioning, hasLegacyPositioning, hasNormalPositioning, setLegacyLevel
-
-
-
-
Constructor Detail
-
TextLabel
public TextLabel()
Default constructor.The text stream contains no content and has no pool/mapping assocotiation.
-
TextLabel
public TextLabel(TextLabel oSource)
Copy constructor.Copies all contents of the text label.
-
TextLabel
public TextLabel(java.lang.String sSource)
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 Detail
-
copyFrom
public void copyFrom(TextLabel oSource)
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
public boolean notEqual(TextLabel oCompare)
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.
-
-