| java.lang.Object org.tp23.antinstaller.page.Page
All known Subclasses: org.tp23.antinstaller.page.ConditionalPage, org.tp23.antinstaller.page.ProgressPage, org.tp23.antinstaller.page.LicensePage, org.tp23.antinstaller.page.SplashPage,
Page | abstract public class Page (Code) | | Represents a page in the installer.
This object maintians an ordered list of targets that have been selected
so that when ant is run the targets are run in the correct order. If
Targets exist in multiple pages they are run in the order they appear in the config file.
Copyright: Copyright (c) 2004
Company: tp23
author: Paul Hinds version: $Id: Page.java,v 1.10 2007/01/19 00:24:36 teknopaul Exp $ |
Inner Class :public static class IndexedTarget implements Comparable | |
Constructor Summary | |
public | Page() |
addTarget | public void addTarget(int idx, String target)(Code) | | Adds an INPUT target to the Page config
Parameters: idx - index Parameters: target - target to be added |
getAllTargets | public List getAllTargets()(Code) | | get input targets that are selected and all page targets, independent of
the ifProperty value
list of targets |
getElementTargets | public List getElementTargets()(Code) | | a List of IndexedTarget objects |
getPageTargets | public List getPageTargets()(Code) | | a List of IndexedTarget objects |
getPostDisplayTarget | public String getPostDisplayTarget()(Code) | | |
getTargets | public List getTargets(InstallerContext ctx)(Code) | | These are the ant targets that will be run, this is decided after
the Page has been displayed. For example if the user chooses not
to enter a field that may signify that a target should not be run
Parameters: ctx - installer context A sorted List a list of Ant targets as Strings; |
isAbort | public boolean isAbort()(Code) | | This is called after the page is displayed, a page can return false to indicate
that the installation should abort. Should be false if the cancel button is pressed.
System.exit is not called to allow the installer to clean up temporary files.
boolean |
isTarget | public boolean isTarget(String target)(Code) | | returns true if the page has the current target set
Parameters: target - String boolean |
removeTarget | public void removeTarget(int idx)(Code) | | |
setAbort | public void setAbort(boolean abort)(Code) | | |
setDisplayText | public void setDisplayText(String displayText)(Code) | | |
setImageResource | public void setImageResource(String imageResource)(Code) | | |
setPostDisplayTarget | public void setPostDisplayTarget(String runtimeTarget)(Code) | | |
setTarget | public void setTarget(String targetList)(Code) | | Comma separated list of targets for this page, called when parsing the
config file
Parameters: targetList - list of targets for this page |
|
|