Java Doc for EditFieldLayout.java in  » Report » datavision-1.1.0 » jimm » datavision » gui » 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 » Report » datavision 1.1.0 » jimm.datavision.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jimm.datavision.gui.EditFieldLayout

EditFieldLayout
public class EditFieldLayout (Code)
Lays out a bunch of label/edit widget pairs. Optionally creates the edit widget for you. This is not a layout manager per se. Calling any of the add* methods creates label/edit widget pairs. Calling getPanel returns a panel containing the labels and edit widgets, arranged for your pleasure.
author:
   Jim Menard, jimm@io.com

Inner Class :static class Row

Field Summary
protected  Borderborder
    
protected  JPanelpanel
    
protected  ArrayListrows
    

Constructor Summary
public  EditFieldLayout()
    

Method Summary
public  Componentadd(String label, Component c)
     Adds the label/component pair to the layout and returns the component.
public  JButtonaddButton(String label)
     Creates a button and adds it to the right-hand side, under the fields.
public  JCheckBoxaddCheckBox(String label)
     Creates a check box and adds it and the label.
public  JCheckBoxaddCheckBox(String label, int key)
     Creates a check box and adds it and the label.
public  JComboBoxaddComboBox(String label, Object[] items)
     Creates a combo box and adds it and the label.
public  JComboBoxaddComboBox(String label, Object[] items, boolean editable)
     Creates a combo box and adds it and the label.
public  JLabeladdLabel(String label, String text)
     Creates two labels and adds them.
public  JPasswordFieldaddPasswordField(String label)
     Creates a password field and adds it and the label.
public  JPasswordFieldaddPasswordField(String label, int columns)
     Creates a password field and adds it and the label.
public  JPasswordFieldaddPasswordField(String label, String password)
     Creates a password field and adds it and the label.
public  JPasswordFieldaddPasswordField(String label, String password, int columns)
     Creates a password field and adds it and the label.
public  JTextAreaaddTextArea(String label)
     Creates a text area and adds it and the label.
public  JTextAreaaddTextArea(String label, int rows, int cols)
     Creates a text area and adds it and the label.
public  JTextAreaaddTextArea(String label, String text)
     Creates a text area and adds it and the label.
public  JTextAreaaddTextArea(String label, String text, int rows, int cols)
     Creates a text area and adds it and the label.
public  JTextFieldaddTextField(String label)
     Creates a text field and adds it and the label.
public  JTextFieldaddTextField(String label, int columns)
     Creates a text field and adds it and the label.
public  JTextFieldaddTextField(String label, String text)
     Creates a text field and adds it and the label.
public  JTextFieldaddTextField(String label, String text, int columns)
     Creates a text field and adds it and the label.
protected  voidbuildPanel()
     Builds the panel.
public  JPanelgetPanel()
     Returns the panel containing all the labels and edit widgets.
public  voidsetBorder(int allSides)
     Creates an empty border the same size on all sides.
public  voidsetBorder(int top, int left, int bottom, int right)
     Creates an empty border on all sides.
public  voidskipRow()
     Creates an empty row.

Field Detail
border
protected Border border(Code)



panel
protected JPanel panel(Code)



rows
protected ArrayList rows(Code)




Constructor Detail
EditFieldLayout
public EditFieldLayout()(Code)




Method Detail
add
public Component add(String label, Component c)(Code)
Adds the label/component pair to the layout and returns the component. If label does not end with a colon, one will be added. label may be null, in which case no label is displayed.

All the other add* methods call this one.
Parameters:
  label - a possibly null label string
Parameters:
  c - a GUI component the component




addButton
public JButton addButton(String label)(Code)
Creates a button and adds it to the right-hand side, under the fields.
Parameters:
  label - a button label the new button



addCheckBox
public JCheckBox addCheckBox(String label)(Code)
Creates a check box and adds it and the label.
Parameters:
  label - a possibly null label string the new check box



addCheckBox
public JCheckBox addCheckBox(String label, int key)(Code)
Creates a check box and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  key - the mnemonic key (a KeyEvent constant) the new check box



addComboBox
public JComboBox addComboBox(String label, Object[] items)(Code)
Creates a combo box and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  items - an array of objects the new combo box



addComboBox
public JComboBox addComboBox(String label, Object[] items, boolean editable)(Code)
Creates a combo box and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  items - an array of objects
Parameters:
  editable - if true, the combo box will allow customvalue entry by the user the new combo box



addLabel
public JLabel addLabel(String label, String text)(Code)
Creates two labels and adds them.
Parameters:
  label - a possibly null label string
Parameters:
  text - text for the right-hand label the new right-hand label



addPasswordField
public JPasswordField addPasswordField(String label)(Code)
Creates a password field and adds it and the label.
Parameters:
  label - a possibly null label string the new password field



addPasswordField
public JPasswordField addPasswordField(String label, int columns)(Code)
Creates a password field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  columns - the password field's size the new password field



addPasswordField
public JPasswordField addPasswordField(String label, String password)(Code)
Creates a password field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  password - the initial password text the new password field



addPasswordField
public JPasswordField addPasswordField(String label, String password, int columns)(Code)
Creates a password field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  password - the initial password text
Parameters:
  columns - the password field's size the new password field



addTextArea
public JTextArea addTextArea(String label)(Code)
Creates a text area and adds it and the label.
Parameters:
  label - a possibly null label string the new text area



addTextArea
public JTextArea addTextArea(String label, int rows, int cols)(Code)
Creates a text area and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  rows - the text field's height
Parameters:
  cols - the text field's width the new text area



addTextArea
public JTextArea addTextArea(String label, String text)(Code)
Creates a text area and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  text - the text field's initial text the new text area



addTextArea
public JTextArea addTextArea(String label, String text, int rows, int cols)(Code)
Creates a text area and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  text - the text field's initial text
Parameters:
  rows - the text field's height
Parameters:
  cols - the text field's width the new text area



addTextField
public JTextField addTextField(String label)(Code)
Creates a text field and adds it and the label.
Parameters:
  label - a possibly null label string the new text field



addTextField
public JTextField addTextField(String label, int columns)(Code)
Creates a text field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  columns - the text field's size the new text field



addTextField
public JTextField addTextField(String label, String text)(Code)
Creates a text field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  text - the text field's initial text the new text field



addTextField
public JTextField addTextField(String label, String text, int columns)(Code)
Creates a text field and adds it and the label.
Parameters:
  label - a possibly null label string
Parameters:
  text - the text field's initial text
Parameters:
  columns - the text field's size the new text field



buildPanel
protected void buildPanel()(Code)
Builds the panel.



getPanel
public JPanel getPanel()(Code)
Returns the panel containing all the labels and edit widgets. Lazily instantiates the panel. the panel containing all the labels and edit widgets



setBorder
public void setBorder(int allSides)(Code)
Creates an empty border the same size on all sides.
Parameters:
  allSides - the width of the border



setBorder
public void setBorder(int top, int left, int bottom, int right)(Code)
Creates an empty border on all sides.
Parameters:
  top - top border size
Parameters:
  left - left border size
Parameters:
  bottom - bottom border size
Parameters:
  right - right border size



skipRow
public void skipRow()(Code)
Creates an empty row.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.