org.netbeans.modules.projectuiapi/1 1.51.1 8

org.netbeans.spi.project.ui.templates.support
Class Templates.SimpleTargetChooserBuilder

java.lang.Object
  extended by org.netbeans.spi.project.ui.templates.support.Templates.SimpleTargetChooserBuilder
Enclosing class:
Templates

public static final class Templates.SimpleTargetChooserBuilder
extends Object

A builder for simple target choosers.

Since:
org.netbeans.modules.projectuiapi/1 1.45
See Also:
Templates.buildSimpleTargetChooser(org.netbeans.api.project.Project, org.netbeans.api.project.SourceGroup[])

Method Summary
 Templates.SimpleTargetChooserBuilder bottomPanel(WizardDescriptor.Panel<WizardDescriptor> bottomPanel)
          Sets a panel which should be placed underneath the default chooser.
 WizardDescriptor.Panel<WizardDescriptor> create()
          Creates the target chooser panel.
 Templates.SimpleTargetChooserBuilder freeFileExtension()
          Permits the file extension of the created file to be customized by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bottomPanel

public Templates.SimpleTargetChooserBuilder bottomPanel(WizardDescriptor.Panel<WizardDescriptor> bottomPanel)
Sets a panel which should be placed underneath the default chooser.

Parameters:
bottomPanel - a custom bottom panel
Returns:
this builder

freeFileExtension

public Templates.SimpleTargetChooserBuilder freeFileExtension()
Permits the file extension of the created file to be customized by the user. By default, the file extension is fixed to be the same as that of the template: whatever is entered for the filename is taken to be a base name only. In this mode, the GUI makes it possible to use an alternate extension: it simply checks for a file name containing a period (.) and suppresses the automatic appending of the template's extension, taking the entered filename as complete.

Returns:
this builder
See Also:
CreateFromTemplateHandler.FREE_FILE_EXTENSION

create

public WizardDescriptor.Panel<WizardDescriptor> create()
Creates the target chooser panel.

Returns:
a wizard panel prompting the user to choose a name and location

org.netbeans.modules.projectuiapi/1 1.51.1 8

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.