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


org.eclipse.ui.dialogs.SelectionDialog

All known Subclasses:   org.eclipse.ui.internal.dialogs.WorkbenchEditorsDialog,  org.eclipse.ui.dialogs.TypeFilteringDialog,  org.eclipse.ui.dialogs.ListDialog,  org.eclipse.ui.dialogs.ListSelectionDialog,  org.eclipse.ui.internal.dialogs.AbstractWorkingSetDialog,  org.eclipse.ui.dialogs.SelectionStatusDialog,
SelectionDialog
abstract public class SelectionDialog extends TrayDialog (Code)
The abstract implementation of a selection dialog. It can be primed with initial selections (setInitialSelections), and returns the final selection (via getResult) after completion.

Clients may subclass this dialog to inherit its selection facilities.



Field Summary
static  StringDESELECT_ALL_TITLE
    
static  StringSELECT_ALL_TITLE
    

Constructor Summary
protected  SelectionDialog(Shell parentShell)
     Creates a dialog instance.

Method Summary
protected  voidconfigureShell(Shell shell)
    
protected  voidcreateButtonsForButtonBar(Composite parent)
    
protected  LabelcreateMessageArea(Composite composite)
     Creates the message area for this dialog.
protected  IDialogSettingsgetDialogBoundsSettings()
     Gets the dialog settings that should be used for remembering the bounds of the dialog, according to the dialog bounds strategy.
protected  intgetDialogBoundsStrategy()
     Get the integer constant that describes the strategy for persisting the dialog bounds.
protected  ListgetInitialElementSelections()
     Returns the list of initial element selections.
protected  ListgetInitialSelections()
     Returns the initial selection in this selection dialog.
protected  StringgetMessage()
     Returns the message for this dialog.
public  ButtongetOkButton()
     Returns the ok button.
public  Object[]getResult()
     Returns the list of selections made by the user, or null if the selection was canceled.
protected  booleanisResizable()
    
public  voidsetDialogBoundsSettings(IDialogSettings settings, int strategy)
     Set the dialog settings that should be used to save the bounds of this dialog.
public  voidsetInitialElementSelections(List selectedElements)
     Sets the initial selection in this selection dialog to the given elements.
public  voidsetInitialSelections(Object[] selectedElements)
     Sets the initial selection in this selection dialog to the given elements.
public  voidsetMessage(String message)
     Sets the message for this dialog.
protected  voidsetResult(List newResult)
     Set the selections made by the user, or null if the selection was canceled.
protected  voidsetSelectionResult(Object[] newResult)
     Set the selections made by the user, or null if the selection was canceled.
public  voidsetTitle(String title)
     Sets the title for this dialog.

Field Detail
DESELECT_ALL_TITLE
static String DESELECT_ALL_TITLE(Code)



SELECT_ALL_TITLE
static String SELECT_ALL_TITLE(Code)




Constructor Detail
SelectionDialog
protected SelectionDialog(Shell parentShell)(Code)
Creates a dialog instance. Note that the dialog will have no visual representation (no widgets) until it is told to open.
Parameters:
  parentShell - the parent shell




Method Detail
configureShell
protected void configureShell(Shell shell)(Code)



createButtonsForButtonBar
protected void createButtonsForButtonBar(Composite parent)(Code)



createMessageArea
protected Label createMessageArea(Composite composite)(Code)
Creates the message area for this dialog.

This method is provided to allow subclasses to decide where the message will appear on the screen.


Parameters:
  composite - the parent composite the message label



getDialogBoundsSettings
protected IDialogSettings getDialogBoundsSettings()(Code)
Gets the dialog settings that should be used for remembering the bounds of the dialog, according to the dialog bounds strategy. Overridden to provide the dialog settings that were set using SelectionDialog.setDialogBoundsSettings(IDialogSettings,int) . the dialog settings used to store the dialog's location and/orsize, or null if the dialog's bounds should not bestored.
since:
   3.2
See Also:   Dialog.getDialogBoundsStrategy
See Also:   SelectionDialog.setDialogBoundsSettings(IDialogSettings,int)



getDialogBoundsStrategy
protected int getDialogBoundsStrategy()(Code)
Get the integer constant that describes the strategy for persisting the dialog bounds. Overridden to provide the dialog bounds strategy that was set using SelectionDialog.setDialogBoundsSettings(IDialogSettings,int) . the constant describing the strategy for persisting the dialogbounds.
since:
   3.2
See Also:   Dialog.DIALOG_PERSISTLOCATION
See Also:   Dialog.DIALOG_PERSISTSIZE
See Also:   Dialog.getDialogBoundsSettings
See Also:   SelectionDialog.setDialogBoundsSettings(IDialogSettings,int)



getInitialElementSelections
protected List getInitialElementSelections()(Code)
Returns the list of initial element selections. List



getInitialSelections
protected List getInitialSelections()(Code)
Returns the initial selection in this selection dialog. the list of initial selected elements or null



getMessage
protected String getMessage()(Code)
Returns the message for this dialog. the message for this dialog



getOkButton
public Button getOkButton()(Code)
Returns the ok button. the ok button or null if the button is not createdyet.



getResult
public Object[] getResult()(Code)
Returns the list of selections made by the user, or null if the selection was canceled. the array of selected elements, or null if Cancelwas pressed



isResizable
protected boolean isResizable()(Code)



setDialogBoundsSettings
public void setDialogBoundsSettings(IDialogSettings settings, int strategy)(Code)
Set the dialog settings that should be used to save the bounds of this dialog. This method is provided so that clients that directly use SelectionDialogs without subclassing them may specify how the bounds of the dialog are to be saved.
Parameters:
  settings - the IDialogSettings that should be used to store thebounds of the dialog
Parameters:
  strategy - the integer constant specifying how the bounds are saved.Specified using Dialog.DIALOG_PERSISTLOCATIONand Dialog.DIALOG_PERSISTSIZE.
since:
   3.2
See Also:   Dialog.getDialogBoundsStrategy
See Also:   Dialog.getDialogBoundsSettings



setInitialElementSelections
public void setInitialElementSelections(List selectedElements)(Code)
Sets the initial selection in this selection dialog to the given elements.
Parameters:
  selectedElements - the List of elements to select



setInitialSelections
public void setInitialSelections(Object[] selectedElements)(Code)
Sets the initial selection in this selection dialog to the given elements.
Parameters:
  selectedElements - the array of elements to select



setMessage
public void setMessage(String message)(Code)
Sets the message for this dialog.
Parameters:
  message - the message



setResult
protected void setResult(List newResult)(Code)
Set the selections made by the user, or null if the selection was canceled.
Parameters:
  newResult - list of selected elements, or null if Cancelwas pressed



setSelectionResult
protected void setSelectionResult(Object[] newResult)(Code)
Set the selections made by the user, or null if the selection was canceled.

The selections may accessed using getResult.


Parameters:
  newResult - -the new values
since:
   2.0



setTitle
public void setTitle(String title)(Code)
Sets the title for this dialog.
Parameters:
  title - the title



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