Class JavaAgent.context.ViewResourcePanel
All Packages Class Hierarchy This Package Previous Next Index
Class JavaAgent.context.ViewResourcePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JavaAgent.context.InterfacePanel
|
+----JavaAgent.context.ViewResourcePanel
- public class ViewResourcePanel
- extends InterfacePanel
Panel which allows a user to view the Resource elements possessed
by an Agent.
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.
-
current_resource
-
-
Done
-
-
ResourceDisplay
-
-
ResourceSelect
-
-
ViewResourcePanel(AgentFrame)
- Creates a ViewResourcePanel for subclass of AgentFrame.
-
action(Event, Object)
- Called when an event happens.
-
resourceChanged(String)
- Called when a displayed resource has changed.
-
showResource()
- Show the currently selected resource.
ResourceSelect
protected Choice ResourceSelect
Done
protected Button Done
ResourceDisplay
protected TextArea ResourceDisplay
current_resource
protected String current_resource
ViewResourcePanel
protected ViewResourcePanel(AgentFrame frame)
- Creates a ViewResourcePanel for subclass of AgentFrame.
- Parameters:
- frame - The object for which the panel is created.
resourceChanged
protected void resourceChanged(String type)
- Called when a displayed resource has changed.
- Overrides:
- resourceChanged in class InterfacePanel
showResource
protected void showResource()
- Show the currently selected resource.
action
public boolean action(Event evt,
Object arg)
- Called when an event happens. Currently used to identify
when buttons are pushed.
- Parameters:
- evt - The event which triggered the method call.
- arg - Who called the method. For buttons, string name of button.
- Overrides:
- action in class Component
All Packages Class Hierarchy This Package Previous Next Index