com.borland.jbuilder.node
Class JavaFileNode

java.lang.Object
  |
  +--com.borland.primetime.node.Node
        |
        +--com.borland.primetime.node.UrlNode
              |
              +--com.borland.primetime.node.FileNode
                    |
                    +--com.borland.primetime.node.TextFileNode
                          |
                          +--com.borland.jbuilder.node.JavaFileNode
All Implemented Interfaces:
java.lang.Comparable, JBDebuggable, WebViewable, WebViewable.MaybeServlet

public class JavaFileNode
extends TextFileNode
implements JBDebuggable, WebViewable, WebViewable.MaybeServlet

JavaFileNode instances represent Java source files.


Inner classes inherited from class com.borland.jbuilder.node.WebViewable
WebViewable.MaybeServlet
 
Field Summary
static java.lang.String EXTENSION
          The default extension of files represented by this class.
static javax.swing.Icon ICON
          The icon used for files for this class.
static java.lang.String PAGE_NAME
          The name used by the PropertyPage.
 
Fields inherited from class com.borland.primetime.node.Node
EMPTY_ARRAY, nodeListeners
 
Constructor Summary
JavaFileNode(Project project, Node parent, Url url)
          All FileNode subtypes must expose this constructor signature.
 
Method Summary
 Node[] getDisplayChildren()
          This routine returns the children of this node which were generated by java2iiop.
 javax.swing.Icon getDisplayIcon()
          Return the icon used for this type of file.
 java.lang.Class getEditorKitClass()
          Get the JavaEditorKit class used by this file node type to customize the editor.
 java.lang.Class getTextStructureClass()
          Get the type of the IDLStructure class that is responsible for managing the structure pane for this file node type.
static void initOpenTool(byte majorVersion, byte minorVersion)
          OpenTool initialization
 boolean isHttpServlet()
          Returns whether this files is a servlet.
 boolean isWebViewable()
          Returns whether this node viewable in a web browser.
 void setWebViewable(boolean isWebViewable)
          Set whether this node viewable in a web browser.
 
Methods inherited from class com.borland.primetime.node.TextFileNode
getEncoding, setCaretPosition
 
Methods inherited from class com.borland.primetime.node.FileNode
check, findBuffer, findFileNodeClass, findFileNodeClass, findFileNodeClass, getBuffer, getDisplayName, getDisplaySequence, getInputStream, getLongDisplayName, getOutputStream, getTimestamp, getUrl, isModified, isNew, isPersistant, isReadOnly, registerFileNodeClass, rename, revert, save, saveAs, setUrl
 
Methods inherited from class com.borland.primetime.node.UrlNode
getSuggestedUrl
 
Methods inherited from class com.borland.primetime.node.Node
addNodeListener, compareTo, dumpNodes, dumpNodes, dumpNodes, equals, fireNodeRenamed, getChildren, getNodeID, getParent, getProject, getProperties, getProperty, getProperty, getProperty, hasChildren, hasDisplayChildren, hashCode, makePersistant, removeNodeListener, setParent, setProperty, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION

public static final java.lang.String EXTENSION
The default extension of files represented by this class.

PAGE_NAME

public static final java.lang.String PAGE_NAME
The name used by the PropertyPage.

ICON

public static final javax.swing.Icon ICON
The icon used for files for this class.
Constructor Detail

JavaFileNode

public JavaFileNode(Project project,
                    Node parent,
                    Url url)
             throws DuplicateNodeException
All FileNode subtypes must expose this constructor signature.
Parameters:
project - Project (cannot be null) to which this node will be associated.
parent - Immediate parent (may be null) of this node and must be of same Project.
url - The storage available to this node.
Throws:
DuplicateNodeException - if node already registered.
See Also:
Project.getNode(com.borland.primetime.vfs.Url)
Method Detail

initOpenTool

public static void initOpenTool(byte majorVersion,
                                byte minorVersion)
OpenTool initialization
Parameters:
majorVersion - Major release number for which OpenTool is being initialized.
minorVersion - Minor release number for which OpenTool is being initialized.

getTextStructureClass

public java.lang.Class getTextStructureClass()
Get the type of the IDLStructure class that is responsible for managing the structure pane for this file node type.
Overrides:
getTextStructureClass in class TextFileNode
Returns:
Returns appropriate structure pane manager for this file type.

getEditorKitClass

public java.lang.Class getEditorKitClass()
Get the JavaEditorKit class used by this file node type to customize the editor.
Overrides:
getEditorKitClass in class TextFileNode
Returns:
The editor kit to use.

getDisplayIcon

public javax.swing.Icon getDisplayIcon()
Return the icon used for this type of file.
Overrides:
getDisplayIcon in class TextFileNode
Returns:
The icon for this file type.

getDisplayChildren

public Node[] getDisplayChildren()
This routine returns the children of this node which were generated by java2iiop. return Returns array of Nodes generated by java2iiop.
Overrides:
getDisplayChildren in class Node
Following copied from class: com.borland.primetime.node.Node
Returns:
An array of Node instances, or an empty array if no such nodes exist.

setWebViewable

public void setWebViewable(boolean isWebViewable)
Set whether this node viewable in a web browser.
Specified by:
setWebViewable in interface WebViewable
Parameters:
isWebViewable - Set true if viewable in a web browser, false otherwise.

isWebViewable

public boolean isWebViewable()
Returns whether this node viewable in a web browser.
Specified by:
isWebViewable in interface WebViewable
Returns:
true if this node is viewable in a web browser, false otherwise.

isHttpServlet

public boolean isHttpServlet()
Returns whether this files is a servlet.
Specified by:
isHttpServlet in interface WebViewable.MaybeServlet
Returns:
Returns true if a servlet.