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


org.eclipse.jface.dialogs.Dialog
   org.eclipse.jface.dialogs.TrayDialog
      org.eclipse.jface.dialogs.TitleAreaDialog

All known Subclasses:   org.eclipse.jface.wizard.WizardDialog,
TitleAreaDialog
public class TitleAreaDialog extends TrayDialog (Code)
A dialog that has a title area for displaying a title and an image as well as a common area for displaying a description, a message, or an error message.

This dialog class may be subclassed.



Field Summary
final public static  StringDLG_IMG_TITLE_BANNER
     Image registry key for banner image (value "dialog_title_banner_image").
final public static  StringDLG_IMG_TITLE_ERROR
     Image registry key for error message image.
final public static  StringINFO_MESSAGE
     Message type constant used to display an info icon with the message.
final public static  StringWARNING_MESSAGE
     Message type constant used to display a warning icon with the message.
 ColortitleAreaColor
    

Constructor Summary
public  TitleAreaDialog(Shell parentShell)
     Instantiate a new title area dialog.

Method Summary
protected  ControlcreateContents(Composite parent)
    
protected  ControlcreateDialogArea(Composite parent)
     Creates and returns the contents of the upper part of this dialog (above the button bar).
protected  PointgetInitialSize()
     The TitleAreaDialog implementation of this Window methods returns an initial size which is at least some reasonable minimum.
protected  CompositegetTitleArea()
     Retained for backward compatibility. Returns the title area composite.
protected  LabelgetTitleImageLabel()
     Returns the title image label.
public  voidsetErrorMessage(String newErrorMessage)
     Display the given error message.
public  voidsetMessage(String newMessage)
     Set the message text.
public  voidsetMessage(String newMessage, int newType)
     Sets the message for this dialog with an indication of what type of message it is.

The valid message types are one of NONE, INFORMATION,WARNING, or ERROR.

Note that for backward compatibility, a message of type ERROR is different than an error message (set using setErrorMessage).

public  voidsetTitle(String newTitle)
     Sets the title to be shown in the title area of this dialog.
public  voidsetTitleAreaColor(RGB color)
     Sets the title bar color for this dialog.
public  voidsetTitleImage(Image newTitleImage)
     Sets the title image to be shown in the title area of this dialog.

Field Detail
DLG_IMG_TITLE_BANNER
final public static String DLG_IMG_TITLE_BANNER(Code)
Image registry key for banner image (value "dialog_title_banner_image").



DLG_IMG_TITLE_ERROR
final public static String DLG_IMG_TITLE_ERROR(Code)
Image registry key for error message image.



INFO_MESSAGE
final public static String INFO_MESSAGE(Code)
Message type constant used to display an info icon with the message.
since:
   2.0



WARNING_MESSAGE
final public static String WARNING_MESSAGE(Code)
Message type constant used to display a warning icon with the message.
since:
   2.0



titleAreaColor
Color titleAreaColor(Code)




Constructor Detail
TitleAreaDialog
public TitleAreaDialog(Shell parentShell)(Code)
Instantiate a new title area dialog.
Parameters:
  parentShell - the parent SWT shell




Method Detail
createContents
protected Control createContents(Composite parent)(Code)



createDialogArea
protected Control createDialogArea(Composite parent)(Code)
Creates and returns the contents of the upper part of this dialog (above the button bar).

The Dialog implementation of this framework method creates and returns a new Composite with no margins and spacing. Subclasses should override.


Parameters:
  parent - The parent composite to contain the dialog area the dialog area control



getInitialSize
protected Point getInitialSize()(Code)
The TitleAreaDialog implementation of this Window methods returns an initial size which is at least some reasonable minimum. the initial size of the dialog



getTitleArea
protected Composite getTitleArea()(Code)
Retained for backward compatibility. Returns the title area composite. There is no composite in this implementation so the shell is returned. Composite



getTitleImageLabel
protected Label getTitleImageLabel()(Code)
Returns the title image label. the title image label



setErrorMessage
public void setErrorMessage(String newErrorMessage)(Code)
Display the given error message. The currently displayed message is saved and will be redisplayed when the error message is set to null.
Parameters:
  newErrorMessage - the newErrorMessage to display or null



setMessage
public void setMessage(String newMessage)(Code)
Set the message text. If the message line currently displays an error, the message is saved and will be redisplayed when the error message is set to null.

Shortcut for setMessage(newMessage, IMessageProvider.NONE)

This method should be called after the dialog has been opened as it updates the message label immediately.
Parameters:
  newMessage - the message, or null to clear the message



setMessage
public void setMessage(String newMessage, int newType)(Code)
Sets the message for this dialog with an indication of what type of message it is.

The valid message types are one of NONE, INFORMATION,WARNING, or ERROR.

Note that for backward compatibility, a message of type ERROR is different than an error message (set using setErrorMessage). An error message overrides the current message until the error message is cleared. This method replaces the current message and does not affect the error message.


Parameters:
  newMessage - the message, or null to clear the message
Parameters:
  newType - the message type
since:
   2.0



setTitle
public void setTitle(String newTitle)(Code)
Sets the title to be shown in the title area of this dialog.
Parameters:
  newTitle - the title show



