com.borland.primetime.node
Class TextFileNode
java.lang.Object
|
+--com.borland.primetime.node.Node
|
+--com.borland.primetime.node.UrlNode
|
+--com.borland.primetime.node.FileNode
|
+--com.borland.primetime.node.TextFileNode
- Direct Known Subclasses:
- HTMLFileNode, IDLFileNode, JavaFileNode, PropertiesFileNode, SQLFileNode, XMLFileNode
- public class TextFileNode
- extends FileNode
Field Summary |
static java.lang.String |
EXTENSION
|
static javax.swing.Icon |
ICON
|
Constructor Summary |
TextFileNode(Project project,
Node parent,
Url url)
All FileNode subtypes must expose this constructor signature. |
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.Node |
addNodeListener,
compareTo,
dumpNodes,
dumpNodes,
dumpNodes,
equals,
fireNodeRenamed,
getChildren,
getDisplayChildren,
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 |
EXTENSION
public static final java.lang.String EXTENSION
ICON
public static final javax.swing.Icon ICON
TextFileNode
public TextFileNode(Project project,
Node parent,
Url url)
throws DuplicateNodeException
- All FileNode subtypes must expose this constructor signature.
initOpenTool
public static void initOpenTool(byte majorVersion,
byte minorVersion)
- OpenTool initialization
getTextStructureClass
public java.lang.Class getTextStructureClass()
getEditorKitClass
public java.lang.Class getEditorKitClass()
setCaretPosition
public void setCaretPosition(int line,
int column,
boolean requestFocus)
getEncoding
public java.lang.String getEncoding()
- Describes the encoding used to read and write this text file.
- Returns:
- A Java encoding name, or null if the default encoding should be
used.
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 FileNode
- Tags copied from class: Node
- Returns:
- An Icon instance.