Java Doc for InstallerFrame.java in  » Installer » IzPack » com » izforge » izpack » installer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Installer » IzPack » com.izforge.izpack.installer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JFrame
   com.izforge.izpack.installer.InstallerFrame

InstallerFrame
public class InstallerFrame extends JFrame (Code)
The IzPack installer frame.
author:
   Julien Ponge created October 27, 2002
author:
   Fabrice Mirabile added fix for alert window on cross button, July 06 2005
author:
   Dennis Reil, added RulesEngine November 10 2006, several changes in January 2007

Inner Class :class NavigationHandler implements ActionListener
Inner Class :class WindowHandler extends WindowAdapter

Field Summary
protected  JPanelcontentPane
     The frame content pane.
protected  ArrayList<GUIListener>guiListener
     Registered GUICreationListener.
protected  JComponentheadingCounterComponent
     The heading counter component.
protected  JLabel[]headingLabels
     Heading major text.
protected  JPanelheadingPanel
    
public  IconsDatabaseicons
     The icons database.
protected  InstallDatainstalldata
     The installation data.
public  LocaleDatabaselangpack
     The language pack.
protected  JButtonnextButton
     The next button.
protected  JPanelpanelsContainer
     The panels container.
protected  JButtonprevButton
     The previous button.
protected  JButtonquitButton
     The quit button.
protected  RulesEnginerules
    
protected  ArrayList<Integer>visiblePanelMapping
     Mapping from "raw" panel number to visible panel number.

Constructor Summary
public  InstallerFrame(String title, InstallData installdata)
     The constructor (normal mode).

Method Summary
public  voidaddGuiListener(GUIListener listener)
     Add a listener to the listener list.
public  voidblockGUI()
     Blocks GUI interaction.
public  voidbuildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)
     Sets the parameters of a GridBagConstraints object.
public  booleancanShow(int panelnumber)
     Method checks whether conditions are met to show the given panel.
public  voidcenterFrame(Window frame)
     Centers a window on screen.
public  voidexit()
     Makes a clean closing.
public  DebuggergetDebugger()
    
public  List<GUIListener>getGuiListener()
     Returns the gui creation listener list.
public  DimensiongetPanelsContainerSize()
     Returns the panels container size.
public  InputStreamgetResource(String res)
     Gets the stream to a resource.
Parameters:
  res - The resource id.
public  RulesEnginegetRules()
    
public  voidinstall(AbstractUIProgressHandler listener)
     Launches the installation.
public  booleanisHeading(IzPanel caller)
     Returns whether this installer frame uses with the given panel a separated heading panel or not.
protected  voidloadConditions()
     Reads the conditions specification file and initializes the rules engine.
protected  voidloadCustomIcons()
     Loads custom icons into the installer.
public  voidlockNextButton()
     Locks the 'next' button.
public  voidlockPrevButton()
     Locks the 'previous' button.
public  voidnavigateNext()
    
public  voidnavigateNext(int startPanel)
     This function searches for the next available panel, the search begins from given panel+1.
public  voidnavigateNext(int startPanel, boolean doValidation)
     This function searches for the next available panel, the search begins from given panel+1.
public  voidnavigatePrevious()
    
public  voidnavigatePrevious(int endingPanel)
     This function switches to available panel that is just before given one.
public  voidreleaseGUI()
     Releases GUI interaction.
public  voidsetQuitButtonIcon(String iconName)
     Sets a new icon into the quit button if icons should be used, else nothing will be done.
public  voidsetQuitButtonText(String text)
     Changes the quit button text.
public  voidsetRules(RulesEngine rules)
    
public  voidskipPanel()
     Allows a panel to ask to be skipped.
protected  voidswitchPanel(int last)
     Switches the current panel.
public  voidunlockNextButton()
     Unlocks the 'next' button.
public  voidunlockNextButton(boolean requestFocus)
     Unlocks the 'next' button.
public  voidunlockPrevButton()
     Unlocks the 'previous' button.
