<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_06) on Thu Dec 07 10:30:00 MET 2006 -->
<TITLE>
Templates (NetBeans Project UI API)
</TITLE>

<META NAME="keywords" CONTENT="org.netbeans.spi.project.ui.templates.support.Templates class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../javadoc.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="Templates (NetBeans Project UI API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Templates.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
org.netbeans.modules.projectuiapi/1 1.13.22 5</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../../index.html?org/netbeans/spi/project/ui/templates/support/Templates.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Templates.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.netbeans.spi.project.ui.templates.support</FONT>
<BR>
Class Templates</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.netbeans.spi.project.ui.templates.support.Templates</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>Templates</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
</PRE>

<P>
Default implementations of template UI.
<P>

<P>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#createSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[])">createSimpleTargetChooser</A></B>(<A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A>&nbsp;project,
                          <A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/SourceGroup.html" title="class or interface in org.netbeans.api.project">SourceGroup</A>[]&nbsp;folders)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a basic target chooser suitable for many kinds of templates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#createSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[], org.openide.WizardDescriptor.Panel)">createSimpleTargetChooser</A></B>(<A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A>&nbsp;project,
                          <A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/SourceGroup.html" title="class or interface in org.netbeans.api.project">SourceGroup</A>[]&nbsp;folders,
                          <A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A>&nbsp;bottomPanel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a basic target chooser suitable for many kinds of templates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getExistingSourcesFolder(org.openide.WizardDescriptor)">getExistingSourcesFolder</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the existing sources folder selected for a custom template wizard iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getProject(org.openide.WizardDescriptor)">getProject</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the project selected for a custom template wizard iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getTargetFolder(org.openide.WizardDescriptor)">getTargetFolder</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the target folder selected for a custom template wizard iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getTargetName(org.openide.WizardDescriptor)">getTargetName</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method to communicate current choice of target name to a custom 
 <CODE>WizardDescriptor.InstantiatingIterator</CODE> associated with particular template.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getTemplate(org.openide.WizardDescriptor)">getTemplate</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the template with which a custom template wizard iterator is associated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#setTargetFolder(org.openide.WizardDescriptor, org.openide.filesystems.FileObject)">setTargetFolder</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor,
                <A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A>&nbsp;folder)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stores a target folder so that it can be remembered later using <A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getTargetFolder(org.openide.WizardDescriptor)"><CODE>getTargetFolder(org.openide.WizardDescriptor)</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#setTargetName(org.openide.WizardDescriptor, java.lang.String)">setTargetName</A></B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor,
              <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;targetName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the target name for given WizardDescriptor to be used from
 custom target choosers</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getProject(org.openide.WizardDescriptor)"><!-- --></A><H3>
getProject</H3>
<PRE>
public static <A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A> <B>getProject</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</PRE>
<DL>
<DD>Find the project selected for a custom template wizard iterator.
 <p class="nonnormative">
 If the user selects File | New File, this will be the project chosen in the first panel.
 If the user selects New from <CODE>org.netbeans.modules.project.ui.actions.Actions#newFileAction</CODE>, this will
 be the project on which the context menu was invoked.
 </p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>wizardDescriptor</CODE> - the wizard as passed to <CODE>WizardDescriptor.InstantiatingIterator#initialize</CODE>
                         or <CODE>TemplateWizard.Iterator#initialize</CODE>
<DT><B>Returns:</B><DD>the project into which the user has requested this iterator create a file (or null if not set)</DL>
</DD>
</DL>
<HR>

<A NAME="getTemplate(org.openide.WizardDescriptor)"><!-- --></A><H3>
getTemplate</H3>
<PRE>
public static <A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A> <B>getTemplate</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</PRE>
<DL>
<DD>Find the template with which a custom template wizard iterator is associated.
 <p class="nonnormative">
 If the user selects File | New File, this will be the template chosen in the first panel.
 If the user selects New from <CODE>org.netbeans.modules.project.ui.actions.Actions#newFileAction</CODE>, this will
 be the template selected from the context submenu.
 </p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>wizardDescriptor</CODE> - the wizard as passed to <CODE>WizardDescriptor.InstantiatingIterator#initialize</CODE>
                         or <CODE>TemplateWizard.Iterator#initialize</CODE>
<DT><B>Returns:</B><DD>the corresponding template marker file (or null if not set)</DL>
</DD>
</DL>
<HR>

<A NAME="getTargetFolder(org.openide.WizardDescriptor)"><!-- --></A><H3>
getTargetFolder</H3>
<PRE>
public static <A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A> <B>getTargetFolder</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</PRE>
<DL>
<DD>Find the target folder selected for a custom template wizard iterator.
 <p class="nonnormative">
 If the user selects File | New File
 this may not be set, unless you have called <A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#setTargetFolder(org.openide.WizardDescriptor, org.openide.filesystems.FileObject)"><CODE>setTargetFolder(org.openide.WizardDescriptor, org.openide.filesystems.FileObject)</CODE></A>
 in an earlier panel (such as that created by <A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#createSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[])"><CODE>createSimpleTargetChooser(Project,SourceGroup[])</CODE></A>).
 It may however have a preselected folder, e.g. if the user invoked New from
 the context menu of a folder.
 </p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>wizardDescriptor</CODE> - the wizard as passed to <CODE>WizardDescriptor.InstantiatingIterator#initialize</CODE>
                         or <CODE>TemplateWizard.Iterator#initialize</CODE>
<DT><B>Returns:</B><DD>the folder into which the user has requested this iterator create a file (or null if not set)</DL>
</DD>
</DL>
<HR>

<A NAME="getExistingSourcesFolder(org.openide.WizardDescriptor)"><!-- --></A><H3>
getExistingSourcesFolder</H3>
<PRE>
public static <A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A> <B>getExistingSourcesFolder</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</PRE>
<DL>
<DD>Find the existing sources folder selected for a custom template wizard iterator.
 <p class="nonnormative">
 This may not be set, unless you have CommonProjectActions.newProjectAction
 with CommonProjectActions.EXISTING_SOURCES_FOLDER value.
 <p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>wizardDescriptor</CODE> - the wizard as passed to <CODE>WizardDescriptor.InstantiatingIterator#initialize</CODE>
                         or <CODE>TemplateWizard.Iterator#initialize</CODE>
<DT><B>Returns:</B><DD>the existing sources folder from which the user has requested this iterator to create a project<DT><B>Since:</B></DT>
  <DD>1.3 (17th May 2005)</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="setTargetFolder(org.openide.WizardDescriptor, org.openide.filesystems.FileObject)"><!-- --></A><H3>
setTargetFolder</H3>
<PRE>
public static void <B>setTargetFolder</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor,
                                   <A HREF="../../../../../../../../org-openide-filesystems/org/openide/filesystems/FileObject.html" title="class or interface in org.openide.filesystems">FileObject</A>&nbsp;folder)</PRE>
<DL>
<DD>Stores a target folder so that it can be remembered later using <A HREF="../../../../../../../org/netbeans/spi/project/ui/templates/support/Templates.html#getTargetFolder(org.openide.WizardDescriptor)"><CODE>getTargetFolder(org.openide.WizardDescriptor)</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>wizardDescriptor</CODE> - a template wizard<DD><CODE>folder</CODE> - a target folder to remember</DL>
</DD>
</DL>
<HR>

<A NAME="getTargetName(org.openide.WizardDescriptor)"><!-- --></A><H3>
getTargetName</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTargetName</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor)</PRE>
<DL>
<DD>Method to communicate current choice of target name to a custom 
 <CODE>WizardDescriptor.InstantiatingIterator</CODE> associated with particular template.
 <p>XXX why is this public? only used from NewFileIterator in projectui?
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setTargetName(org.openide.WizardDescriptor, java.lang.String)"><!-- --></A><H3>
setTargetName</H3>
<PRE>
public static void <B>setTargetName</B>(<A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.html" title="class or interface in org.openide">WizardDescriptor</A>&nbsp;wizardDescriptor,
                                 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;targetName)</PRE>
