edu.cmu.sun.controller
Class WindowController

java.lang.Object
  extended by edu.cmu.sun.controller.WindowController

public class WindowController
extends java.lang.Object

Receives all actions from the WindoBarView and translates the system's Models as needed. This object is created by the WindowView to handle events.

Author:
Braden Kowitz, Jessica Smith

Field Summary
(package private)  WindowModel model
          The model obejct representing this window.
 
Constructor Summary
WindowController(WindowModel model)
          Create a new controller to affect changes in the provided model.
 
Method Summary
 void close()
          Close this window.
 void makeActive()
          Make this window the active window in the column.
 void pin()
          Pin this window.
 void search()
          Flip the window arround to the search mode.
 void unpin()
          Unpin this window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

WindowModel model
The model obejct representing this window.

Constructor Detail

WindowController

public WindowController(WindowModel model)
Create a new controller to affect changes in the provided model.

Parameters:
model -
Method Detail

close

public void close()
Close this window. Called when the red button is pressed.


unpin

public void unpin()
Unpin this window. Called when the pin button is toggled off.


pin

public void pin()
Pin this window. Called when the pin button is toggled on.


search

public void search()
Flip the window arround to the search mode. This method is not yet implemented.


makeActive

public void makeActive()
Make this window the active window in the column. This method is called when the window bar is clicked (other than the widgets). The active window in a column takes up the primary amount of space.