protected  voidwipeAborted()
     Wipes the written files when you abort the installation.
public  voidwriteXMLTree(XMLElement root, OutputStream out)
     Writes an XML tree.

Field Detail
contentPane
protected JPanel contentPane(Code)
The frame content pane.



guiListener
protected ArrayList<GUIListener> guiListener(Code)
Registered GUICreationListener.



headingCounterComponent
protected JComponent headingCounterComponent(Code)
The heading counter component.



headingLabels
protected JLabel[] headingLabels(Code)
Heading major text.



headingPanel
protected JPanel headingPanel(Code)
Panel which contains the heading text and/or icon



icons
public IconsDatabase icons(Code)
The icons database.



installdata
protected InstallData installdata(Code)
The installation data.



langpack
public LocaleDatabase langpack(Code)
The language pack.



nextButton
protected JButton nextButton(Code)
The next button.



panelsContainer
protected JPanel panelsContainer(Code)
The panels container.



prevButton
protected JButton prevButton(Code)
The previous button.



quitButton
protected JButton quitButton(Code)
The quit button.



rules
protected RulesEngine rules(Code)
conditions



visiblePanelMapping
protected ArrayList<Integer> visiblePanelMapping(Code)
Mapping from "raw" panel number to visible panel number.




Constructor Detail
InstallerFrame
public InstallerFrame(String title, InstallData installdata) throws Exception(Code)
The constructor (normal mode).
Parameters:
  title - The window title.
Parameters:
  installdata - The installation data.
throws:
  Exception - Description of the Exception




Method Detail
addGuiListener
public void addGuiListener(GUIListener listener)(Code)
Add a listener to the listener list.
Parameters:
  listener - to be added as gui creation listener



blockGUI
public void blockGUI()(Code)
Blocks GUI interaction.



buildConstraints
public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)(Code)
Sets the parameters of a GridBagConstraints object.
Parameters:
  gbc - The constraints object.
Parameters:
  gx - The x coordinates.
Parameters:
  gy - The y coordinates.
Parameters:
  gw - The width.
Parameters:
  wx - The x wheight.
Parameters:
  wy - The y wheight.
Parameters:
  gh - Description of the Parameter



canShow
public boolean canShow(int panelnumber)(Code)
Method checks whether conditions are met to show the given panel.
Parameters:
  panelnumber - the panel number to check true or false



centerFrame
public void centerFrame(Window frame)(Code)
Centers a window on screen.
Parameters:
  frame - The window tp center.



exit
public void exit()(Code)
Makes a clean closing.



getDebugger
public Debugger getDebugger()(Code)



getGuiListener
public List<GUIListener> getGuiListener()(Code)
Returns the gui creation listener list. the gui creation listener list



getPanelsContainerSize
public Dimension getPanelsContainerSize()(Code)
Returns the panels container size. The panels container size.



getResource
public InputStream getResource(String res) throws Exception(Code)
Gets the stream to a resource.
Parameters:
  res - The resource id. The resource value, null if not found
throws:
  Exception -



getRules
public RulesEngine getRules()(Code)
the rules



install
public void install(AbstractUIProgressHandler listener)(Code)
Launches the installation.
Parameters:
  listener - The installation listener.



isHeading
public boolean isHeading(IzPanel caller)(Code)
Returns whether this installer frame uses with the given panel a separated heading panel or not. Be aware, this is an other heading as given by the IzPanel which will be placed in the IzPanel. This heading will be placed if the gui preferences contains an modifier with the key "useHeadingPanel" and the value "yes" and there is a message with the key "<class name>.headline".
Parameters:
  caller - the IzPanel for which heading should be resolved whether an heading panel will be used or not



loadConditions
protected void loadConditions()(Code)
Reads the conditions specification file and initializes the rules engine.



loadCustomIcons
protected void loadCustomIcons() throws Exception(Code)
Loads custom icons into the installer.
throws:
  Exception -



