    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JavaAgent.context.ViewMessagePanel

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----JavaAgent.context.InterfacePanel
                                       |
                                       +----JavaAgent.context.ViewMessagePanel

public class ViewMessagePanel
extends InterfacePanel

Panel which allows a user to view sent and received KQMLmessages.

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.

##

ButtonPanel
Content
ContentLabel
ContentPanel
current_msg
CurrentMsg
CurrentMsgLabel
displayed_messages
Done
DownMsg
Interpreter
InterpreterLabel
Language
LanguageLabel
messages_in
messages_out
MessageSelect
Performative
PerformativeLabel
Receiver
ReceiverLabel
Sender
SenderLabel
TopPanel
total_msg
TotalMsg
TotalMsgLabel
UpMsg

##

ViewMessagePanel(AgentFrame)
  Creates a ViewMessagePanel for a subclass of AgentFrame.

##

action(Event, Object)
  Called when an event happens.
resourceChanged(String)
  Called when either a message has arrived or one has been sent.

##

current_msg

     protected int current_msg

total_msg

     protected int total_msg

messages_in

     protected Vector messages_in

messages_out

     protected Vector messages_out

displayed_messages

     protected Vector displayed_messages

TopPanel

     protected Panel TopPanel

ButtonPanel

     protected Panel ButtonPanel

ContentPanel

     protected Panel ContentPanel

MessageSelect

     protected Choice MessageSelect

CurrentMsgLabel

     protected Label CurrentMsgLabel

CurrentMsg

     protected Label CurrentMsg

TotalMsgLabel

     protected Label TotalMsgLabel

TotalMsg

     protected Label TotalMsg

UpMsg

     protected Button UpMsg

DownMsg

     protected Button DownMsg

PerformativeLabel

     protected Label PerformativeLabel

Performative

     protected TextField Performative

SenderLabel

     protected Label SenderLabel

Sender

     protected TextField Sender

ReceiverLabel

     protected Label ReceiverLabel

Receiver

     protected TextField Receiver

LanguageLabel

     protected Label LanguageLabel

Language

     protected TextField Language

InterpreterLabel

     protected Label InterpreterLabel

Interpreter

     protected TextField Interpreter

ContentLabel

     protected Label ContentLabel

Content

     protected TextArea Content

Done

     protected Button Done

##

ViewMessagePanel

     public ViewMessagePanel(AgentFrame frame)

  Creates a ViewMessagePanel for a subclass of AgentFrame.

  Parameters:
    frame - AgentFrame for which the panel is created.

##

resourceChanged

     protected void resourceChanged(String type)

  Called when either a message has arrived or one has been sent.

  Overrides:
    resourceChanged in class InterfacePanel

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