Java Doc for PacksPanelBase.java in  » Installer » IzPack » com » izforge » izpack » panels » 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.panels 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JPanel
   com.izforge.izpack.installer.IzPanel
      com.izforge.izpack.panels.PacksPanelBase

All known Subclasses:   com.izforge.izpack.panels.PacksPanel,  com.izforge.izpack.panels.ImgPacksPanel,
PacksPanelBase
abstract public class PacksPanelBase extends IzPanel implements PacksPanelInterface,ListSelectionListener(Code)
The base class for Packs panels. It brings the common member and methods of the different packs panels together. This class handles the common logic of pack selection. The derived class should be create the layout and other specific actions. There are some helper methods to simplify layout creation in the derived class.
author:
   Julien Ponge
author:
   Klaus Bartz
author:
   Dennis Reil

Inner Class :static class CheckBoxRenderer implements TableCellRenderer
Inner Class :public static class LFIndependentIcon implements Icon
Inner Class :static class PacksPanelTableCellRenderer extends DefaultTableCellRenderer

Field Summary
protected  longbytes
     The bytes of the current pack.
protected  booleandependenciesExist
    
protected  JTextAreadependencyArea
     The dependencies label.
protected  JTextAreadescriptionArea
     The tip label.
protected  longfreeBytes
     The free bytes of the current selected disk.
protected  JLabelfreeSpaceLabel
     The free space label.
protected  PacksModelpacksModel
     The packs model.
protected  JTablepacksTable
     The packs table.
protected  JLabelspaceLabel
     The space label.
protected  JScrollPanetableScroller
     The tablescroll.

Constructor Summary
public  PacksPanelBase(InstallerFrame parent, InstallData idata)
     The constructor.

Method Summary
protected  JLabelcreateLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints)
     Layout helper method:
Creates an label with a message given by msgId and an icon given by the iconId.
abstract protected  voidcreateNormalLayout()
     The Implementation of this method should create the layout for the current class.
protected  JTablecreatePacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)
     Creates the table for the packs.
protected  JLabelcreatePanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints)
     Creates a panel containing a anonymous label on the left with the message for the given msgId and a label on the right side with initial no text.
protected  JTextAreacreateTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)
     Creates a text area with standard settings and the title given by the msgId.
public  longgetBytes()
    
public  DebuggergetDebugger()
    
public  LocaleDatabasegetLangpack()
    
public  StringgetSummaryBody()
    
public  booleanisValidated()
     Indicates wether the panel has been validated or not.
public  voidmakeXMLData(XMLElement panelRoot)
     Asks to make the XML panel data.
public  voidpanelActivate()
     Called when the panel becomes active.
public  voidsetBytes(long bytes)
    
public  voidshowFreeSpace()
    
public  voidshowSpaceRequired()
    
public  voidvalueChanged(ListSelectionEvent e)
    

Field Detail
bytes
protected long bytes(Code)
The bytes of the current pack.



dependenciesExist
protected boolean dependenciesExist(Code)
Are there dependencies in the packs



dependencyArea
protected JTextArea dependencyArea(Code)
The dependencies label.



descriptionArea
protected JTextArea descriptionArea(Code)
The tip label.



freeBytes
protected long freeBytes(Code)
The free bytes of the current selected disk.



freeSpaceLabel
protected JLabel freeSpaceLabel(Code)
The free space label.



packsModel
protected PacksModel packsModel(Code)
The packs model.



packsTable
protected JTable packsTable(Code)
The packs table.



spaceLabel
protected JLabel spaceLabel(Code)
The space label.



tableScroller
protected JScrollPane tableScroller(Code)
The tablescroll.




Constructor Detail
PacksPanelBase
public PacksPanelBase(InstallerFrame parent, InstallData idata)(Code)
The constructor.
Parameters:
  parent - The parent window.
Parameters:
  idata - The installation data.




Method Detail
createLabel
protected JLabel createLabel(String msgId, String iconId, GridBagLayout layout, GridBagConstraints constraints)(Code)
Layout helper method:
Creates an label with a message given by msgId and an icon given by the iconId. If layout and constraints are not null, the label will be added to layout with the given constraints. The label will be added to this object.
Parameters:
  msgId - identifier for the IzPack langpack
Parameters:
  iconId - identifier for the IzPack icons
Parameters:
  layout - layout to be used
Parameters:
  constraints - constraints to be used the created label



createNormalLayout
abstract protected void createNormalLayout()(Code)
The Implementation of this method should create the layout for the current class.



createPacksTable
protected JTable createPacksTable(int width, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)(Code)
Creates the table for the packs. All parameters are required. The table will be returned.
Parameters:
  width - of the table
Parameters:
  scroller - the scroller to be used
Parameters:
  layout - layout to be used
Parameters:
  constraints - constraints to be used the created table



createPanelWithLabel
protected JLabel createPanelWithLabel(String msgId, GridBagLayout layout, GridBagConstraints constraints)(Code)
Creates a panel containing a anonymous label on the left with the message for the given msgId and a label on the right side with initial no text. The right label will be returned. If layout and constraints are not null, the label will be added to layout with the given constraints. The panel will be added to this object.
Parameters:
  msgId - identifier for the IzPack langpack
Parameters:
  layout - layout to be used
Parameters:
  constraints - constraints to be used the created (right) label



createTextArea
protected JTextArea createTextArea(String msgId, JScrollPane scroller, GridBagLayout layout, GridBagConstraints constraints)(Code)
Creates a text area with standard settings and the title given by the msgId. If scroller is not null, the create text area will be added to the scroller and the scroller to this object, else the text area will be added directly to this object. If layout and constraints are not null, the text area or scroller will be added to layout with the given constraints. The text area will be returned.
Parameters:
  msgId - identifier for the IzPack langpack
