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

Class RemoteService.context.RSFrame

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

public class RSFrame
extends AgentFrame
Provides a generic interface for all agents in the RemoteService package. Each AvailableService is represented by a gif thumbnail and a description file. The thumbnails are displayed in a scrollable canvas, and when selected, the description for that service is shown in the description text area. Double clicks on thumbnails are detected but not acted on.


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 BottomPanel
 o CLIENT_WINDOW_TYPE
 o names
 o pb
 o ps
 o ServicePanel
 o StatPanel
 o tdc

Constructor Index

 o RSFrame(AgentContext, String)
Constructor for an RS Frame.

Method Index

 o action(Event, Object)
Called when an event happens in the RSFrame.
 o addService(String, String, String)
Adds the gif and descrip for a specific Service to the Window.
 o doubleClickAction(int)
Called when one of the Service icons is double-clicked, must be overridden.
 o getDescription(AvailableService)
Called to get the description String from the specified service.
 o getServices()
Gets the available services from the DesignAgent, adds new services and removes services which are no longer present.
 o handleEvent(Event)
Handles double-clicks on service thumbnails.
 o removeService(String)
Removes the named Service from the display.
 o resourceChanged(String)
Called when some Agent resource has changed, needs to be overridden.
 o terminatePanels()
Terminates all of the panels.

Variables

 o pb
  protected PictureBrowser pb
 o ps
  protected PictureSelector ps
 o tdc
  protected TextDisplayCanvas tdc
 o ServicePanel
  protected Panel ServicePanel
 o BottomPanel
  protected Panel BottomPanel
 o StatPanel
  protected Panel StatPanel
 o CLIENT_WINDOW_TYPE
  protected final int CLIENT_WINDOW_TYPE
 o names
  protected Vector names

Constructors

 o RSFrame
  public RSFrame(AgentContext context,
                 String title)
Constructor for an RS Frame. 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 RSFrame. 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 AgentFrame
 o handleEvent
  public boolean handleEvent(Event evt)
Handles double-clicks on service thumbnails.
Overrides:
handleEvent in class Component
 o terminatePanels
  protected void terminatePanels()
Terminates all of the panels.
Overrides:
terminatePanels in class AgentFrame
 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.
 o resourceChanged
  public void resourceChanged(String type)
Called when some Agent resource has changed, needs to be overridden.
Parameters:
type - String identifying the type of the resource.
Overrides:
resourceChanged in class AgentFrame
 o getServices
  protected void getServices()
Gets the available services from the DesignAgent, adds new services and removes services which are no longer present.
 o removeService
  protected void removeService(String name)
Removes the named Service from the display.
 o addService
  protected void addService(String name,
                            String gifFile,
                            String descr)
Adds the gif and descrip for a specific Service to the Window.
 o getDescription
  protected String getDescription(AvailableService as)
Called to get the description String from the specified service.
Parameters:
service - name of the service.

All Packages  Class Hierarchy  This Package  Previous  Next  Index