<DL>
<DD>Sets the target name for given WizardDescriptor to be used from
 custom target choosers
 <p>XXX why is this public? only used from SimpleTargetChooserPanel in projectui?
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[])"><!-- --></A><H3>
createSimpleTargetChooser</H3>
<PRE>
public static <A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A> <B>createSimpleTargetChooser</B>(<A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A>&nbsp;project,
                                                               <A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/SourceGroup.html" title="class or interface in org.netbeans.api.project">SourceGroup</A>[]&nbsp;folders)</PRE>
<DL>
<DD>Create a basic target chooser suitable for many kinds of templates.
 The user is prompted to choose a location for the new file and a (base) name.
 Instantiation is handled by <A HREF="../../../../../../../../org-openide-loaders/org/openide/loaders/DataObject.html#createFromTemplate(org.openide.loaders.DataFolder)" title="class or interface in org.openide.loaders"><CODE>DataObject.createFromTemplate(org.openide.loaders.DataFolder)</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>project</CODE> - The project to work on.<DD><CODE>folders</CODE> - a list of possible roots to create the new file in
<DT><B>Returns:</B><DD>a wizard panel(s) prompting the user to choose a name and location</DL>
</DD>
</DL>
<HR>

<A NAME="createSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[], org.openide.WizardDescriptor.Panel)"><!-- --></A><H3>
createSimpleTargetChooser</H3>
<PRE>
public static <A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A> <B>createSimpleTargetChooser</B>(<A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/Project.html" title="class or interface in org.netbeans.api.project">Project</A>&nbsp;project,
                                                               <A HREF="../../../../../../../../org-netbeans-modules-projectapi/org/netbeans/api/project/SourceGroup.html" title="class or interface in org.netbeans.api.project">SourceGroup</A>[]&nbsp;folders,
                                                               <A HREF="../../../../../../../../org-openide-util/org/openide/WizardDescriptor.Panel.html" title="class or interface in org.openide">WizardDescriptor.Panel</A>&nbsp;bottomPanel)</PRE>
<DL>
<DD>Create a basic target chooser suitable for many kinds of templates.
 The user is prompted to choose a location for the new file and a (base) name.
 Instantiation is handled by <A HREF="../../../../../../../../org-openide-loaders/org/openide/loaders/DataObject.html#createFromTemplate(org.openide.loaders.DataFolder)" title="class or interface in org.openide.loaders"><CODE>DataObject.createFromTemplate(org.openide.loaders.DataFolder)</CODE></A>.
 Resulting panel can be decorated with additional panel placed below the standard target 
 chooser.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>project</CODE> - The project to work on.<DD><CODE>folders</CODE> - a list of possible roots to create the new file in<DD><CODE>bottomPanel</CODE> - panel which should be placed underneth the default chooser
<DT><B>Returns:</B><DD>a wizard panel(s) prompting the user to choose a name and location</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Templates.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
org.netbeans.modules.projectuiapi/1 1.13.22 5</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../../index.html?org/netbeans/spi/project/ui/templates/support/Templates.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Templates.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<span class="footnote">Built on December 7 2006.&nbsp;&nbsp;|&nbsp;&nbsp;Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.</span>
</BODY>
</HTML>
