agentland.software
Interface MSWindowsDisplay

All Known Implementing Classes:
MSWindowsDisplayAgent

public interface MSWindowsDisplay
extends Agent


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 void activateWindow(String w)
           
 Vector enumerateWindows()
           
 void hideWindow(String w)
           
 void maximizeAndActivateWindow(String w)
           
 void minimizeWindow(String w)
           
 void resizeWindow(String w, int x, int y, int width, int height, int placement, int options)
           
 void restoreWindow(String w)
           
 void runCommand(String command)
          Run a command on behalf of the sending program (so controller programs do not have to be tied to a particular machine)
 void sendKeyPress(int key)
           
 void sendKeyToWindow(int key, String name)
           
 void sendMetaKeyPress(int key)
           
 void sendMetaKeyToWindow(int key, String name)
           
 void sendModifiedKeyPress(int modifier, int key)
           
 void sendModifiedKeyPressToWindow(int modifier, int key, String name)
           
 void setWindowSelectionMethod(int method)
           
 void showWindowOperation(String w, int cmd)
           
 String windowContaining(String str)
          Returns a window name containing a substring
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Method Detail

setWindowSelectionMethod

public void setWindowSelectionMethod(int method)
                              throws RemoteException

enumerateWindows

public Vector enumerateWindows()
                        throws RemoteException,
                               MSWindowsDisplayException

windowContaining

public String windowContaining(String str)
                        throws RemoteException,
                               MSWindowsDisplayException
Returns a window name containing a substring

maximizeAndActivateWindow

public void maximizeAndActivateWindow(String w)
                               throws RemoteException,
                                      MSWindowsDisplayException

hideWindow

public void hideWindow(String w)
                throws RemoteException,
                       MSWindowsDisplayException

showWindowOperation

public void showWindowOperation(String w,
                                int cmd)
                         throws RemoteException,
                                MSWindowsDisplayException

activateWindow

public void activateWindow(String w)
                    throws RemoteException,
                           MSWindowsDisplayException

minimizeWindow

public void minimizeWindow(String w)
                    throws RemoteException,
                           MSWindowsDisplayException

restoreWindow

public void restoreWindow(String w)
                   throws RemoteException,
                          MSWindowsDisplayException

resizeWindow

public void resizeWindow(String w,
                         int x,
                         int y,
                         int width,
                         int height,
                         int placement,
                         int options)
                  throws RemoteException,
                         MSWindowsDisplayException

sendKeyPress

public void sendKeyPress(int key)
                  throws RemoteException

sendModifiedKeyPress

public void sendModifiedKeyPress(int modifier,
                                 int key)
                          throws RemoteException

sendMetaKeyPress

public void sendMetaKeyPress(int key)
                      throws RemoteException

sendKeyToWindow

public void sendKeyToWindow(int key,
                            String name)
                     throws RemoteException,
                            MSWindowsDisplayException

sendMetaKeyToWindow

public void sendMetaKeyToWindow(int key,
                                String name)
                         throws RemoteException,
                                MSWindowsDisplayException

sendModifiedKeyPressToWindow

public void sendModifiedKeyPressToWindow(int modifier,
                                         int key,
                                         String name)
                                  throws RemoteException,
                                         MSWindowsDisplayException

runCommand

public void runCommand(String command)
                throws RemoteException
Run a command on behalf of the sending program (so controller programs do not have to be tied to a particular machine)