Java Doc for ShortcutPanel.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.ShortcutPanel

ShortcutPanel
public class ShortcutPanel extends IzPanel implements ActionListener,ListSelectionListener(Code)
This class implements a panel for the creation of shortcuts. The panel prompts the user to select a program group for shortcuts, accept the creation of desktop shortcuts and actually creates the shortcuts. Use LateShortcutInstallListener to create the Shortcuts after the Files have been installed.
version:
   $Revision: 2061 $


Field Summary
final public static  StringAUTO_ATTRIBUTE_COMMAND
    
final public static  StringAUTO_ATTRIBUTE_DESCRIPTION
    
final public static  StringAUTO_ATTRIBUTE_GROUP
    
final public static  StringAUTO_ATTRIBUTE_ICON
    
final public static  StringAUTO_ATTRIBUTE_ICON_INDEX
    
final public static  StringAUTO_ATTRIBUTE_INITIAL_STATE
    
final public static  StringAUTO_ATTRIBUTE_NAME
    
final public static  StringAUTO_ATTRIBUTE_TARGET
    
final public static  StringAUTO_ATTRIBUTE_TYPE
    
final public static  StringAUTO_ATTRIBUTE_WORKING_DIR
    
final public static  StringAUTO_KEY_PROGRAM_GROUP
    
final public static  StringAUTO_KEY_SHORTCUT
    
final public static  StringCREATE_FOR_ALL
    
final public static  StringSPEC_ATTRIBUTE_ENCODING
    
final public static  StringSPEC_ATTRIBUTE_KDE_SUBST_UID
    
final public static  StringSPEC_ATTRIBUTE_KDE_USERNAME
    
final public static  StringSPEC_ATTRIBUTE_MIMETYPE
    
final public static  StringSPEC_ATTRIBUTE_TERMINAL
    
final public static  StringSPEC_ATTRIBUTE_TERMINAL_OPTIONS
    
final public static  StringSPEC_ATTRIBUTE_TYPE
    
final public static  StringSPEC_ATTRIBUTE_URL
    
final public static  StringSPEC_CATEGORIES
    
final public static  StringSPEC_TRYEXEC
    
final public static  StringUSER_TYPE
    
 intcol
    
static  booleancreate
    
public static  booleancreateImmediately
     May be switched by an installerlistener to false.
 intline
    

Constructor Summary
public  ShortcutPanel(InstallerFrame parent, InstallData installData)
     Constructor.

Method Summary
public  voidactionPerformed(ActionEvent event)
     This method represents the ActionListener interface, invoked when an action occurs.
public  voidcreateAndRegisterShortcuts()
     Enables Shortcutcreation from outside, e.g.
public static  ShortcutPanelgetInstance()
    
public  DimensiongetSize()
     Overriding the superclass implementation.
public  booleanisValidated()
     Returns true when all selections have valid settings.
public  voidmakeXMLData(XMLElement panelRoot)
    
public  voidpanelActivate()
     Called when the panel is shown to the user.
public  voidvalueChanged(ListSelectionEvent event)
     This method is called by the groupList when the user makes a selection.

Field Detail
AUTO_ATTRIBUTE_COMMAND
final public static String AUTO_ATTRIBUTE_COMMAND(Code)
AUTO_ATTRIBUTE_COMMAND = "commandLine"



AUTO_ATTRIBUTE_DESCRIPTION
final public static String AUTO_ATTRIBUTE_DESCRIPTION(Code)
AUTO_ATTRIBUTE_DESCRIPTION = "description"



AUTO_ATTRIBUTE_GROUP
final public static String AUTO_ATTRIBUTE_GROUP(Code)
AUTO_ATTRIBUTE_GROUP = "group"



AUTO_ATTRIBUTE_ICON
final public static String AUTO_ATTRIBUTE_ICON(Code)
AUTO_ATTRIBUTE_ICON = "icon"



AUTO_ATTRIBUTE_ICON_INDEX
final public static String AUTO_ATTRIBUTE_ICON_INDEX(Code)
AUTO_ATTRIBUTE_ICON_INDEX = "iconIndex"



AUTO_ATTRIBUTE_INITIAL_STATE
final public static String AUTO_ATTRIBUTE_INITIAL_STATE(Code)
AUTO_ATTRIBUTE_INITIAL_STATE = "initialState"



AUTO_ATTRIBUTE_NAME
final public static String AUTO_ATTRIBUTE_NAME(Code)
AUTO_ATTRIBUTE_NAME = "name"



AUTO_ATTRIBUTE_TARGET
final public static String AUTO_ATTRIBUTE_TARGET(Code)
AUTO_ATTRIBUTE_TARGET = "target"



AUTO_ATTRIBUTE_TYPE
final public static String AUTO_ATTRIBUTE_TYPE(Code)
AUTO_ATTRIBUTE_TYPE "type"