lockNextButton
public void lockNextButton()(Code)
Locks the 'next' button.



lockPrevButton
public void lockPrevButton()(Code)
Locks the 'previous' button.



navigateNext
public void navigateNext()(Code)
This function moves to the next panel



navigateNext
public void navigateNext(int startPanel)(Code)
This function searches for the next available panel, the search begins from given panel+1.
Parameters:
  startPanel - the starting panel number



navigateNext
public void navigateNext(int startPanel, boolean doValidation)(Code)
This function searches for the next available panel, the search begins from given panel+1.
Parameters:
  startPanel - the starting panel number
Parameters:
  doValidation - whether to do panel validation



navigatePrevious
public void navigatePrevious()(Code)
This function moves to the previous panel



navigatePrevious
public void navigatePrevious(int endingPanel)(Code)
This function switches to available panel that is just before given one.
Parameters:
  endingPanel - the panel is searched backwards, beginning from this.



releaseGUI
public void releaseGUI()(Code)
Releases GUI interaction.



setQuitButtonIcon
public void setQuitButtonIcon(String iconName)(Code)
Sets a new icon into the quit button if icons should be used, else nothing will be done.
Parameters:
  iconName - name of the icon to be used



setQuitButtonText
public void setQuitButtonText(String text)(Code)
Changes the quit button text. If text is null, the default quit text is used.
Parameters:
  text - text to be used for changes



setRules
public void setRules(RulesEngine rules)(Code)

Parameters:
  rules - the rules to set



skipPanel
public void skipPanel()(Code)
Allows a panel to ask to be skipped.



switchPanel
protected void switchPanel(int last)(Code)
Switches the current panel.
Parameters:
  last - Description of the Parameter



unlockNextButton
public void unlockNextButton()(Code)
Unlocks the 'next' button.



unlockNextButton
public void unlockNextButton(boolean requestFocus)(Code)
Unlocks the 'next' button.
Parameters:
  requestFocus - if true focus goes to nextButton



unlockPrevButton
public void unlockPrevButton()(Code)
Unlocks the 'previous' button.



wipeAborted
protected void wipeAborted()(Code)
Wipes the written files when you abort the installation.



writeXMLTree
public void writeXMLTree(XMLElement root, OutputStream out) throws Exception(Code)
Writes an XML tree.
Parameters:
  root - The XML tree to write out.
Parameters:
  out - The stream to write on.
throws:
  Exception - Description of the Exception



Fields inherited from javax.swing.JFrame
final public static int EXIT_ON_CLOSE(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected JRootPane rootPane(Code)(Java Doc)
protected boolean rootPaneCheckingEnabled(Code)(Java Doc)

Methods inherited from javax.swing.JFrame
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
protected JRootPane createRootPane()(Code)(Java Doc)
protected void frameInit()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Container getContentPane()(Code)(Java Doc)
public int getDefaultCloseOperation()(Code)(Java Doc)
public Component getGlassPane()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public JMenuBar getJMenuBar()(Code)(Java Doc)
public JLayeredPane getLayeredPane()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public static boolean isDefaultLookAndFeelDecorated()(Code)(Java Doc)
protected boolean isRootPaneCheckingEnabled()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processWindowEvent(WindowEvent e)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void repaint(long time, int x, int y, int width, int height)(Code)(Java Doc)
public void setContentPane(Container contentPane)(Code)(Java Doc)
public void setDefaultCloseOperation(int operation)(Code)(Java Doc)
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)(Code)(Java Doc)
public void setGlassPane(Component glassPane)(Code)(Java Doc)
public void setIconImage(Image image)(Code)(Java Doc)
public void setJMenuBar(JMenuBar menubar)(Code)(Java Doc)
public void setLayeredPane(JLayeredPane layeredPane)(Code)(Java Doc)
public void setLayout(LayoutManager manager)(Code)(Java Doc)
protected void setRootPane(JRootPane root)(Code)(Java Doc)
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.