public class SapWindow extends SapComponent implements IMoveable
修飾子 | コンストラクタと説明 |
---|---|
protected |
SapWindow(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい SapWindow を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close()
ウィンドウを閉じます。
|
void |
closeSynchron()
ウィンドウを閉じ、ウィンドウが実際に閉じられるまで待ちます。
|
void |
closeSynchron(boolean closeConfirm)
ウィンドウを閉じ、ウィンドウが実際に閉じられるまで待ちます。
|
List<IMoveable> |
getCloseWindows()
アプリケーションのメイン ウィンドウだけが開いている状態にするために、閉じる必要のあるウィンドウを返します。
|
TestObject |
getFocus()
入力フォーカスを持つオブジェクトを返します。
|
SapComponent |
getGuiFocus()
[読み取り専用] 現在フォーカスを持つ SAP GUI 内の要素。
|
IMoveable |
getNextCloseWindow()
アプリケーションのメイン ウィンドウ以外のすべてのウィンドウを閉じるために、閉じる必要のある次のウィンドウを返します。
|
SapComponent |
getSystemFocus()
[読み取り専用] サーバー アプリケーションの視点からフォーカスを持つ SAP GUI 内の要素。
|
int |
getWindowHandle()
[読み取り専用] GuiShell に接続しているコントロールのウィンドウ ハンドル。
|
int |
getWindowState()
[読み取り専用] ウィンドウの状態。
|
int |
getWorkingPaneHeight()
[読み取り専用] 現在の作業ペインの高さ。
|
int |
getWorkingPaneWidth()
[読み取り専用] 現在の作業ペインの幅。
|
boolean |
isActive()
ウィンドウがアクティブに設定されているかどうかを返します。
|
boolean |
isButtonbarVisible()
[読み取り専用] アプリケーション ツール バー(SAP GUI の下のツール バー)が可視かどうか。
|
boolean |
isStatusbarVisible()
[読み取り専用] ステータス バーが可視かどうか。
|
boolean |
isTitlebarVisible()
[読み取り専用] タイトル バーが可視かどうか。
|
boolean |
isToolbarVisible()
[読み取り専用] ツール バーが可視かどうか。
|
boolean |
isVkeyAllowed(VKey vkey)
このメソッドは、指定した仮想キーが現在の画面上で実行できる場合に true を返します。
|
void |
jumpBackward()
ウィンドウに対して Ctrl+Shift+Tab キーを実行して、1 ブロック後ろに移動します。
|
void |
jumpForward()
ウィンドウに対して Ctrl+Tab キーを実行して、1 ブロック前に移動します。
|
void |
maximize()
ウィンドウを最大化します。
|
void |
minimize()
ウィンドウを最小化します。
|
void |
move(Point pos)
ウィンドウを移動します。
|
void |
resizeWorkingPane(int width,
int height,
boolean throwOnFail)
ResizeWorkingPane 関数は、文字単位で指定された幅と高さに利用可能な作業領域のウィンドウ サイズを変更します。
|
void |
resizeWorkingPaneEx(int width,
int height,
boolean throwOnFail)
ResizeWorkingPaneEx 関数は、ピクセルで指定された幅と高さに利用可能な作業領域のウィンドウ サイズを変更します。
|
void |
restore()
ウィンドウを元のサイズに戻します。
|
void |
sendVKey(VKey vkey)
システムに仮想キーを送信します。
|
void |
setActive()
ウィンドウをアクティブにします。
|
void |
size(int width,
int height)
ウィンドウのサイズを変更します。
|
void |
tabBackward()
ウィンドウに対して Shift+Tab キーを実行して、1 要素後ろに移動します。
|
void |
tabForward()
ウィンドウに対して Tab キーを実行して、1 要素前に移動します。
|
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenu
captureBitmap, 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, 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 SapWindow(JtfObjectHandle handle, Desktop desktop)
handle
- SapWindow を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップ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
インタフェース内 IMoveable
public 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
インタフェース内 IMoveable
closeConfirm
- [変更を保存] ダイアログのような、ウィンドウを閉じる際に表示される確認ダイアログを閉じるかどうかを指定します。 確認ダイアログを閉じる場合は true
を指定します。false
を指定すると、確認ダイアログが表示された場合に例外がスローされます。 true
に設定されている場合、確認ダイアログを閉じるために選択するボタンを決定するために OPT_CLOSE_CONFIRM_BUTTONS オプションの値が使用されます。public List<IMoveable> getCloseWindows()
getCloseWindows
インタフェース内 IMoveable
public TestObject getFocus()
public IMoveable getNextCloseWindow()
getNextCloseWindow
インタフェース内 IMoveable
public boolean isVkeyAllowed(VKey vkey)
vkey
- 評価するキーpublic void jumpBackward()
public void jumpForward()
public void resizeWorkingPane(int width, int height, boolean throwOnFail)
width
- 作業ペインの新しい幅height
- 作業ペインの新しい高さthrowOnFail
- 失敗したときに例外をスローするかどうかpublic void resizeWorkingPaneEx(int width, int height, boolean throwOnFail)
width
- 作業ペインの新しい幅height
- 作業ペインの新しい高さthrowOnFail
- 失敗したときに例外をスローするかどうかpublic void sendVKey(VKey vkey)
vkey
- 送信する仮想キーpublic void size(int width, int height)
public void tabBackward()
public void tabForward()
public boolean isButtonbarVisible()
public SapComponent getGuiFocus()
public boolean isStatusbarVisible()
public SapComponent getSystemFocus()
public boolean isTitlebarVisible()
public boolean isToolbarVisible()
public int getWindowHandle()
public int getWindowState()
getWindowState
インタフェース内 IMoveable
public int getWorkingPaneHeight()
public int getWorkingPaneWidth()
Copyright 2009-2012 Micro Focus. All Rights Reserved.