Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.view
Interface View

All Superinterfaces:
javax.activation.CommandObject, org.jhotdraw.app.Disposable
All Known Implementing Classes:
AbstractStructView, AbstractVideoView, AbstractVideoViewAWT, AbstractView, AbstractViewAWT, ANIMVideoView, AudioView, BinaryView, EightSVXView, EXIFView, HTMLView, IFFStructView, ILBMView, ImageIOView, ImageView, JAIView, JFIFStructView, JMFVideoView, JPDFView, LPFStructView, MP3StructView, MPEG4StructView, NeoChromeStructView, PBMView, PictStructView, PNGStructView, QuickTimeStructView, RIFFStructView, RTFView, SEQStructView, SEQVideoView, TextView, TIFFStructView, ZipView

public interface View
extends javax.activation.CommandObject, org.jhotdraw.app.Disposable

Interface for viewers. Objects implementing this interface must be a subclass of java.awt.Component.

Version:
1.1 2002-02-10 Method setDropTarget added.
1.0 1999-09-19
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Immensee, Switzerland

Field Summary
static java.lang.String REQUEST_INFO_UPDATE_PROPERTY
           
 
Method Summary
 void addDropTargetListener(java.awt.dnd.DropTargetListener listener)
          This method adds the given drop target listener to all components of the viewer.
 void dispose()
          Disposes all resources allocated by this viewer.
 boolean hasScrollPane()
          Returns true if this viewer has a scrollpane of its own.
 void init()
          This method must be called after the view has been added to the parent component.
 void mergeSettingsMenuItems(javax.swing.JMenu m)
          Merges menu items of this viewer into the "Settings" menu of the container of this viewer.
 void mergeViewMenuItems(javax.swing.JMenu viewMenu)
          Merges menu items of this viewer into the "View" menu of the container of this viewer.
 void setApplicationProperties(PropertyModel model)
          Sets the model object for shared application properties.
 void setViewProperties(PropertyModel model)
          Sets the model object for shared view properties.
 
Methods inherited from interface javax.activation.CommandObject
setCommandContext
 

Field Detail

REQUEST_INFO_UPDATE_PROPERTY

static final java.lang.String REQUEST_INFO_UPDATE_PROPERTY
See Also:
Constant Field Values
Method Detail

mergeViewMenuItems

void mergeViewMenuItems(javax.swing.JMenu viewMenu)
Merges menu items of this viewer into the "View" menu of the container of this viewer. When the viewer is added to a container with a JMenuBar. Then the container asks the viewer to add his menu items to the "View" menu of the container.


mergeSettingsMenuItems

void mergeSettingsMenuItems(javax.swing.JMenu m)
Merges menu items of this viewer into the "Settings" menu of the container of this viewer. When the viewer is added to a container with a JMenuBar. Then the container asks the viewer to add his menu items to the "Settings" menu of the container.


setViewProperties

void setViewProperties(PropertyModel model)
Sets the model object for shared view properties.


setApplicationProperties

void setApplicationProperties(PropertyModel model)
Sets the model object for shared application properties.


hasScrollPane

boolean hasScrollPane()
Returns true if this viewer has a scrollpane of its own. The container that contains this viewers uses this method to determine if it should wrap a scrollpane around the viewer or not.

Returns:
true if this viewer has a scrollpane of its own.

init

void init()
This method must be called after the view has been added to the parent component. This method is basically a hack to make QuickTime for Java work on OS X 10.1.


addDropTargetListener

void addDropTargetListener(java.awt.dnd.DropTargetListener listener)
This method adds the given drop target listener to all components of the viewer.


dispose

void dispose()
Disposes all resources allocated by this viewer. The viewer must not be used after this method has been called.

Specified by:
dispose in interface org.jhotdraw.app.Disposable

Copyright 2012-02-25 Werner Randelshofer