public class WPFFlowDocumentReader extends WPFControl
Modifier | Constructor and Description |
---|---|
protected |
WPFFlowDocumentReader(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFFlowDocumentReader with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecreaseZoom()
Gets a value that indicates whether the Zoom level can be decreased.
|
boolean |
canGoToNextPage()
Gets a value that indicates whether or not the viewer can jump to the next page in the current Document.
|
boolean |
canGoToPage(int pageNumber)
Returns a value that indicates whether or the viewer is able to jump to the specified page number.
|
boolean |
canGoToPreviousPage()
Gets a value that indicates whether or not the viewer can jump to the previous page in the current Document.
|
boolean |
canIncreaseZoom()
Gets a value that indicates whether the Zoom level can be increased.
|
void |
decreaseZoom()
Decreases the zoom.
|
void |
firstPage()
Jumps to the first page.
|
double |
getMaxZoom()
Gets the maximum allowable Zoom level for the FlowDocumentReader.
|
double |
getMinZoom()
Gets the minimum allowable Zoom level for the FlowDocumentReader.
|
int |
getPageCount()
Gets the total number of pages in the current Document.
|
int |
getPageNumber()
Gets the page number for the current master page.
|
String |
getSelection()
Gets the selected content of the FlowDocumentReader.
|
String |
getText()
Gets the text of the whole Document.
|
ViewingMode |
getViewingMode()
Gets the viewing mode for the FlowDocumentReader.
|
double |
getZoom()
Gets the current zoom level for the FlowDocumentReader.
|
double |
getZoomIncrement()
Gets the zoom increment.
|
void |
goToPage(int pageNumber)
Jumps to the specified page.
|
void |
increaseZoom()
Increases the zoom.
|
void |
lastPage()
Jumps to the last page.
|
void |
nextPage()
Jumps to the next page.
|
void |
previousPage()
Jumps to the previous page.
|
void |
select(String text)
Selects a range of text.
|
void |
select(String text,
int occurrence)
Selects a range of text.
|
void |
switchViewingMode(ViewingMode viewingMode)
Switches the viewing mode.
|
void |
toggleFindDialog()
Toggles the Find dialog.
|
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFFlowDocumentReader(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFFlowDocumentReaderdesktop
- the desktop on which this object livespublic boolean canGoToPage(int pageNumber)
pageNumber
- the page numberpublic void decreaseZoom()
public void firstPage()
public void goToPage(int pageNumber)
pageNumber
- the page numberpublic void increaseZoom()
public void lastPage()
public void nextPage()
public void previousPage()
public void select(String text)
text
- the text to be selectedpublic void select(String text, int occurrence)
text
- the text to be selectedoccurrence
- the zero based occurrence of the specified text to be selected. The value is zero-based.public void switchViewingMode(ViewingMode viewingMode)
viewingMode
- the viewing mode to switch topublic void toggleFindDialog()
public boolean canDecreaseZoom()
public boolean canGoToNextPage()
public boolean canGoToPreviousPage()
public boolean canIncreaseZoom()
public double getMaxZoom()
public double getMinZoom()
public int getPageCount()
public int getPageNumber()
public String getSelection()
public String getText()
getText
in class TestObject
public ViewingMode getViewingMode()
public double getZoom()
public double getZoomIncrement()
Copyright 2009-2012 Micro Focus. All Rights Reserved.