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

public class JavaFileNode
extends TextFileNode

JavaFileNode instances represent Java source files.


Field Summary
static java.lang.String EXTENSION
           
static javax.swing.Icon ICON
           
static java.lang.String PAGE_NAME
           
 
Fields inherited from class com.borland.primetime.node.TextFileNode
EXTENSION, ICON
 
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()
          Returns a collection of nodes that should be displayed beneath this node in a project browser, sorted in an order suitable for display.
 javax.swing.Icon getDisplayIcon()
          Provides an image to be used for graphical representation of the node.
 java.lang.Class getEditorKitClass()
           
 java.lang.Class getTextStructureClass()
           
static void initOpenTool(byte majorVersion, byte minorVersion)
          OpenTool initialization
 
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, 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

PAGE_NAME

public static final java.lang.String PAGE_NAME

ICON

public static final javax.swing.Icon ICON
Constructor Detail

JavaFileNode

public JavaFileNode(Project project,
                    Node parent,
                    Url url)
             throws DuplicateNodeException
All FileNode subtypes must expose this constructor signature.
Method Detail

initOpenTool

public static void initOpenTool(byte majorVersion,
                                byte minorVersion)
OpenTool initialization

getTextStructureClass

public java.lang.Class getTextStructureClass()
Overrides:
getTextStructureClass in class TextFileNode

getEditorKitClass

public java.lang.Class getEditorKitClass()
Overrides:
getEditorKitClass in class TextFileNode

getDisplayIcon

public javax.swing.Icon getDisplayIcon()
Description copied from class: Node
Provides an image to be used for graphical representation of the node.
Overrides:
getDisplayIcon in class TextFileNode
Tags copied from class: Node
Returns:
An Icon instance.

getDisplayChildren

public Node[] getDisplayChildren()
Description copied from class: Node
Returns a collection of nodes that should be displayed beneath this node in a project browser, sorted in an order suitable for display. The nodes listed are not guaranteed to list this node as their parent, and as a result a complete recursive traversal of display children may result in endless loops.

By default, a nodes display children are the same as its actual children. Subclasses may decide to augment this list or replace it altogether.

Overrides:
getDisplayChildren in class Node
Tags copied from class: Node
Returns:
An array of Node instances, or an empty array if no such nodes exist.