Package PamView
Class PamView
java.lang.Object
PamView.PamView
- All Implemented Interfaces:
 PamViewInterface
- Direct Known Subclasses:
 PamGui
- Author:
 - Doug Gillespie
         
Makes a simple display with a main GUI and a list of data objects.
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JFrameFrame for main window associated with this view (i.e a PamGUI).protected PamControllerInterfaceprotected PamModel - 
Constructor Summary
ConstructorsConstructorDescriptionPamView(PamControllerInterface pamControllerInterface, PamModel pamModelInterface, int frameNumber)  - 
Method Summary
Modifier and TypeMethodDescriptionintabstract Stringabstract voidrenameControlledUnit(PamControlledUnit pamControlledUnit) voidsetFrameNumber(int frameNumber) abstract voidshowControlledUnit(PamControlledUnit pamControlledUnit) tells the view to show the main display panel of a pamControlledUnitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PamView.PamViewInterface
addControlledUnit, enableGUIControl, modelChanged, pamEnded, pamStarted, removeControlledUnit, setTitle 
- 
Field Details
- 
pamControllerInterface
 - 
pamModelInterface
 - 
frame
Frame for main window associated with this view (i.e a PamGUI). 
 - 
 - 
Constructor Details
- 
PamView
public PamView(PamControllerInterface pamControllerInterface, PamModel pamModelInterface, int frameNumber)  
 - 
 - 
Method Details
- 
showControlledUnit
tells the view to show the main display panel of a pamControlledUnit- Specified by:
 showControlledUnitin interfacePamViewInterface- Parameters:
 pamControlledUnit-
 - 
renameControlledUnit
 - 
getViewName
 - 
getFrameNumber
public int getFrameNumber()- Specified by:
 getFrameNumberin interfacePamViewInterface- Returns:
 - Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
 
 - 
getGuiFrame
- Specified by:
 getGuiFramein interfacePamViewInterface
 - 
setFrameNumber
public void setFrameNumber(int frameNumber)  
 -