Java Doc for XQuestionPage.java in  » XML-UI » xui32 » com » xoetrope » swing » survey » 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 » XML UI » xui32 » com.xoetrope.swing.survey 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.xoetrope.swing.survey.XQuestionPage

XQuestionPage
public class XQuestionPage extends XPage (Code)
XQuestionPage is a page class that provides support for questionaires by way of a QuestionManager.

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.7 $



Field Summary
protected  intsleepTime
    
protected  SurveyManagersurveyManager
    

Constructor Summary
public  XQuestionPage()
    

Method Summary
public  voidfirstPage()
    
public  voidfirstPageClick()
    
public  StringgetCurrentGroupId()
     Gets the id of the current question group.
public  StringgetCurrentGroupName()
     Gets the name of the current question group.
public  StringgetCurrentOption()
     Gets the current option of the current question.
public  StringgetCurrentOptionId()
    
public  StringgetCurrentOptionName()
    
public  StringgetCurrentPageNr()
     Gets the number of the current page.
public  StringgetCurrentQuestion()
     Gets the current question in the current survey.
public  StringgetCurrentQuestionId()
     Gets the id of the current question.
public  StringgetCurrentQuestionTemplate()
     Returns the default name of the page template for the current question type.
public  StringgetCurrentSurvey()
     Gets the name of the current survey.
public  StringgetExclusiveOptionModelPath()
     Gets the binding path of the current option.
public  StringgetFreeTextOptionModelPath()
     Gets the binding path of the current option.
public  StringgetMultiOptionModelPath()
     Gets the binding path of the current option.
public  StringgetNextOption()
    
public  StringgetNextOptionId()
     Gets the next option of the current question.
public  StringgetNextQuestion()
     Gets the next question in the current survey.
public  intgetSleepTime()
     Gets the time after which the survey will be restarted automatically, in case the "RestartSurvey" startup property is set to "true".
public  StringgetSurveyName()
     Gets the name of the current survey.
public  voidhandleFocus()
    
public  voidhandleMouse()
    
public  booleanhasMoreOptions()
     Indicates whether the iteration through the options of the current question has more elements.
public  booleanhasMoreQuestions()
    
public synchronized  voidnextPage()
     Shows the next question page, if the current question page is the last one shows the finish page.
public  voidnextPageClick()
    
public  voidprevPage()
    
public  voidprevPageClick()
     Shows the previous question page if the mouse was clicked.
protected  voidreloadQuestionPage(String questionPage)
     Shows the specified question page.
protected  voidsaveResponses(Vector responses)
     Saves the responses given by the user in this survey.
public  StringsetGroupQuestion(int groupId, int questionId)
    
public  StringsetQuestion(int questionId)
    
public  voidsetSleepTime(int time)
    
protected  booleanshowNextPage(String questionPage)
     Stores the current question page in the survey history and shows the specified page.
protected  voidshowThankYouPage(String finishPage)
     Saves the responses given by the user and displays the finish page.

Field Detail
sleepTime
protected int sleepTime(Code)



surveyManager
protected SurveyManager surveyManager(Code)




Constructor Detail
XQuestionPage
public XQuestionPage()(Code)
Creates a new instance of XQuestionPage




Method Detail
firstPage
public void firstPage()(Code)
Shows the first page of the survey



firstPageClick
public void firstPageClick()(Code)
Shows the first question page if the mouse was clicked



getCurrentGroupId
public String getCurrentGroupId()(Code)
Gets the id of the current question group. the current group's id



getCurrentGroupName
public String getCurrentGroupName()(Code)
Gets the name of the current question group. the current group's name.



getCurrentOption
public String getCurrentOption()(Code)
Gets the current option of the current question.
Parameters:
  text - of the current question.



getCurrentOptionId
public String getCurrentOptionId()(Code)
Gets the id of the current option current option id



getCurrentOptionName
public String getCurrentOptionName()(Code)
Gets the unique name of the current option option's name



getCurrentPageNr
public String getCurrentPageNr()(Code)
Gets the number of the current page. current page's number.



getCurrentQuestion
public String getCurrentQuestion()(Code)
Gets the current question in the current survey. text of the current question.



getCurrentQuestionId
public String getCurrentQuestionId()(Code)
Gets the id of the current question. the current question id.



getCurrentQuestionTemplate
public String getCurrentQuestionTemplate()(Code)
Returns the default name of the page template for the current question type. the name of the page



getCurrentSurvey
public String getCurrentSurvey()(Code)
Gets the name of the current survey. the current survey.



getExclusiveOptionModelPath
public String getExclusiveOptionModelPath()(Code)
Gets the binding path of the current option. The type of the current question has to be "mutually exclusive" the binding path



getFreeTextOptionModelPath
public String getFreeTextOptionModelPath()(Code)
Gets the binding path of the current option. The type of the current question has to be "free text" the binding path



getMultiOptionModelPath
public String getMultiOptionModelPath()(Code)
Gets the binding path of the current option. The type of the current question has to be "multiple choice" the binding path



getNextOption
public String getNextOption()(Code)
Gets the next option of the currnent question the text of the next option



getNextOptionId
public String getNextOptionId()(Code)
Gets the next option of the current question. the text of the next option.



getNextQuestion
public String getNextQuestion()(Code)
Gets the next question in the current survey. text of the next question



getSleepTime
public int getSleepTime()(Code)
Gets the time after which the survey will be restarted automatically, in case the "RestartSurvey" startup property is set to "true". time in seconds



getSurveyName
public String getSurveyName()(Code)
Gets the name of the current survey. current survey's name.



handleFocus
public void handleFocus()(Code)



handleMouse
public void handleMouse()(Code)



hasMoreOptions
public boolean hasMoreOptions()(Code)
Indicates whether the iteration through the options of the current question has more elements. true if the iteration has more elements,false otherwise



hasMoreQuestions
public boolean hasMoreQuestions()(Code)
Indicates whether the iteration through the current group's questions has more elements true if the iteration has more elements,false otherwise



nextPage
public synchronized void nextPage()(Code)
Shows the next question page, if the current question page is the last one shows the finish page.



nextPageClick
public void nextPageClick()(Code)
Shows the next question page if the mouse was clicked



prevPage
public void prevPage()(Code)
Shows the previous page



prevPageClick
public void prevPageClick()(Code)
Shows the previous question page if the mouse was clicked.



reloadQuestionPage
protected void reloadQuestionPage(String questionPage)(Code)
Shows the specified question page.
Parameters:
  questionPage - the name of the question page



saveResponses
protected void saveResponses(Vector responses)(Code)
Saves the responses given by the user in this survey.
Parameters:
  Vector - containing user's responses



setGroupQuestion
public String setGroupQuestion(int groupId, int questionId)(Code)
Sets the current group of questions and the current question
Parameters:
  groupId - the group id
Parameters:
  questionId - the id of the question the caption of the question



setQuestion
public String setQuestion(int questionId)(Code)
Sets the current question
Parameters:
  questionId - the question id the caption of the question



setSleepTime
public void setSleepTime(int time)(Code)
Sets the time after which the survey will be retarted automatically
Parameters:
  time - the time in seconds



showNextPage
protected boolean showNextPage(String questionPage)(Code)
Stores the current question page in the survey history and shows the specified page.
Parameters:
  the - name of the page to be shown false if there is no more question pages to show,false otherwise



showThankYouPage
protected void showThankYouPage(String finishPage)(Code)
Saves the responses given by the user and displays the finish page.
Parameters:
  finishPage - the name of the last page.



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