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.
-
BottomPanel
-
-
CLIENT_WINDOW_TYPE
-
-
names
-
-
pb
-
-
ps
-
-
ServicePanel
-
-
StatPanel
-
-
tdc
-
-
RSFrame(AgentContext, String)
- Constructor for an RS Frame.
-
action(Event, Object)
- Called when an event happens in the RSFrame.
-
addService(String, String, String)
- Adds the gif and descrip for a specific Service to the Window.
-
doubleClickAction(int)
- Called when one of the Service icons is double-clicked, must be
overridden.
-
getDescription(AvailableService)
- Called to get the description String from the
specified service.
-
getServices()
- Gets the available services from the DesignAgent, adds new services
and removes services which are no longer present.
-
handleEvent(Event)
- Handles double-clicks on service thumbnails.
-
removeService(String)
- Removes the named Service from the display.
-
resourceChanged(String)
- Called when some Agent resource has changed, needs to be overridden.
-
terminatePanels()
- Terminates all of the panels.
pb
protected PictureBrowser pb
ps
protected PictureSelector ps
tdc
protected TextDisplayCanvas tdc
ServicePanel
protected Panel ServicePanel
BottomPanel
protected Panel BottomPanel
StatPanel
protected Panel StatPanel
CLIENT_WINDOW_TYPE
protected final int CLIENT_WINDOW_TYPE
names
protected Vector names
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.
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
handleEvent
public boolean handleEvent(Event evt)
- Handles double-clicks on service thumbnails.
- Overrides:
- handleEvent in class Component
terminatePanels
protected void terminatePanels()
- Terminates all of the panels.
- Overrides:
- terminatePanels in class AgentFrame
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.
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
getServices
protected void getServices()
- Gets the available services from the DesignAgent, adds new services
and removes services which are no longer present.
removeService
protected void removeService(String name)
- Removes the named Service from the display.
addService
protected void addService(String name,
String gifFile,
String descr)
- Adds the gif and descrip for a specific Service to the Window.
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