|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--satin.aro.AROobject
|
+--satin.aro.AROremoteObject
|
+--satin.core.AObject
|
+--satin.uishell.AApplication
public class AApplication
extends AObject
Represents a C++ AApplication object in an ARO server.
There can be at most one AApplication object in a given
ARO server.
| Fields inherited from class satin.aro.AROremoteObject |
server |
| Fields inherited from class satin.aro.AROobject |
id |
| Constructor Summary | |
|
AApplication(AROremoteServer rs)
Constructs an object representing the AApplication in
the given ARO server. |
protected |
AApplication(AROremoteServer rs,
java.lang.String subrName)
Constructs an object representing the subclassed AApplication in the given ARO server. |
|
AApplication(java.lang.String hostName,
int port)
Constructs an object representing the AApplication in
the ARO server at the given host and port. |
protected |
AApplication(java.lang.String hostName,
int port,
java.lang.String subrName)
Constructs an object representing the subclassed AApplication in the ARO server at the given host and port. |
| Method Summary | |
void |
broadcastNickNum(int cmd)
Tells the application to process a nicknum event. |
void |
broadcastNickNum(int cmd,
ModifierKey[] modKeys)
Tells the application to process a nicknum event. |
AWindow |
getActiveWindow()
Returns the active window, or null if no window is active in the application. |
boolean |
getDlogBatchMode()
Gets "batch" mode for simple dialogs. |
AWindow |
getWindow(java.lang.String title)
Returns the window with the given title. |
AWindow[] |
getWindows()
Returns all the AWindow objects in
the application. |
void |
mouseDown()
Tells the application to behave as if a mouse down event occurred at the current cursor position. |
void |
mouseUp()
Tells the application to behave as if a mouse up event occurred at the current cursor position. |
void |
postMouseClickEvent()
Posts a mouse click event (but doesn't wait for it to be processed). |
void |
postMouseDownEvent()
Posts a mouse down event (but doesn't wait for it to be processed) This does not correspond to any C++ method, but is a front-end to the Mac OS "PostEvent" call. |
void |
postMouseUpEvent()
Posts a mouse up event (but doesn't wait for it to be processed) This does not correspond to any C++ method, but is a front-end to the Mac OS "PostEvent" call. |
void |
postNickNumEvent(int cmd)
Posts a nicknum event (but doesn't wait for it to be processed). |
void |
postNickNumEvent(int cmd,
ModifierKey[] modKeys)
Posts a nicknum event (but doesn't wait for it to be processed). |
boolean |
setDlogBatchMode(boolean on)
Sets "batch" mode for simple dialogs. |
void |
setNextPopupMenuItemToSelect(int item)
Set a popup menu item to be selected. |
void |
setNextPopupMenuItemToSelect(java.lang.String item)
Set a popup menu item to be selected. |
AWindow |
waitForActiveWindow(java.lang.String title,
double timeout)
Waits for the window with the given title to become the active window. |
boolean |
wasPopupMenuItemSelected()
Returns whether the menu item was selected. |
| Methods inherited from class satin.core.AObject |
className, isInstanceOf |
| Methods inherited from class satin.aro.AROremoteObject |
equals, exists, getAROclassName |
| Methods inherited from class satin.aro.AROobject |
getID, setID, toAROstring, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AApplication(AROremoteServer rs)
throws java.io.IOException,
AROexception
AApplication in
the given ARO server. There can be only one AApplication
object in an ARO server, so it need not be identified by the caller
in any way. The AApplication object is obtained from
the server by sending a "GetApplication" request.
rsAROremoteServer s = new AROremoteServer("MyComputer", 12345);
AApplication a = new AApplication(s);
public AApplication(java.lang.String hostName,
int port)
throws java.io.IOException,
AROexception
AApplication in
the ARO server at the given host and port.
This constructor instantiates an AROremoteServer
object, and stores a reference to it in the server
field. It then sends the server a "GetApplication" request to get
the (one and only) AApplication object.
hostNameport
protected AApplication(AROremoteServer rs,
java.lang.String subrName)
throws java.io.IOException,
AROexception
AApplication in the given ARO server.
This constructor is provided for use by subclasses where the
subclassed AApplication object must be obtained by
using an ARO request that is different from the "GetApplication"
used by other AApplication constructors.
rssubrNameclass MyApp extends AApplication
{
public MyApp (AROremoteServer s)
{
super(s, "GetMyApp");
}
// ...
}
protected AApplication(java.lang.String hostName,
int port,
java.lang.String subrName)
throws java.io.IOException,
AROexception
AApplication in the ARO server at the given host and port.
This constructor instantiates an AROremoteServer object,
and stores a reference to it in the server field.
This constructor is provided for use by subclasses where the
subclassed AApplication object must be obtained by
using an ARO request that is different from the "GetApplication"
used by other AApplication constructors.
hostNameportsubrNameclass MyApp extends AApplication
{
public MyApp (String hostName, int port)
{
super(hostName, port, "GetMyApp");
}
// ...
}
| Method Detail |
public AWindow[] getWindows()
throws java.io.IOException,
AROexception
AWindow objects in
the application.
The windows are returned regardless of whether they are currently
visible on the screen.
This is a front-end to the C++ method of the same name.
AWindows.
public AWindow getWindow(java.lang.String title)
throws java.io.IOException,
AROexception,
java.lang.Exception
title
public AWindow getActiveWindow()
throws java.io.IOException,
AROexception,
java.lang.Exception
public AWindow waitForActiveWindow(java.lang.String title,
double timeout)
throws java.io.IOException,
AROexception,
java.lang.Exception
titletimeout
public void postMouseClickEvent()
throws java.io.IOException,
AROexception
public void postMouseUpEvent()
throws java.io.IOException,
AROexception
public void postMouseDownEvent()
throws java.io.IOException,
AROexception
public void mouseDown()
throws java.io.IOException,
AROexception
HandleEvent
method, which does not return until the event has been processed.
public void mouseUp()
throws java.io.IOException,
AROexception
HandleEvent
method, which does not return until the event has been processed.
public void postNickNumEvent(int cmd)
throws java.io.IOException,
AROexception
broadcastNickNum,
provides a "back-door" method of selecting a menu item or clicking
on a button. Note that the effect of posting or broadcasting a nicknum
usually depends on what window is currently active. In the Media
Composer, a complete list of nicknums can be obtained by typing
"dumpnicks" in the console. They are also available from
satin.mediacomposer.NickNums.
This is a front-end to the C++ method of the same name.
The request is only to post the nicknum event for processing during
the application's main event loop; unlike
broadcastNickNum,
it does not wait for the nicknum event to be processed.
cmd
public void postNickNumEvent(int cmd,
ModifierKey[] modKeys)
throws java.io.IOException,
AROexception
broadcastNickNum,
provides a "back-door" method of selecting a menu item or clicking
on a button. Note that the effect of posting or broadcasting a nicknum
usually depends on what window is currently active. In the Media
Composer, a complete list of nicknums can be obtained by typing
"dumpnicks" in the console. They are also available from
satin.mediacomposer.NickNums.
This is a front-end to the C++ method of the same name.
The request is only to post the nicknum event for processing during
the application's main event loop; unlike
broadcastNickNum,
it does not wait for the nicknum event to be processed.
cmdmodKeys
public void broadcastNickNum(int cmd)
throws java.io.IOException,
AROexception
postNickNumEvent,
provides a "back-door" method of selecting a menu item or clicking
on a button. Note that the effect of posting or broadcasting a nicknum
usually depends on what window is currently active. In the Media
Composer, a complete list of nicknums can be obtained by typing
"dumpnicks" in the console. They are also available from
satin.mediacomposer.NickNums.
This is a front-end to the C++ method of the same name. Unlike
postNickNumEvent,
this method does not return until the nicknum has been processed.
cmd
public void broadcastNickNum(int cmd,
ModifierKey[] modKeys)
throws java.io.IOException,
AROexception
postNickNumEvent,
provides a "back-door" method of selecting a menu item or clicking
on a button. Note that the effect of posting or broadcasting a nicknum
usually depends on what window is currently active. In the Media
Composer, a complete list of nicknums can be obtained by typing
"dumpnicks" in the console. They are also available from
satin.mediacomposer.NickNums.
This is a front-end to the C++ method of the same name. Unlike
postNickNumEvent,
this method does not return until the nicknum has been processed.
cmdmodKeys
public void setNextPopupMenuItemToSelect(int item)
throws java.io.IOException,
AROexception
You can select an item by name by using
setNextPopupMenuItemToSelect(String).
After clicking on the menu, use
wasPopupMenuItemSelected to determine whether the item was actually
selected.
This ARO request is processed immediately, regardless of the state of the ARO server application.
item
public void setNextPopupMenuItemToSelect(java.lang.String item)
throws java.io.IOException,
AROexception
setNextPopupMenuItemToSelect(int). After clicking on the menu,
use wasPopupMenuItemSelected to determine whether the item was actually
selected.
item
public boolean wasPopupMenuItemSelected()
throws java.io.IOException,
AROexception
setNextPopupMenuItemToSelect(String) and
setNextPopupMenuItemToSelect(int).
public boolean getDlogBatchMode()
throws java.io.IOException,
AROexception
setDlogBatchMode.
public boolean setDlogBatchMode(boolean on)
throws java.io.IOException,
AROexception
on| Revision History |
9/24/01 Ed Stauff - added getActiveWindow.
7/26/01 - code review.
5/23/01 Ed Stauff - added setDlogBatchMode, getDlogBatchMode.
4/6/01 Ed Stauff - changes per review.
3/28/01 Ed Stauff - initial review by Satin team.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
AApplication.java (PRIVATE SOURCES)