Top Fields Constructors Methods
com.sun.glass.ui.win

pack-priv Class WinTextRangeProvider

extends Object
Class Inheritance
Static Imports
javafx.scene.AccessibleAttribute.*

Field Summary

Modifier and TypeField and Description
private WinAccessible
private int
private int
private static int
private long
private int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private native long
_createTextRangeProvider(long accessible)

private native void
_destroyTextRangeProvider(long textRangeProvider)

private static native void
private void
private long
private boolean
private int
CompareEndpoints(int endpoint, WinTextRangeProvider targetRange, int targetEndpoint)

pack-priv void
private void
private long
FindAttribute(int attributeId, WinVariant val, boolean backward)

private long
FindText(String text, boolean backward, boolean ignoreCase)

private Object
getAttribute(AccessibleAttribute attribute, Object... parameters)

private WinVariant
GetAttributeValue(int attributeId)

private double[]
private long[]
private long
pack-priv int
pack-priv static int
getEndIndex(int
The start index in a string. Needs to be 0 or more (not checked in the code).
startIndex
,
int
The requested length of a string when starting from "start". Negative numbers are treated as full length.
length
,
int
The maximum end index to return. Needs to be equal or greater than startIndex (not checked in the code).
endIndex
)

In the context of substrings, this method calculates the end index based on the start index, requested string length, and the maximum end index.

pack-priv long
pack-priv int
private String
GetText(int
The maximum length of the returned string
maxLength
)

Returns the text contained in the TEXT attribute, starting from the start index and ending at the end index.

private boolean
isWordStart(BreakIterator bi, String text, int offset)

private int
Move(int unit, final int requestedCount)

private void
MoveEndpointByRange(int endpoint, WinTextRangeProvider targetRange, int targetEndpoint)

private int
MoveEndpointByUnit(int endpoint, int unit, final int requestedCount)

private void
private void
ScrollIntoView(boolean alignToTop)

private void
pack-priv void
setRange(int start, int end)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

accessibleback to summary
private WinAccessible accessible
endback to summary
private int end
idback to summary
private int id
idCountback to summary
private static int idCount
peerback to summary
private long peer
startback to summary
private int start
TextPatternRangeEndpoint_Endback to summary
private static final int TextPatternRangeEndpoint_End
TextPatternRangeEndpoint_Startback to summary
private static final int TextPatternRangeEndpoint_Start
TextUnit_Characterback to summary
private static final int TextUnit_Character
TextUnit_Documentback to summary
private static final int TextUnit_Document
TextUnit_Formatback to summary
private static final int TextUnit_Format
TextUnit_Lineback to summary
private static final int TextUnit_Line
TextUnit_Pageback to summary
private static final int TextUnit_Page
TextUnit_Paragraphback to summary
private static final int TextUnit_Paragraph
TextUnit_Wordback to summary
private static final int TextUnit_Word
UIA_FontNameAttributeIdback to summary
private static final int UIA_FontNameAttributeId
UIA_FontSizeAttributeIdback to summary
private static final int UIA_FontSizeAttributeId
UIA_FontWeightAttributeIdback to summary
private static final int UIA_FontWeightAttributeId
UIA_IsHiddenAttributeIdback to summary
private static final int UIA_IsHiddenAttributeId
UIA_IsItalicAttributeIdback to summary
private static final int UIA_IsItalicAttributeId
UIA_IsReadOnlyAttributeIdback to summary
private static final int UIA_IsReadOnlyAttributeId

Constructor Detail

WinTextRangeProviderback to summary
pack-priv WinTextRangeProvider(WinAccessible accessible)

Method Detail

_createTextRangeProviderback to summary
private native long _createTextRangeProvider(long accessible)
_destroyTextRangeProviderback to summary
private native void _destroyTextRangeProvider(long textRangeProvider)
_initIDsback to summary
private static native void _initIDs()
AddToSelectionback to summary
private void AddToSelection()
Cloneback to summary
private long Clone()
Compareback to summary
private boolean Compare(WinTextRangeProvider range)
CompareEndpointsback to summary
private int CompareEndpoints(int endpoint, WinTextRangeProvider targetRange, int targetEndpoint)
disposeback to summary
pack-priv void dispose()
ExpandToEnclosingUnitback to summary
private void ExpandToEnclosingUnit(int unit)
FindAttributeback to summary
private long FindAttribute(int attributeId, WinVariant val, boolean backward)
FindTextback to summary
private long FindText(String text, boolean backward, boolean ignoreCase)
getAttributeback to summary
private Object getAttribute(AccessibleAttribute attribute, Object... parameters)
GetAttributeValueback to summary
private WinVariant GetAttributeValue(int attributeId)
GetBoundingRectanglesback to summary
private double[] GetBoundingRectangles()
GetChildrenback to summary
private long[] GetChildren()
GetEnclosingElementback to summary
private long GetEnclosingElement()
getEndback to summary
pack-priv int getEnd()
getEndIndexback to summary
pack-priv static int getEndIndex(int startIndex, int length, int endIndex)

In the context of substrings, this method calculates the end index based on the start index, requested string length, and the maximum end index. 0 <= start <= end <= length; see validateRange(String).

Parameters
startIndex:int

The start index in a string. Needs to be 0 or more (not checked in the code).

length:int

The requested length of a string when starting from "start". Negative numbers are treated as full length.

endIndex:int

The maximum end index to return. Needs to be equal or greater than startIndex (not checked in the code).

getNativeProviderback to summary
pack-priv long getNativeProvider()
getStartback to summary
pack-priv int getStart()
GetTextback to summary
private String GetText(int maxLength)

Returns the text contained in the TEXT attribute, starting from the start index and ending at the end index.

Parameters
maxLength:int

The maximum length of the returned string

isWordStartback to summary
private boolean isWordStart(BreakIterator bi, String text, int offset)
Moveback to summary
private int Move(int unit, final int requestedCount)
MoveEndpointByRangeback to summary
private void MoveEndpointByRange(int endpoint, WinTextRangeProvider targetRange, int targetEndpoint)
MoveEndpointByUnitback to summary
private int MoveEndpointByUnit(int endpoint, int unit, final int requestedCount)
RemoveFromSelectionback to summary
private void RemoveFromSelection()
ScrollIntoViewback to summary
private void ScrollIntoView(boolean alignToTop)
Selectback to summary
private void Select()
setRangeback to summary
pack-priv void setRange(int start, int end)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
validateRangeback to summary
private void validateRange(String text)