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 BaseSwingGUIDisplayCellListButtonFrame  view BaseSwingGUIDisplayCellListButtonFrame download BaseSwingGUIDisplayCellListButtonFrame.java

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

abstract class BaseSwingGUIDisplayCellListButtonFrame
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  BaseSwingGUIAgentImpl guiAgent
           
private  java.awt.Frame myFrame
           
private  javax.swing.JPanel myPanel
           
protected  javax.swing.JComboBox serverListChoice
          the actual menu that will be filled with the choices
 
Constructor Summary
BaseSwingGUIDisplayCellListButtonFrame(BaseSwingGUIAgentImpl 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 BaseSwingGUIAgentImpl guiAgent

cms

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

myFrame

private java.awt.Frame myFrame

myPanel

private javax.swing.JPanel myPanel

serverListChoice

protected javax.swing.JComboBox serverListChoice
the actual menu that will be filled with the choices

Constructor Detail

BaseSwingGUIDisplayCellListButtonFrame

public BaseSwingGUIDisplayCellListButtonFrame(BaseSwingGUIAgentImpl 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