setTitleAreaColor
public void setTitleAreaColor(RGB color)(Code)
Sets the title bar color for this dialog.
Parameters:
  color - the title bar color



setTitleImage
public void setTitleImage(Image newTitleImage)(Code)
Sets the title image to be shown in the title area of this dialog.
Parameters:
  newTitleImage - the title image to be shown



Methods inherited from org.eclipse.jface.dialogs.TrayDialog
public boolean close()(Code)(Java Doc)
public void closeTray() throws IllegalStateException(Code)(Java Doc)
protected Control createButtonBar(Composite parent)(Code)(Java Doc)
protected Control createHelpControl(Composite parent)(Code)(Java Doc)
protected Layout getLayout()(Code)(Java Doc)
public DialogTray getTray()(Code)(Java Doc)
public static boolean isDialogHelpAvailable()(Code)(Java Doc)
public boolean isHelpAvailable()(Code)(Java Doc)
public void openTray(DialogTray tray) throws IllegalStateException, UnsupportedOperationException(Code)(Java Doc)
public static void setDialogHelpAvailable(boolean helpAvailable)(Code)(Java Doc)
public void setHelpAvailable(boolean helpAvailable)(Code)(Java Doc)

Fields inherited from org.eclipse.jface.dialogs.Dialog
final public static int DIALOG_DEFAULT_BOUNDS(Code)(Java Doc)
final public static int DIALOG_PERSISTLOCATION(Code)(Java Doc)
final public static int DIALOG_PERSISTSIZE(Code)(Java Doc)
final public static String DLG_IMG_ERROR(Code)(Java Doc)
final public static String DLG_IMG_HELP(Code)(Java Doc)
final public static String DLG_IMG_INFO(Code)(Java Doc)
final public static String DLG_IMG_MESSAGE_ERROR(Code)(Java Doc)
final public static String DLG_IMG_MESSAGE_INFO(Code)(Java Doc)
final public static String DLG_IMG_MESSAGE_WARNING(Code)(Java Doc)
final public static String DLG_IMG_QUESTION(Code)(Java Doc)
final public static String DLG_IMG_WARNING(Code)(Java Doc)
final public static String ELLIPSIS(Code)(Java Doc)
public static IDialogBlockedHandler blockedHandler(Code)(Java Doc)
public Control buttonBar(Code)(Java Doc)
protected Control dialogArea(Code)(Java Doc)

Methods inherited from org.eclipse.jface.dialogs.Dialog
public static void applyDialogFont(Control control)(Code)(Java Doc)
protected void buttonPressed(int buttonId)(Code)(Java Doc)
protected void cancelPressed()(Code)(Java Doc)
public boolean close()(Code)(Java Doc)
public static int convertHeightInCharsToPixels(FontMetrics fontMetrics, int chars)(Code)(Java Doc)
protected int convertHeightInCharsToPixels(int chars)(Code)(Java Doc)
public static int convertHorizontalDLUsToPixels(FontMetrics fontMetrics, int dlus)(Code)(Java Doc)
protected int convertHorizontalDLUsToPixels(int dlus)(Code)(Java Doc)
public static int convertVerticalDLUsToPixels(FontMetrics fontMetrics, int dlus)(Code)(Java Doc)
protected int convertVerticalDLUsToPixels(int dlus)(Code)(Java Doc)
public static int convertWidthInCharsToPixels(FontMetrics fontMetrics, int chars)(Code)(Java Doc)
protected int convertWidthInCharsToPixels(int chars)(Code)(Java Doc)
public void create()(Code)(Java Doc)
protected Button createButton(Composite parent, int id, String label, boolean defaultButton)(Code)(Java Doc)
protected Control createButtonBar(Composite parent)(Code)(Java Doc)
protected void createButtonsForButtonBar(Composite parent)(Code)(Java Doc)
protected Control createContents(Composite parent)(Code)(Java Doc)
protected Control createDialogArea(Composite parent)(Code)(Java Doc)
protected static boolean dialogFontIsDefault()(Code)(Java Doc)
public static IDialogBlockedHandler getBlockedHandler()(Code)(Java Doc)
protected Button getButton(int id)(Code)(Java Doc)
protected Control getButtonBar()(Code)(Java Doc)
protected Button getCancelButton()(Code)(Java Doc)
protected Control getDialogArea()(Code)(Java Doc)
protected IDialogSettings getDialogBoundsSettings()(Code)(Java Doc)
protected int getDialogBoundsStrategy()(Code)(Java Doc)
public static Image getImage(String key)(Code)(Java Doc)
protected Point getInitialLocation(Point initialSize)(Code)(Java Doc)
protected Point getInitialSize()(Code)(Java Doc)
protected Button getOKButton()(Code)(Java Doc)
protected void initializeBounds()(Code)(Java Doc)
protected void initializeDialogUnits(Control control)(Code)(Java Doc)
protected boolean isResizable()(Code)(Java Doc)
protected void okPressed()(Code)(Java Doc)
public static void setBlockedHandler(IDialogBlockedHandler blockedHandler)(Code)(Java Doc)
protected void setButtonLayoutData(Button button)(Code)(Java Doc)
protected void setButtonLayoutFormData(Button button)(Code)(Java Doc)
public static String shortenText(String textValue, Control control)(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.