Java Doc for WizardPanel.java in  » Report » pentaho-report » org » pentaho » jfreereport » wizard » ui » 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 » Report » pentaho report » org.pentaho.jfreereport.wizard.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.pentaho.jfreereport.wizard.ui.WizardPanel

All known Subclasses:   org.pentaho.jfreereport.wizard.ui.step.PageSetupPanel,  org.pentaho.jfreereport.wizard.ui.step.QueryPanel,  org.pentaho.jfreereport.wizard.ui.step.MappingPanel,  org.pentaho.jfreereport.wizard.ui.step.ReportSetupPanel,  org.pentaho.jfreereport.wizard.ui.step.GroupAndDetailPanel,  org.pentaho.jfreereport.wizard.ui.step.FieldSetupPanel,  org.pentaho.jfreereport.wizard.ui.step.ReportDefinitionPanel,
WizardPanel
public class WizardPanel extends Composite implements SelectionListener,IWizardListener,KeyListener(Code)
This class is the base class for all wizard panels. WizardPanels are added to a WizardManager's "step" list. A WizardPanel may override several methods to control wizard behavior, for example, isContinueAllowed() is used to determine if enough information has been filled out by the user to continue to the next step (or finish).


Field Summary
protected  PentahoSWTButtonbackButton
    
protected  PentahoSWTButtoncancelButton
    
public  booleandirty
     There are two flags that mark a wizard step, dirty and stateChanged.
 ListeventListenerList
     This list contains IDirtyListeners who care about being notified when dirtiness happens.
protected  PentahoSWTButtonfinishButton
    
protected  FontlabelFont
    
protected  CompositemainPanel
     An SWT Composite which is the main content area for a wizard step.
protected  PentahoSWTButtonnextButton
    
protected  PentahoSWTButtonokButton
    
protected  PentahoSWTButtonpreviewButton
    
 Propertiesproperties
    
protected  PentahoSWTButtonpublishButton
    
public  booleanstateChanged
     stateChanged is the primary flag to indicate that something has changed.
protected  FonttextFont
    
protected  WizardManagerwizardManager
    

Constructor Summary
public  WizardPanel(Composite parent, int style, WizardManager manager)
     Creates a new WizardPanel object.

Method Summary
public  voidaddDirtyListener(IDirtyListener l)
    
public  voidbackFired(WizardPanel source)
     This method is called when the WizardManager is told to move to the previous step.
public  booleancancelFired(WizardPanel source)
     This method is called when the WizardManager is informed that the wizard is cancelled.
public  CompositecreateContentPanel(int hSpan)
     This method creates the main panel composite used by Wizard Panels.
public  voidfinishFired(WizardPanel source)
     This method is called when the WizardManager is told to finish.
public  voidfireDirtyEvent()
    
public  CompositegetMainPanel()
     This method gets the main panel (Composite).
public  PropertiesgetProperties()
    
public  WizardManagergetWizardManager()
    
public  voidinitWizardPanel()
    
public  voidinitialize(WizardManager manager)
    
public  booleanisBackAllowed()
     This method should be overridden by subclasses to return if we are allowed to move back (the default behavior here is to return true, which is likely acceptable most of the time).
public  booleanisContinueAllowed()
     This method should be overridden by subclasses to return if we are allowed to move to the next step or finish.
public  booleanisNextAllowed()
     This method should be overridden by subclasses to return if we are allowed to move to the next step.
public  voidkeyPressed(KeyEvent e)
     This method is fired when a key is pressed on components we have added the WizardPanel as a KeyListener on.
public  voidkeyReleased(KeyEvent e)
     This method is fired when a key is released on components we have added the WizardPanel as a KeyListener on.
public  booleannextFired(WizardPanel source)
     This method is called when the WizardManager is told to move to the next step.
public  booleanpreviewFired(WizardPanel source)
     This method is called when the WizardManager is informed that the wizard is previewing.
public  voidpublishFired(WizardPanel source)
    
public  voidremoveAllDirtyListeners()
    
public  voidremoveDirtyListener(IDirtyListener l)
    
public  voidsetMainPanel(Composite mainPanel)
     This method sets the main panel (Composite).
public  voidsetWizardManager(WizardManager wizardManager)
    
public  voidupdateState()
     This method updates the button enabled state as well as the overall panel enabled state.
public  voidwidgetDefaultSelected(SelectionEvent e)
     This method is necessary to implement when implementing SelectionListener and we do not use it.
public  voidwidgetSelected(SelectionEvent e)
     When any widget is selected, such as a button, a combobox, a checkbox, etc, we mark dirty/stateChanged unless the event originates from next/back/finish/cancel buttons.

Field Detail
backButton
protected PentahoSWTButton backButton(Code)
The 'Back' button on the wizard



cancelButton
protected PentahoSWTButton cancelButton(Code)
The 'Cancel' button on the wizard



dirty
public boolean dirty(Code)
There are two flags that mark a wizard step, dirty and stateChanged. Dirty is used to indicate that we are too dirty to continue, it should only be used for special cases.



eventListenerList
List eventListenerList(Code)
This list contains IDirtyListeners who care about being notified when dirtiness happens.



finishButton
protected PentahoSWTButton finishButton(Code)
The 'Finish' button on the wizard



labelFont
protected Font labelFont(Code)



mainPanel
protected Composite mainPanel(Code)
An SWT Composite which is the main content area for a wizard step.



nextButton
protected PentahoSWTButton nextButton(Code)
The 'Next' button on the wizard



