oracle.jdeveloper.template
Class ApplicationTemplate
java.lang.Object
oracle.javatools.data.HashStructureAdapter
oracle.jdeveloper.template.AbstractTemplate
oracle.jdeveloper.template.ApplicationTemplate
- All Implemented Interfaces:
- java.lang.Comparable, Displayable, Element
public final class ApplicationTemplate
- extends AbstractTemplate
Methods inherited from class oracle.jdeveloper.template.AbstractTemplate |
compareTo, equals, getAttributes, getContainerName, getData, getDeploymentProfile, getDescription, getGalleryFolder, getIcon, getIconFile, getLongLabel, getName, getPackageName, getShortLabel, getTemplateData, getTemplateId, getTemplateId, getTextFromHook, getToolTipText, getWeight, hashCode, isUnsorted, isValid, mayHaveChildren, setContainerName, setDeploymentProfile, setDescription, setGalleryFolder, setIconFile, setName, setPackageName, setTemplateClass, setTemplateData, setTemplateId, setTemplateId, setToolTipText, setUnsorted, setValid, setWeight, toString, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ApplicationTemplate
public ApplicationTemplate()
ApplicationTemplate
public ApplicationTemplate(HashStructure hash)
initializeFromExtensionHook
public void initializeFromExtensionHook(HashStructure hash,
TemplateData lookup)
- Description copied from class:
AbstractTemplate
- Initialize this template from a HashStructure read from the template extension hook.
Use lookup to resolve any references to external templates. Only properties that
are available in the hash are set, the rest are left untouched.
- Overrides:
initializeFromExtensionHook
in class AbstractTemplate
getContainerNameKey
public java.lang.String getContainerNameKey()
- Specified by:
getContainerNameKey
in class AbstractTemplate
getProjectTemplates
public java.util.List<ProjectTemplate> getProjectTemplates()
setProjectTemplates
public void setProjectTemplates(java.util.List<ProjectTemplate> templates)
addProjectTemplate
public void addProjectTemplate(ProjectTemplate template)
addProjectTemplate
public void addProjectTemplate(int index,
ProjectTemplate template)
removeProjectTemplate
public void removeProjectTemplate(int index)
removeProjectTemplate
public void removeProjectTemplate(ProjectTemplate template)
removeAllProjectTemplates
public void removeAllProjectTemplates()
getChildTemplatesKey
protected java.lang.String getChildTemplatesKey()
- Overrides:
getChildTemplatesKey
in class AbstractTemplate
getDefaultIcon
protected javax.swing.Icon getDefaultIcon()
- Specified by:
getDefaultIcon
in class AbstractTemplate
getChildren
public java.util.Iterator<Element> getChildren()
- Description copied from interface:
Element
- This method is part of the
Element
interface to
provide a convenient way of getting an Iterator
over any
contained child Element
s without having to test the
object's type with the instanceof
operator or having
to downcast to a more specific type.
An implementation of Element
that represents a leaf
in a tree structure should return null
from this
method. An implementation of Element
that could
represent a non-leaf in a tree structure should return either an
Iterator
over the child Element
s or
null
if there are no children.
- Specified by:
getChildren
in interface Element
- Overrides:
getChildren
in class AbstractTemplate
- Returns:
- an
Iterator
over any child Element
s
contained by this Element
. If there are no children,
null
is returned.
Copyright © 1997, 2009, Oracle. All rights reserved.