Java Doc for WizardDataTransferPage.java in  » IDE-Eclipse » ui-ide » org » eclipse » ui » dialogs » 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 » IDE Eclipse » ui ide » org.eclipse.ui.dialogs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.dialogs.WizardDataTransferPage

All known Subclasses:   org.eclipse.ui.dialogs.WizardExportResourcesPage,  org.eclipse.ui.dialogs.WizardExportPage,  org.eclipse.ui.dialogs.WizardResourceImportPage,  org.eclipse.ui.dialogs.WizardImportPage,
WizardDataTransferPage
abstract public class WizardDataTransferPage extends WizardPage implements Listener,IOverwriteQuery(Code)
The common superclass for wizard import and export pages.

This class is not intended to be subclassed outside of the workbench.



Field Summary
final protected static  intCOMBO_HISTORY_LENGTH
    
final protected static  intSIZING_TEXT_FIELD_WIDTH
    

Constructor Summary
protected  WizardDataTransferPage(String pageName)
     Creates a new wizard page.

Method Summary
protected  String[]addToHistory(String[] history, String newEntry)
     Adds an entry to a history, while taking care of duplicate history items and excessively long histories.
protected  voidaddToHistory(List history, String newEntry)
     Adds an entry to a history, while taking care of duplicate history items and excessively long histories.
abstract protected  booleanallowNewContainerName()
     Return whether the user is allowed to enter a new container name or just choose from existing ones.
protected  LabelcreateBoldLabel(Composite parent, String text)
     Creates a new label with a bold font.
protected  voidcreateOptionsGroup(Composite parent)
     Create the options specification widgets.
protected  voidcreateOptionsGroupButtons(Group optionsGroup)
     Creates the import/export options group controls.

The WizardDataTransferPage implementation of this method does nothing.

protected  LabelcreatePlainLabel(Composite parent, String text)
     Creates a new label with a bold font.
protected  voidcreateSpacer(Composite parent)
     Creates a horizontal spacer line that fills the width of its container.
protected  booleandeterminePageCompletion()
     Returns whether this page is complete.
protected  voiddisplayErrorDialog(String message)
     Display an error dialog with the specified message.
protected  voiddisplayErrorDialog(Throwable exception)
     Display an error dislog with the information from the supplied exception.
protected  StringgetErrorDialogTitle()
     Get the title for an error dialog.
protected  IPathgetPathFromText(Text textField)
     Get a path from the supplied text widget.
protected  IPathqueryForContainer(IContainer initialSelection, String msg)
     Queries the user to supply a container resource.
protected  IPathqueryForContainer(IContainer initialSelection, String msg, String title)
     Queries the user to supply a container resource.
public  StringqueryOverwrite(String pathString)
     The WizardDataTransfer implementation of this IOverwriteQuery method asks the user whether the existing resource at the given path should be overwritten.
protected  booleanqueryYesNoQuestion(String message)
     Displays a Yes/No question to the user with the specified message and returns the user's response.
protected  voidrestoreWidgetValues()
     Restores control settings that were saved in the previous instance of this page.
protected  voidsaveWidgetValues()
     Saves control settings that are to be restored in the next instance of this page.
protected  voidupdatePageCompletion()
     Determine if the page is complete and update the page appropriately.
protected  voidupdateWidgetEnablements()
     Updates the enable state of this page's controls.

The WizardDataTransferPage implementation of this method does nothing.

protected  booleanvalidateDestinationGroup()
     Returns whether this page's destination specification controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true.

protected  booleanvalidateOptionsGroup()
     Returns whether this page's options group's controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true.

protected  booleanvalidateSourceGroup()
     Returns whether this page's source specification controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true.


Field Detail
COMBO_HISTORY_LENGTH
final protected static int COMBO_HISTORY_LENGTH(Code)



SIZING_TEXT_FIELD_WIDTH
final protected static int SIZING_TEXT_FIELD_WIDTH(Code)




Constructor Detail
WizardDataTransferPage
protected WizardDataTransferPage(String pageName)(Code)
Creates a new wizard page.
Parameters:
  pageName - the name of the page




Method Detail
addToHistory
protected String[] addToHistory(String[] history, String newEntry)(Code)
Adds an entry to a history, while taking care of duplicate history items and excessively long histories. The assumption is made that all histories should be of length WizardDataTransferPage.COMBO_HISTORY_LENGTH.
Parameters:
  history - the current history
Parameters:
  newEntry - the entry to add to the history



addToHistory
protected void addToHistory(List history, String newEntry)(Code)
Adds an entry to a history, while taking care of duplicate history items and excessively long histories. The assumption is made that all histories should be of length WizardDataTransferPage.COMBO_HISTORY_LENGTH.
Parameters:
  history - the current history