okButton
protected PentahoSWTButton okButton(Code)
The 'Ok' button on the wizard



previewButton
protected PentahoSWTButton previewButton(Code)
The 'Preview' button on the wizard



properties
Properties properties(Code)



publishButton
protected PentahoSWTButton publishButton(Code)



stateChanged
public boolean stateChanged(Code)
stateChanged is the primary flag to indicate that something has changed. The purpose of this flag is to allow us to process or skip changes. When next/finish is fired we can check stateChanged.



textFont
protected Font textFont(Code)



wizardManager
protected WizardManager wizardManager(Code)
A reference to the WizardManager




Constructor Detail
WizardPanel
public WizardPanel(Composite parent, int style, WizardManager manager)(Code)
Creates a new WizardPanel object.
Parameters:
  parent -
Parameters:
  style -
Parameters:
  manager -




Method Detail
addDirtyListener
public void addDirtyListener(IDirtyListener l)(Code)
This method adds an IDirtyListener to our listener list
Parameters:
  l - the IDirtyListener to add



backFired
public void backFired(WizardPanel source)(Code)
This method is called when the WizardManager is told to move to the previous step. This method is called on all listeners, so it may be important and useful for implements of this method in subclasses to filter out everything except itself.
Parameters:
  source - The WizardPanel that the back event originated from



cancelFired
public boolean cancelFired(WizardPanel source)(Code)
This method is called when the WizardManager is informed that the wizard is cancelled. This method is called on all listeners, so it may be important and useful for implements of this method in subclasses to filter out everything except itself.
Parameters:
  source - The WizardPanel that the finish event originated from



createContentPanel
public Composite createContentPanel(int hSpan)(Code)
This method creates the main panel composite used by Wizard Panels. Composite the main panel



finishFired
public void finishFired(WizardPanel source)(Code)
This method is called when the WizardManager is told to finish. This method is called on all listeners, so it may be important and useful for implements of this method in subclasses to filter out everything except itself.
Parameters:
  source - The WizardPanel that the finish event originated from



fireDirtyEvent
public void fireDirtyEvent()(Code)
Fires 'dirtyFired' on all listeners



getMainPanel
public Composite getMainPanel()(Code)
This method gets the main panel (Composite). Returns the mainPanel.



getProperties
public Properties getProperties()(Code)



getWizardManager
public WizardManager getWizardManager()(Code)
This method gets the WizardManager for this WizardPanel Returns the wizardManager.



initWizardPanel
public void initWizardPanel()(Code)



initialize
public void initialize(WizardManager manager)(Code)
The initialize method creates the GUI
Parameters:
  manager - WizardManager that we will add ourselves to listen on and hold reference to



isBackAllowed
public boolean isBackAllowed()(Code)
This method should be overridden by subclasses to return if we are allowed to move back (the default behavior here is to return true, which is likely acceptable most of the time). boolean



isContinueAllowed
public boolean isContinueAllowed()(Code)
This method should be overridden by subclasses to return if we are allowed to move to the next step or finish. boolean



isNextAllowed
public boolean isNextAllowed()(Code)
This method should be overridden by subclasses to return if we are allowed to move to the next step. boolean



keyPressed
public void keyPressed(KeyEvent e)(Code)
This method is fired when a key is pressed on components we have added the WizardPanel as a KeyListener on.
Parameters:
  e -



keyReleased
public void keyReleased(KeyEvent e)(Code)
This method is fired when a key is released on components we have added the WizardPanel as a KeyListener on.
Parameters:
  e -



nextFired
public boolean nextFired(WizardPanel source)(Code)
This method is called when the WizardManager is told to move to the next step. This method is called on all listeners, so it may be important and useful for implements of this method in subclasses to filter out everything except itself.
Parameters:
  source - The WizardPanel that the next event originated from



previewFired
public boolean previewFired(WizardPanel source)(Code)
This method is called when the WizardManager is informed that the wizard is previewing. This method is called on all listeners, so it may be important and useful for implements of this method in subclasses to filter out everything except itself.
Parameters:
  source - The WizardPanel that the finish event originated from



publishFired
public void publishFired(WizardPanel source)(Code)



removeAllDirtyListeners
public void removeAllDirtyListeners()(Code)
This method removes all IDirtyListeners from the event listener list



removeDirtyListener
public void removeDirtyListener(IDirtyListener l)(Code)
This method removes an IDirtyListener from our listener list
Parameters:
  l - the IDirtyListener to remove



setMainPanel
public void setMainPanel(Composite mainPanel)(Code)
This method sets the main panel (Composite).
Parameters:
  mainPanel - The mainPanel to set.



setWizardManager
public void setWizardManager(WizardManager wizardManager)(Code)
This method sets the WizardManager for this WizardPanel
Parameters:
  wizardManager - The wizardManager to set.



updateState
public void updateState()(Code)
This method updates the button enabled state as well as the overall panel enabled state. The buttons have their state updated based on checking if their action is allowed. If the previous wizard step does not allow continue then this step should appear to be disabled (if a GUI, like tabs, allows you to select them).



widgetDefaultSelected
public void widgetDefaultSelected(SelectionEvent e)(Code)
This method is necessary to implement when implementing SelectionListener and we do not use it.
Parameters:
  e -



widgetSelected
public void widgetSelected(SelectionEvent e)(Code)
When any widget is selected, such as a button, a combobox, a checkbox, etc, we mark dirty/stateChanged unless the event originates from next/back/finish/cancel buttons.
Parameters:
  e -



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