DefaultDocumentViewInfo Class

com.bea.ide.document
DefaultDocumentViewInfo Class

public abstract class DefaultDocumentViewInfo

    extends Object
    implements IDocumentViewInfo

Default implementation of the DocumentViewInfo class. This implementation is abstract and does not implement the createView method. Derived classes may call the constructor with the necessary information and then simply implement the createView method.


Hierarchy
Object
  DefaultDocumentViewInfo
All Implemented Interfaces

IDocumentViewInfo
Direct Known Subclasses

DefaultSourceViewInfo

Constructor Summary

DefaultDocumentViewInfo(String name, Icon icon, String desc)

Simple constructor that takes the required information and will use it to implement the corresponding methods.
 

Method Summary

public String
getDescription()
A description of this view.
public Icon
getIcon()
An icon representing this view.
public String
getName()
The name of this view.
public void
setDescription(String desc)
public void
setIcon(Icon icon)
public void
setName(String name)
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.document.IDocumentViewInfo
createView, getDescription, getIcon, getName
 

Constructor Detail

DefaultDocumentViewInfo

public DefaultDocumentViewInfo(String name, 
                               Icon icon, 
                               String desc)
Simple constructor that takes the required information and will use it to implement the corresponding methods.
 

Method Detail

getDescription() Method

public String getDescription()
Description copied from IDocumentViewInfo.getDescription()
A description of this view.


getIcon() Method

public Icon getIcon()
Description copied from IDocumentViewInfo.getIcon()
An icon representing this view.


getName() Method

public String getName()
Description copied from IDocumentViewInfo.getName()
The name of this view. This may be used to navigate to the view using the DocumentSvc.I.displayDocument(IDocument, String) method. It will also be displayed in the tab for the document view (if multiple views are available).


setDescription(String) Method

public void setDescription(String desc)

setIcon(Icon) Method

public void setIcon(Icon icon)

setName(String) Method

public void setName(String name)