Parameters:
  scroller - the scroller to be used
Parameters:
  layout - layout to be used
Parameters:
  constraints - constraints to be used the created text area



getBytes
public long getBytes()(Code)



getDebugger
public Debugger getDebugger()(Code)



getLangpack
public LocaleDatabase getLangpack()(Code)



getSummaryBody
public String getSummaryBody()(Code)



isValidated
public boolean isValidated()(Code)
Indicates wether the panel has been validated or not. true if the needed space is less than the free space, else false



makeXMLData
public void makeXMLData(XMLElement panelRoot)(Code)
Asks to make the XML panel data.
Parameters:
  panelRoot - The XML tree to write the data in.



panelActivate
public void panelActivate()(Code)
Called when the panel becomes active. If a derived class implements this method also, it is recomanded to call this method with the super operator first.



setBytes
public void setBytes(long bytes)(Code)



showFreeSpace
public void showFreeSpace()(Code)



showSpaceRequired
public void showSpaceRequired()(Code)



valueChanged
public void valueChanged(ListSelectionEvent e)(Code)



Fields inherited from com.izforge.izpack.installer.IzPanel
final public static int COLS_1(Code)(Java Doc)
final public static String D(Code)(Java Doc)
final public static String HEADLINE(Code)(Java Doc)
final public static int ROWS_1(Code)(Java Doc)
final public static int X_ORIGIN(Code)(Java Doc)
final public static int Y_ORIGIN(Code)(Java Doc)
final public static String d(Code)(Java Doc)
protected JLabel headLineLabel(Code)(Java Doc)
protected String headline(Code)(Java Doc)
protected boolean hidden(Code)(Java Doc)
protected InstallData idata(Code)(Java Doc)
protected Component initialFocus(Code)(Java Doc)
protected LayoutHelper layoutHelper(Code)(Java Doc)
public Panel metadata(Code)(Java Doc)
protected String myClassname(Code)(Java Doc)
protected String myFullClassname(Code)(Java Doc)
protected String myPrefix(Code)(Java Doc)
protected InstallerFrame parent(Code)(Java Doc)

Methods inherited from com.izforge.izpack.installer.IzPanel
public int askQuestion(String title, String question, int choices)(Code)(Java Doc)
public int askQuestion(String title, String question, int choices, int default_choice)(Code)(Java Doc)
protected boolean buildHeadline(String imageIconName, int instanceNumber)(Code)(Java Doc)
public void completeGridBagLayout()(Code)(Java Doc)
public JLabel createLabel(String subkey, String alternateClass, String iconId, int pos)(Code)(Java Doc)
public JLabel createLabel(String subkey, String alternateClass, String iconId, int pos, boolean isFullLine)(Code)(Java Doc)
public JLabel createLabel(String textId, String iconId, int pos)(Code)(Java Doc)
public JLabel createLabel(String textId, String iconId, int pos, boolean isFullLine)(Code)(Java Doc)
public MultiLineLabel createMultiLineLabel(String text)(Code)(Java Doc)
public MultiLineLabel createMultiLineLabel(String text, String iconId, int pos)(Code)(Java Doc)
public MultiLineLabel createMultiLineLabelLang(String textId)(Code)(Java Doc)
public void emitError(String title, String message)(Code)(Java Doc)
public void emitNotification(String message)(Code)(Java Doc)
public boolean emitNotificationFeedback(String message)(Code)(Java Doc)
public boolean emitWarning(String title, String message)(Code)(Java Doc)
protected void getClassName()(Code)(Java Doc)
public Font getControlTextFont()(Code)(Java Doc)
public GridBagConstraints getDefaultGridBagConstraints()(Code)(Java Doc)
public String getI18nStringForClass(String subkey)(Code)(Java Doc)
public String getI18nStringForClass(String subkey, String alternateClass)(Code)(Java Doc)
public ImageIcon getImageIcon(String iconName)(Code)(Java Doc)
public Component getInitialFocus()(Code)(Java Doc)
public InstallerFrame getInstallerFrame()(Code)(Java Doc)
protected static MetalLookAndFeel getLAF()(Code)(Java Doc)
public LayoutHelper getLayoutHelper()(Code)(Java Doc)
public Panel getMetadata()(Code)(Java Doc)
public GridBagConstraints getNewGridBagConstraints(int gridx, int gridy)(Code)(Java Doc)
public GridBagConstraints getNewGridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight)(Code)(Java Doc)
public GridBagConstraints getNextXGridBagConstraints()(Code)(Java Doc)
public GridBagConstraints getNextYGridBagConstraints()(Code)(Java Doc)
public GridBagConstraints getNextYGridBagConstraints(int gridwidth, int gridheight)(Code)(Java Doc)
public String getString(String key)(Code)(Java Doc)
public String getSummaryBody()(Code)(Java Doc)
public String getSummaryCaption()(Code)(Java Doc)
protected void init(InstallerFrame parent, InstallData idata)(Code)(Java Doc)
protected void initLayoutHelper()(Code)(Java Doc)
public boolean isHidden()(Code)(Java Doc)
public boolean isValidated()(Code)(Java Doc)
public void makeXMLData(XMLElement panelRoot)(Code)(Java Doc)
public void panelActivate()(Code)(Java Doc)
public void panelDeactivate()(Code)(Java Doc)
public void resetGridCounter()(Code)(Java Doc)
public void setDefaultGridBagConstraints(GridBagConstraints constraints)(Code)(Java Doc)
public void setHidden(boolean hidden)(Code)(Java Doc)
public void setInitialFocus(Component component)(Code)(Java Doc)
public void setMetadata(Panel p)(Code)(Java Doc)
public void startGridBagLayout()(Code)(Java Doc)

Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.