Class RemoteService.context.ClientFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class RemoteService.context.ClientFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----JavaAgent.context.AgentFrame
                                           |
                                           +----RemoteService.context.RSFrame
                                                   |
                                                   +----RemoteService.context.ClientFrame

public class ClientFrame
extends RSFrame
Subclass of RSFrame which provides an interface for a ClientAgent.


Copyright (c) 1995, H. Robert Frost, Stanford University. All rights reserved.

Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies, Inc. All rights reserved.

RESTRICTED RIGHTS LEGEND: Use, duplication or disclosure by the Government is subject to restrictions as set forth in subparagraph(c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and in similar clauses in the FAR and NASA FAR supplement.

This software is bound by the terms and conditions listed in the attached LICENSE file.



Variable Index

 o Client
 o GetAvailable

Constructor Index

 o ClientFrame(AgentContext, String)
Constructor for an ClientFrame.

Method Index

 o action(Event, Object)
Called when an event happens in the ClientFrame.
 o doubleClickAction(int)
Called when one of the Service icons is double-clicked, must be overridden.
 o GetAvailableAction()
Sends a message to the ServiceBroker requesting a list of currently available services.

Variables

 o Client
  protected Menu Client
 o GetAvailable
  protected MenuItem GetAvailable

Constructors

 o ClientFrame
  public ClientFrame(AgentContext context,
                     String title)
Constructor for an ClientFrame. Creates GUI components.
Parameters:
context - AgentContext which created this gui.
title - Title for the frame.

Methods

 o action
  public boolean action(Event evt,
                        Object arg)
Called when an event happens in the ClientFrame. Used to take action on menu bar selections.
Parameters:
evt - The event which triggered the method call.
arg - Who called the method. For buttons, string name of button.
Overrides:
action in class RSFrame
 o GetAvailableAction
  protected void GetAvailableAction()
Sends a message to the ServiceBroker requesting a list of currently available services.
 o doubleClickAction
  protected void doubleClickAction(int index)
Called when one of the Service icons is double-clicked, must be overridden.
Parameters:
index - Index of the selected icon.
Overrides:
doubleClickAction in class RSFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index