Parameters:
  newEntry - the entry to add to the history



allowNewContainerName
abstract protected boolean allowNewContainerName()(Code)
Return whether the user is allowed to enter a new container name or just choose from existing ones.

Subclasses must implement this method.

true if new ones are okay, and falseif only existing ones are allowed



createBoldLabel
protected Label createBoldLabel(Composite parent, String text)(Code)
Creates a new label with a bold font.
Parameters:
  parent - the parent control
Parameters:
  text - the label text the new label control



createOptionsGroup
protected void createOptionsGroup(Composite parent)(Code)
Create the options specification widgets.
Parameters:
  parent - org.eclipse.swt.widgets.Composite



createOptionsGroupButtons
protected void createOptionsGroupButtons(Group optionsGroup)(Code)
Creates the import/export options group controls.

The WizardDataTransferPage implementation of this method does nothing. Subclasses wishing to define such components should reimplement this hook method.


Parameters:
  optionsGroup - the parent control



createPlainLabel
protected Label createPlainLabel(Composite parent, String text)(Code)
Creates a new label with a bold font.
Parameters:
  parent - the parent control
Parameters:
  text - the label text the new label control



createSpacer
protected void createSpacer(Composite parent)(Code)
Creates a horizontal spacer line that fills the width of its container.
Parameters:
  parent - the parent control



determinePageCompletion
protected boolean determinePageCompletion()(Code)
Returns whether this page is complete. This determination is made based upon the current contents of this page's controls. Subclasses wishing to include their controls in this determination should override the hook methods validateSourceGroup and/or validateOptionsGroup. true if this page is complete, and false ifincomplete
See Also:   WizardDataTransferPage.validateSourceGroup
See Also:   WizardDataTransferPage.validateOptionsGroup



displayErrorDialog
protected void displayErrorDialog(String message)(Code)
Display an error dialog with the specified message.
Parameters:
  message - the error message



displayErrorDialog
protected void displayErrorDialog(Throwable exception)(Code)
Display an error dislog with the information from the supplied exception.
Parameters:
  exception - Throwable



getErrorDialogTitle
protected String getErrorDialogTitle()(Code)
Get the title for an error dialog. Subclasses should override.



getPathFromText
protected IPath getPathFromText(Text textField)(Code)
Get a path from the supplied text widget. org.eclipse.core.runtime.IPath



queryForContainer
protected IPath queryForContainer(IContainer initialSelection, String msg)(Code)
Queries the user to supply a container resource. the path to an existing or new container, or null if theuser cancelled the dialog



queryForContainer
protected IPath queryForContainer(IContainer initialSelection, String msg, String title)(Code)
Queries the user to supply a container resource. the path to an existing or new container, or null if theuser cancelled the dialog



queryOverwrite
public String queryOverwrite(String pathString)(Code)
The WizardDataTransfer implementation of this IOverwriteQuery method asks the user whether the existing resource at the given path should be overwritten.
Parameters:
  pathString - the user's reply: one of "YES", "NO", "ALL", or "CANCEL"



queryYesNoQuestion
protected boolean queryYesNoQuestion(String message)(Code)
Displays a Yes/No question to the user with the specified message and returns the user's response.
Parameters:
  message - the question to ask true for Yes, and false for No



restoreWidgetValues
protected void restoreWidgetValues()(Code)
Restores control settings that were saved in the previous instance of this page.

The WizardDataTransferPage implementation of this method does nothing. Subclasses may override this hook method.




saveWidgetValues
protected void saveWidgetValues()(Code)
Saves control settings that are to be restored in the next instance of this page.

The WizardDataTransferPage implementation of this method does nothing. Subclasses may override this hook method.




updatePageCompletion
protected void updatePageCompletion()(Code)
Determine if the page is complete and update the page appropriately.



updateWidgetEnablements
protected void updateWidgetEnablements()(Code)
Updates the enable state of this page's controls.

The WizardDataTransferPage implementation of this method does nothing. Subclasses may extend this hook method.




validateDestinationGroup
protected boolean validateDestinationGroup()(Code)
Returns whether this page's destination specification controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true. Subclasses may reimplement this hook method.

true indicating validity of all controls in the destination specification group



validateOptionsGroup
protected boolean validateOptionsGroup()(Code)
Returns whether this page's options group's controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true. Subclasses may reimplement this hook method.

true indicating validity of all controls in the optionsgroup



validateSourceGroup
protected boolean validateSourceGroup()(Code)
Returns whether this page's source specification controls currently all contain valid values.

The WizardDataTransferPage implementation of this method returns true. Subclasses may reimplement this hook method.

true indicating validity of all controls in the source specification group



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