net.sourceforge.sillyview
Class Widget

java.lang.Object
  extended by net.sourceforge.sillyview.Widget

public class Widget
extends java.lang.Object

An instance of this class is an object that has a view. It may be useful for cases where you want to be able to swap out alternative views.

Version:
1.0
Author:
T.J. Willis

Field Summary
protected  WidgetView view
          Describe variable view here.
 
Constructor Summary
Widget(WidgetView myView)
          Creates a new Widget instance.
 
Method Summary
 WidgetView getView()
          Get the View value.
 void setView(WidgetView newView)
          Set the View value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected WidgetView view
Describe variable view here.

Constructor Detail

Widget

public Widget(WidgetView myView)
Creates a new Widget instance.

Parameters:
myView - a WidgetView value
Method Detail

getView

public WidgetView getView()
Get the View value.

Returns:
the View value.

setView

public void setView(WidgetView newView)
Set the View value.

Parameters:
newView - The new View value.