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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)