public class IlvProjectDataContainer extends IlvDefaultDataContainer
IlvDefaultDataContainer.AbstractNode, IlvDefaultDataContainer.Node| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_CATEGORY
Constant for the category of file reference nodes.
|
static String |
FOLDER_CATEGORY
Constant for the category of folder nodes.
|
static String |
PROJECT_FILE_CATEGORY
Constant for the category of project file reference nodes.
|
NODE_TITLE_PROPERTY| Constructor and Description |
|---|
IlvProjectDataContainer()
Constructs an empty
IlvProjectDataContainer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRemove(Object parent,
Object node)
Determines whether the specified
node can be removed
from this project data container. |
IlvApplication |
getApplication()
Returns the application of the project data container.
|
String |
getFileReference(Object node)
Returns the pathname of the file referenced by the specified file
reference
node. |
URL |
getFileReferenceURL(Object node)
Returns the URL of the file referenced by the specified file
reference
node. |
String |
getFolderName(Object node)
Returns the title of the specified folder
node. |
Object |
insertFileReference(Object parent,
String filename,
int index)
Inserts a file reference node for the specified
filename. |
Object |
insertFileReference(Object parent,
URL url,
int index)
Inserts a file reference node for the specified
url. |
Object |
insertFolder(Object parent,
String name,
int index)
Inserts a new folder node.
|
boolean |
isFileReference(Object node)
Determines whether the specified data container
node is a
file reference. |
void |
setApplication(IlvApplication application)
Sets the application of the project data container.
|
acceptChild, addDataContainerListener, fireNodeAdditionEvent, fireNodeRemovalEvent, firePropertyChangeEvent, getCategory, getChildAt, getChildCount, getIndexOfChild, getNodeProperty, getParent, getTitle, insertNode, removeDataContainerListener, removeNode, setNodeProperty, setTitlepublic static String FILE_CATEGORY
public static String FOLDER_CATEGORY
public static String PROJECT_FILE_CATEGORY
public IlvProjectDataContainer()
IlvProjectDataContainer.public void setApplication(IlvApplication application)
application - The new application of the project data container.getApplication()public IlvApplication getApplication()
public Object insertFileReference(Object parent, String filename, int index)
filename.parent - The parent node of the newly created file reference.filename - The filename of the file to create a reference node from.index - The insertion index of the newly created file reference node
in the child array of the parent node. If equal to
-1, the file node will be added at the end of the child array
of the parent node.getFileReference(java.lang.Object)public Object insertFileReference(Object parent, URL url, int index)
url.parent - The parent node of the newly created file reference.url - The URL of the file to create a reference node from.index - The insertion index of the newly created file reference node
in the child array of the parent node. If equal to
-1, the file node will be added at the end of the child array
of the parent node.getFileReference(java.lang.Object)public String getFileReference(Object node)
node.public URL getFileReferenceURL(Object node)
node.insertFileReference(Object, String, int),
insertFileReference(Object, java.net.URL, int),
isFileReference(java.lang.Object)public boolean isFileReference(Object node)
node is a
file reference.true if the specified node is a file reference;
false otherwise.public Object insertFolder(Object parent, String name, int index)
parent - The parent node of the newly created folder node.name - The name of the new folder - can be a key to a string
resource.index - The insertion index of the newly created folder node
in the child array of the parent node. If equal to
-1, the folder will be added at the end of the
child array of the parent node.public String getFolderName(Object node)
node.null if the specified
node is null or is not a folder node.public boolean canRemove(Object parent, Object node)
node can be removed
from this project data container.canRemove in interface IlvDataContainercanRemove in class IlvDefaultDataContainerparent - The parent node of the specified node or
null.node - The node to remove.true if the node can be removed;
false otherwise.IlvDefaultDataContainer.removeNode(java.lang.Object, java.lang.Object)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.