org.scopemvc.view.swing
Interface SwingSubView

All Superinterfaces:
View
All Known Implementing Classes:
SAction, SMenuItem

public interface SwingSubView
extends View

A swing element that can be contained in a SwingView and that will share the same bound model.

Use this interface when your View object in not a subclass of Component, for example Action; or when the View component doesn't belong to the parent SwingView yet have to share the same model or issue controls to the same controller, for example MenuItem.

Don't use this interface when your View object is a component contained (in Swing terms) in the parent SwingView. For example a TextField can be discovered automatically by its parent SPanel and have its bound model set automatically by the parent SPanel.

Version:
$Revision: 1.2 $ $Date: 2002/09/05 15:41:50 $
Author:
Method Summary
 SwingView getOwner()
          Gets the owner
 void setOwner(SwingView owner)
          Sets the owner
 void unsetOwner(SwingView owner)
          Description of the Method
 
Methods inherited from interface org.scopemvc.core.View
getBoundModel, getController, issueControl, setBoundModel, setController
 

Method Detail

getOwner

public SwingView getOwner()
Gets the owner

Returns:
The owner value

setOwner

public void setOwner(SwingView owner)
Sets the owner

Parameters:
owner - The new owner value

unsetOwner

public void unsetOwner(SwingView owner)
Description of the Method

Parameters:
owner - Description of the Parameter


Copyright © 2000-2002 The Scope Team. All Rights Reserved.