AUTO_ATTRIBUTE_WORKING_DIR
final public static String AUTO_ATTRIBUTE_WORKING_DIR(Code)
AUTO_ATTRIBUTE_WORKING_DIR = "workingDirectory"



AUTO_KEY_PROGRAM_GROUP
final public static String AUTO_KEY_PROGRAM_GROUP(Code)
AUTO_KEY_PROGRAM_GROUP = SPEC_KEY_PROGRAM_GROUP = "programGroup"



AUTO_KEY_SHORTCUT
final public static String AUTO_KEY_SHORTCUT(Code)
AUTO_KEY_SHORTCUT = SPEC_KEY_SHORTCUT = "shortcut"



CREATE_FOR_ALL
final public static String CREATE_FOR_ALL(Code)
CREATE_FOR_ALL = "createForAll"



SPEC_ATTRIBUTE_ENCODING
final public static String SPEC_ATTRIBUTE_ENCODING(Code)
SPEC_ATTRIBUTE_ENCODING = "encoding"



SPEC_ATTRIBUTE_KDE_SUBST_UID
final public static String SPEC_ATTRIBUTE_KDE_SUBST_UID(Code)
SPEC_ATTRIBUTE_KDE_SUBST_UID = "KdeSubstUID"



SPEC_ATTRIBUTE_KDE_USERNAME
final public static String SPEC_ATTRIBUTE_KDE_USERNAME(Code)
SPEC_ATTRIBUTE_KDE_USERNAME ="KdeUsername"



SPEC_ATTRIBUTE_MIMETYPE
final public static String SPEC_ATTRIBUTE_MIMETYPE(Code)
SPEC_ATTRIBUTE_MIMETYPE = "mimetype"



SPEC_ATTRIBUTE_TERMINAL
final public static String SPEC_ATTRIBUTE_TERMINAL(Code)
SPEC_ATTRIBUTE_TERMINAL = "terminal"



SPEC_ATTRIBUTE_TERMINAL_OPTIONS
final public static String SPEC_ATTRIBUTE_TERMINAL_OPTIONS(Code)
SPEC_ATTRIBUTE_TERMINAL_OPTIONS = "terminalOptions"



SPEC_ATTRIBUTE_TYPE
final public static String SPEC_ATTRIBUTE_TYPE(Code)
SPEC_ATTRIBUTE_TYPE = "type"



SPEC_ATTRIBUTE_URL
final public static String SPEC_ATTRIBUTE_URL(Code)
SPEC_ATTRIBUTE_URL = "url"



SPEC_CATEGORIES
final public static String SPEC_CATEGORIES(Code)
SPEC_CATEGORIES = "categories"



SPEC_TRYEXEC
final public static String SPEC_TRYEXEC(Code)
SPEC_TRYEXEC = "tryexec"



USER_TYPE
final public static String USER_TYPE(Code)
USER_TYPE = "usertype" to store this information in the automated.xml



col
int col(Code)
internal column counter



create
static boolean create(Code)
internal flag: create



createImmediately
public static boolean createImmediately(Code)
May be switched by an installerlistener to false. Installerlistener may then perform the creation of the shortcuts after the files have been installed... Default is true.



line
int line(Code)
internal line counter




Constructor Detail
ShortcutPanel
public ShortcutPanel(InstallerFrame parent, InstallData installData)(Code)
Constructor.
Parameters:
  parent - reference to the application frame
Parameters:
  installData - shared information about the installation




Method Detail
actionPerformed
public void actionPerformed(ActionEvent event)(Code)
This method represents the ActionListener interface, invoked when an action occurs.
Parameters:
  event - the action event.



createAndRegisterShortcuts
public void createAndRegisterShortcuts()(Code)
Enables Shortcutcreation from outside, e.g. from an InstallerListener. The Installerlistener can switch the flag "createImmediately" to false on initialisation, and call this method when afterpacks is performed. This makes only sense, if the ShorcutPanel is displayed before the files are copied onto the disk.



getInstance
public static ShortcutPanel getInstance()(Code)
Returns Instance of themself



getSize
public Dimension getSize()(Code)
Overriding the superclass implementation. This method returns the size of the container. the size of the container



isValidated
public boolean isValidated()(Code)
Returns true when all selections have valid settings. This indicates that it is legal to procede to the next panel. true if it is legal to procede to the next panel, otherwise false.



makeXMLData
public void makeXMLData(XMLElement panelRoot)(Code)



panelActivate
public void panelActivate()(Code)
Called when the panel is shown to the user.



valueChanged
public void valueChanged(ListSelectionEvent event)(Code)
This method is called by the groupList when the user makes a selection. It updates the content of the programGroup with the result of the selection.
Parameters:
  event - the list selection event



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.