rcUserInterface
Class rcMenu

java.lang.Object
  |
  +--rcUserInterface.rcMenu

public class rcMenu
extends java.lang.Object

The top level window has a MS-type menu bar. Several general purpose commands can be handled from this menu, such as closing the windows. Currently we have a "File" menu, a "Configuration menu", where we can enter configuration commands and an "Options" menu where we can set run time options.

Version:
Dec 20, 1999
Author:
C.Witzig

Inner Class Summary
(package private)  class rcMenu.ActAdapter
           
 
Field Summary
(package private) static int ACTION_AUTORUN
           
(package private) static int ACTION_CONFIGURE
           
(package private) static int ACTION_DETACH
           
(package private) static int ACTION_EXIT
           
private  javax.swing.JCheckBoxMenuItem cboxAutoRun
           
private  javax.swing.JCheckBoxMenuItem cboxDownload
           
private  javax.swing.JMenuBar theMenuBar
           
private  java.lang.String thePartitionId
           
 
Constructor Summary
rcMenu(javax.swing.JPanel thePanel)
          Constructor where we do not handle with the parttionID.
rcMenu(javax.swing.JPanel thePanel, java.lang.String thePartitionId)
          Constructor, which needs to know the partitionID and the panel where we attach the menu.
 
Method Summary
 boolean conditionalDownload()
          Returns true if we are downloading the partition in a conditional way.
static void main(java.lang.String[] args)
          Main function to allow debugging of the class in standalone mode.
protected  void makeAction(int theAction)
           
 void update(rcCmdStatus theCmd)
          Update method that is called in periodic intervals.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

thePartitionId

private java.lang.String thePartitionId

theMenuBar

private javax.swing.JMenuBar theMenuBar

cboxDownload

private javax.swing.JCheckBoxMenuItem cboxDownload

cboxAutoRun

private javax.swing.JCheckBoxMenuItem cboxAutoRun

ACTION_DETACH

static final int ACTION_DETACH

ACTION_EXIT

static final int ACTION_EXIT

ACTION_CONFIGURE

static final int ACTION_CONFIGURE

ACTION_AUTORUN

static final int ACTION_AUTORUN
Constructor Detail

rcMenu

public rcMenu(javax.swing.JPanel thePanel,
              java.lang.String thePartitionId)
Constructor, which needs to know the partitionID and the panel where we attach the menu.

rcMenu

public rcMenu(javax.swing.JPanel thePanel)
Constructor where we do not handle with the parttionID.
Method Detail

conditionalDownload

public boolean conditionalDownload()
Returns true if we are downloading the partition in a conditional way. This is the default.

update

public void update(rcCmdStatus theCmd)
Update method that is called in periodic intervals. It makes sure that the current options in the run control server agree with the display in the menu. Currently there is only the option to run in "autorunmmode".

makeAction

protected void makeAction(int theAction)

main

public static void main(java.lang.String[] args)
Main function to allow debugging of the class in standalone mode.