public class WPFWindow extends WPFContentControl implements IMoveable
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
WPFWindow(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい WPFWindow を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
activate()
ウィンドウを前面に表示して、アクティブ化を試みます。
|
void |
close()
ウィンドウを閉じます。
|
void |
closeSynchron()
ウィンドウを閉じ、ウィンドウが実際に閉じられるまで待ちます。
|
void |
closeSynchron(boolean closeConfirm)
ウィンドウを閉じ、ウィンドウが実際に閉じられるまで待ちます。
|
List<IMoveable> |
getCloseWindows()
アプリケーションのメイン ウィンドウだけが開いている状態にするために、閉じる必要のあるウィンドウを返します。
|
TestObject |
getFocus()
入力フォーカスを持つオブジェクトを返します。
|
IMoveable |
getNextCloseWindow()
アプリケーションのメイン ウィンドウ以外のすべてのウィンドウを閉じるために、閉じる必要のある次のウィンドウを返します。
|
String |
getTitle()
[読み取り専用] ウィンドウのタイトル。
|
int |
getWindowState()
[読み取り専用] ウィンドウの状態。
|
boolean |
isActive()
ウィンドウがアクティブに設定されているかどうかを返します。
|
void |
loadAssembly(String assemblyFile)
WPF アプリケーションで指定したパスのアセンブリをロードします。
|
void |
maximize()
ウィンドウを最大化します。
|
void |
minimize()
ウィンドウを最小化します。
|
void |
move(Point pos)
ウィンドウを移動します。
|
void |
restore()
ウィンドウを元のサイズに戻します。
|
void |
setActive()
ウィンドウをアクティブにします。
|
void |
size(int width,
int height)
ウィンドウのサイズを変更します。
|
getContent, hasContentgetFontFamily, getFontSize, getTabIndex, isTabStopgetActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPositionbringIntoView, 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, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, 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, waitForPropertyequals, 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, toStringprotected WPFWindow(JtfObjectHandle handle, Desktop desktop)
handle - WPFWindow を識別するハンドルdesktop - このオブジェクトが存在するデスクトップpublic boolean activate()
public void closeSynchron()
ウィンドウを閉じるために、以下のイベントを順番にウィンドウが閉じるまで試みます。
close() メソッドを呼び出します。closeConfirm パラメーターが true に設定されている場合: オプション OPT_CLOSE_WINDOW_BUTTONS で指定したボタンのリストをクリックします。このメソッドは、Open Agent がウィンドウを閉じる際に役立ついくつかの指定子をサポートします。 説明したオプションに対して適切な値を設定するために Desktop.setOption(String, Object) を使用してこれらの指定子を使用します。 たとえば、ウィンドウを閉じるときに「保存しない」というテキストの 1 つのボタンを持つ確認ダイアログが開く場合、次のように指定します:
desktop.setOption(CommonOptions.OPT_CLOSE_CONFIRM_BUTTONS, Arrays.asList("保存しない"));
ウィンドウを閉じるのに失敗する場合があります。 たとえば、ウィンドウを閉じると、アプリケーションはメッセージ ボックスを表示される場合に、closeConfirm が falseに設定されていたり、あるいは、メッセージ ボックスを閉じるために使用されるボタンが、OPT_CLOSE_CONFIRM_BUTTONS オプションで指定されていない場合には、呼び出しが失敗し、CloseFailedException がスローされます。
closeSynchron インタフェース内 IMoveablepublic void closeSynchron(boolean closeConfirm)
ウィンドウを閉じるために、以下のイベントを順番にウィンドウが閉じるまで試みます。
close() メソッドを呼び出します。closeConfirm パラメーターが true に設定されている場合: オプション OPT_CLOSE_WINDOW_BUTTONS で指定したボタンのリストをクリックします。このメソッドは、Open Agent がウィンドウを閉じる際に役立ついくつかの指定子をサポートします。 説明したオプションに対して適切な値を設定するために Desktop.setOption(String, Object) を使用してこれらの指定子を使用します。 たとえば、ウィンドウを閉じるときに「保存しない」というテキストの 1 つのボタンを持つ確認ダイアログが開く場合、次のように指定します:
desktop.setOption(CommonOptions.OPT_CLOSE_CONFIRM_BUTTONS, Arrays.asList("保存しない"));
ウィンドウを閉じるのに失敗する場合があります。 たとえば、ウィンドウを閉じると、アプリケーションはメッセージ ボックスを表示される場合に、closeConfirm が falseに設定されていたり、あるいは、メッセージ ボックスを閉じるために使用されるボタンが、OPT_CLOSE_CONFIRM_BUTTONS オプションで指定されていない場合には、呼び出しが失敗し、CloseFailedException がスローされます。
closeSynchron インタフェース内 IMoveablecloseConfirm - [変更を保存] ダイアログのような、ウィンドウを閉じる際に表示される確認ダイアログを閉じるかどうかを指定します。 確認ダイアログを閉じる場合は true を指定します。false を指定すると、確認ダイアログが表示された場合に例外がスローされます。 true に設定されている場合、確認ダイアログを閉じるために選択するボタンを決定するために OPT_CLOSE_CONFIRM_BUTTONS オプションの値が使用されます。public List<IMoveable> getCloseWindows()
getCloseWindows インタフェース内 IMoveablepublic TestObject getFocus()
public IMoveable getNextCloseWindow()
getNextCloseWindow インタフェース内 IMoveablepublic void loadAssembly(String assemblyFile)
「動的呼び出し」機能によって呼び出すことができるユーティリティ メソッドを含む追加のアセンブリをロードするための主な使用例です。
assemblyFile - ロードするアセンブリ ファイルのパスですpublic void size(int width,
int height)
public int getWindowState()
getWindowState インタフェース内 IMoveableCopyright 2009-2012 Micro Focus. All Rights Reserved.