Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.mit.media.hive.agent.hiveui
Class BaseAWTGUIDisplayCellListButtonFrame  view BaseAWTGUIDisplayCellListButtonFrame download BaseAWTGUIDisplayCellListButtonFrame.java

java.lang.Object
  extended byedu.mit.media.hive.agent.hiveui.BaseAWTGUIDisplayCellListButtonFrame
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
BaseAWTGUIShutDownCellUI, BaseAWTGUIStopMonitorCellUI

abstract class BaseAWTGUIDisplayCellListButtonFrame
extends java.lang.Object
implements java.awt.event.ActionListener

this class pops up a frame that has the servers listed in a choice field and then a button -- whatever extends this class can set what the title of the frame is, what the button label says, and the action performed when the button is pushed. right now this class is used for the shut down server and the stop monitoring server boxes


Field Summary
protected  edu.mit.media.hive.shadow.cell.ComponentManagerShadow cms
           
protected  BaseAWTGUIAgentImpl guiAgent
           
private  java.awt.Frame myFrame
           
private  java.awt.Panel myPanel
           
protected  java.awt.Choice serverListChoice
          the actual menu that will be filled with the choices
 
Constructor Summary
BaseAWTGUIDisplayCellListButtonFrame(BaseAWTGUIAgentImpl guiAgent, edu.mit.media.hive.shadow.cell.ComponentManagerShadow cms)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
protected abstract  void buttonPressed()
           
protected abstract  java.lang.String getButtonLabel()
           
protected abstract  java.lang.String getTitle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

guiAgent

protected BaseAWTGUIAgentImpl guiAgent

cms

protected edu.mit.media.hive.shadow.cell.ComponentManagerShadow cms

myFrame

private java.awt.Frame myFrame

myPanel

private java.awt.Panel myPanel

serverListChoice

protected java.awt.Choice serverListChoice
the actual menu that will be filled with the choices

Constructor Detail

BaseAWTGUIDisplayCellListButtonFrame

public BaseAWTGUIDisplayCellListButtonFrame(BaseAWTGUIAgentImpl guiAgent,
                                            edu.mit.media.hive.shadow.cell.ComponentManagerShadow cms)
Method Detail

getButtonLabel

protected abstract java.lang.String getButtonLabel()

getTitle

protected abstract java.lang.String getTitle()

buttonPressed

protected abstract void buttonPressed()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener