All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.GUI.RegPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----duckMachine.GUI.RegPanel

public class RegPanel
extends Panel
A panel for a register like the PC, the IR, or the ACC.


Constructor Index

 o RegPanel(String, Word, boolean)

Method Index

 o getTextField()
If the value can be edited, somebody will want to add a listener to the textfield.
 o updatePanel(Word)

Constructors

 o RegPanel
 public RegPanel(String name,
                 Word val,
                 boolean canEdit)

Methods

 o getTextField
 public TextField getTextField()
If the value can be edited, somebody will want to add a listener to the textfield. We are not responsible for this; we just return the textfield to interested clients.

 o updatePanel
 public void updatePanel(Word newval)

All Packages  Class Hierarchy  This Package  Previous  Next  Index