Menu

#50 custom Pages

open
nobody
None
5
2007-09-03
2007-09-03
Anonymous
No

My proposal is to add the ability of Custom Pages to AntInstaller. This would enable Programmers to create flexible Pages for the GUI.

One possibility would be:
org.tp23.antinstaller.runtime.exe.LoadConfigFilter Line 250

[..]
else if (type.equalsIgnoreCase("text")) {
return new TextPage();
} else {
try {
Class pageClass = Class.forName(type);
Page result = (Page) pageClass.newInstance();
return result;
} catch (Throwable e) {
throw new ConfigurationException("Unknown Page type:" + type);
}
}

So one could create custom pages which inherit from Page.java by using:
<page type="custom.package.CustomPage"
name="customlicense"
[..]

Discussion


Log in to post a comment.

MongoDB Logo MongoDB