Java Doc for Dialog.java in  » Web-Framework » ThinWire » thinwire » 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 » Web Framework » ThinWire » thinwire.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


thinwire.ui.AbstractWindow
   thinwire.ui.Dialog

Dialog
public class Dialog extends AbstractWindow (Code)
A Dialog is a window with a title that is usually associated to a Frame.

Example:

 Dialog dlg = new Dialog("Dialog Test");
 dlg.setBounds(25, 25, 600, 400);
 final TextField tBox = new TextField();
 tBox.setBounds(25, 25, 150, 20);
 dlg.getChildren().add(tBox);
 final Button btn1 = new Button("Add Text");
 btn1.setBounds(200, 20, 100, 30);
 dlg.getChildren().add(btn1);
 final Button btn2 = new Button("Numeric Mask");
 btn2.setBounds(310, 20, 100, 30);
 dlg.getChildren().add(btn2);
 final Button btn3 = new Button("Right Align");
 btn3.setBounds(420, 20, 100, 30);
 dlg.getChildren().add(btn3);
 ActionListener clickListener = new ActionListener() {
 public void actionPerformed(ActionEvent e) {
 Button btn = (Button) e.getSource();
 if (btn == btn1) {
 tBox.setText(tBox.getText() + "913JQP-");
 } else if (btn == btn2) {
 tBox.setEditMask("#########");
 } else if (btn == btn3) {
 tBox.setAlignX(AlignX.RIGHT);
 }
 }
 };
 btn1.addActionListener(Button.ACTION_CLICK, clickListener);
 btn2.addActionListener(Button.ACTION_CLICK, clickListener);
 btn3.addActionListener(Button.ACTION_CLICK, clickListener);
 Divider dv = new Divider();
 dv.setBounds(25, 70, 550, 5);
 dlg.getChildren().add(dv);
 final TextArea ta = new TextArea();
 ta.setBounds(25, 100, 350, 200);
 dlg.getChildren().add(ta);
 Button btn4 = new Button("Add Text");
 btn4.setBounds(420, 100, 100, 30);
 dlg.getChildren().add(btn4);
 btn4.addActionListener(Button.ACTION_CLICK, new ActionListener() {
 public void actionPerformed(ActionEvent e) {
 ta.setText(ta.getText() + "913JQP-");
 }
 });
 dlg.setVisible(true);
 


author:
   Joshua J. Gertzen



Field Summary
final public static  StringPROPERTY_MODAL
    
final public static  StringPROPERTY_REPOSITION_ALLOWED
    
final public static  StringPROPERTY_RESIZE_ALLOWED
    
final public static  StringPROPERTY_WAIT_FOR_WINDOW
    
 booleanwaitForWindow
    

Constructor Summary
public  Dialog()
     Constructs a new Dialog with no title.
public  Dialog(String title)
     Constructs a new Dialog with the specified title.

Method Summary
public  intgetInnerHeight()
    
public  booleanisModal()
     Returns whether the Dialog is modal.
public  booleanisRepositionAllowed()
    
public  booleanisResizeAllowed()
     Returns whether the Dialog can be resized by dragging the bottom-right corner.
public  booleanisWaitForWindow()
     Returns whether the Dialog will block execution when visible.
public  voidsetModal(boolean modal)
     Set whether the Dialog is modal.
public  voidsetRepositionAllowed(boolean repositionAllowed)
     Set whether the Dialog can be drug around the screen.
public  voidsetResizeAllowed(boolean resizeAllowed)
     Set whether the Dialog can be resized by dragin the bottom-right corner.
public  voidsetVisible(boolean visible)
     Makes the Dialog visible.
public  voidsetWaitForWindow(boolean waitForWindow)
     Sets whether setting the visible property to true will cause this thread to block.

Field Detail
PROPERTY_MODAL
final public static String PROPERTY_MODAL(Code)



PROPERTY_REPOSITION_ALLOWED
final public static String PROPERTY_REPOSITION_ALLOWED(Code)



PROPERTY_RESIZE_ALLOWED
final public static String PROPERTY_RESIZE_ALLOWED(Code)



PROPERTY_WAIT_FOR_WINDOW
final public static String PROPERTY_WAIT_FOR_WINDOW(Code)



waitForWindow
boolean waitForWindow(Code)




Constructor Detail
Dialog
public Dialog()(Code)
Constructs a new Dialog with no title.



Dialog
public Dialog(String title)(Code)
Constructs a new Dialog with the specified title.
Parameters:
  title - the title to display.




Method Detail
getInnerHeight
public int getInnerHeight()(Code)



isModal
public boolean isModal()(Code)
Returns whether the Dialog is modal. true if the Dialog is modal



isRepositionAllowed
public boolean isRepositionAllowed()(Code)
Returns whether the Dialog can be drug around the frame true is the Diagog is draggable



isResizeAllowed
public boolean isResizeAllowed()(Code)
Returns whether the Dialog can be resized by dragging the bottom-right corner. true if the Dialog can be resized



isWaitForWindow
public boolean isWaitForWindow()(Code)
Returns whether the Dialog will block execution when visible.



setModal
public void setModal(boolean modal)(Code)
Set whether the Dialog is modal. If the Dialog is modal, when it is visible, all other components are prevented from receiving actions.
Parameters:
  modal - (Default = true)



setRepositionAllowed
public void setRepositionAllowed(boolean repositionAllowed)(Code)
Set whether the Dialog can be drug around the screen.
Parameters:
  repositionAllowed - (Default = true)



setResizeAllowed
public void setResizeAllowed(boolean resizeAllowed)(Code)
Set whether the Dialog can be resized by dragin the bottom-right corner.
Parameters:
  resizeAllowed - (Default = false)



setVisible
public void setVisible(boolean visible)(Code)
Makes the Dialog visible.
See Also:   thinwire.ui.Component.setVisible(boolean)
Parameters:
  visible - (Default = false)



setWaitForWindow
public void setWaitForWindow(boolean waitForWindow)(Code)
Sets whether setting the visible property to true will cause this thread to block.
Parameters:
  waitForWindow - (Default = false)



Fields inherited from thinwire.ui.AbstractWindow
final static int MENU_BAR_HEIGHT(Code)(Java Doc)
Menu menu(Code)(Java Doc)
String title(Code)(Java Doc)

Methods inherited from thinwire.ui.AbstractWindow
public Menu getMenu()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public void setMenu(Menu menu)(Code)(Java Doc)
public void setTitle(String title)(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.