Java Doc for Field.java in  » J2EE » jag » com » finalist » jaggenerator » modules » 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 » J2EE » jag » com.finalist.jaggenerator.modules 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.tree.DefaultMutableTreeNode
      com.finalist.jaggenerator.modules.Field

Field
public class Field extends DefaultMutableTreeNode implements JagBean(Code)

author:
   hillie


Field Summary
public  javax.swing.JCheckBoxautoGeneratedCheckBox
    
public  javax.swing.JCheckBoxforeignKeyCheckBox
    
public  javax.swing.JCheckBoxprimaryKeyCheckBox
    
public  javax.swing.JCheckBoxrequiredCheckBox
    
public  javax.swing.JTextFieldvalidationDependsText
    

Constructor Summary
public  Field(Entity parent, Column column)
    
public  Field(Entity parent, Element el)
    

Method Summary
public  StringgetColumnName()
    
public  TemplateStringgetForeignKey()
    
public  booleangetHasAutoGenPrimaryKey()
    
public  TemplateStringgetJdbcType()
    
public  StringgetJdbcType(Column column)
    
public  intgetMaxSize()
     Helper method to determine the max size of a field.
public  TemplateStringgetName()
    
public  JPanelgetPanel()
    
public  TemplateStringgetPrimaryKey()
    
public  StringgetRefName()
    
public  RelationgetRelation()
     Gets the relation, if this field represents a container-managed relation field in its parent entity bean.
public  StringgetSize()
     Return the size of a sql type in case it is a string type.
public  TemplateStringgetSqlType()
    
public  StringgetSqlType(Column column)
    
public  StringgetType(Column column)
    
public  StringgetType()
    
public  StringgetValidationDepends()
    
public  StringgetValidationXml()
    
public  voidgetXML(Element el)
    
public  StringisDate()
     Check if the field is a date field.
public  booleanisForeignKey()
    
public  booleanisNullable()
     Make the nullable field available.
public  booleanisNumeric()
     Return true if the field is a numeric field, like Integer, Short etc..
public  booleanisPkClassIsAutogeneratable()
    
public  booleanisPrimaryKey()
     Indicates whether the field is part of the primary key.
public  booleanisRelation()
    
public  booleanisRequired()
     Return true if the field is required, so nullable is true.
public  booleanisSequenceField()
     Determine if the field can be used with a sequence.
public  StringisTime()
     Check if the field is a time field.
public  voidregenerateValidations()
     Regenerates the Struts validations for this field.
public  voidsetForeignKey(boolean foreignKey)
     Setter for this field, which specifies whether or not this Field is a foreign key field within its table.
public  voidsetHasAutoGenPrimaryKey(boolean value)
    
public  voidsetJdbcType(String text)
    
public  voidsetName(String name)
    
public  voidsetPrimaryKey(boolean value)
    
public  voidsetRelation(Relation relation)
    
public  voidsetSqlType(String text)
    
public  voidsetType(String text)
    
public  StringtoString()
    

Field Detail
autoGeneratedCheckBox
public javax.swing.JCheckBox autoGeneratedCheckBox(Code)



foreignKeyCheckBox
public javax.swing.JCheckBox foreignKeyCheckBox(Code)



primaryKeyCheckBox
public javax.swing.JCheckBox primaryKeyCheckBox(Code)



requiredCheckBox
public javax.swing.JCheckBox requiredCheckBox(Code)



validationDependsText
public javax.swing.JTextField validationDependsText(Code)




Constructor Detail
Field
public Field(Entity parent, Column column)(Code)
Creates new form BeanForm



Field
public Field(Entity parent, Element el)(Code)
Use for building up the entity field gui component




Method Detail
getColumnName
public String getColumnName()(Code)



getForeignKey
public TemplateString getForeignKey()(Code)



getHasAutoGenPrimaryKey
public boolean getHasAutoGenPrimaryKey()(Code)



getJdbcType
public TemplateString getJdbcType()(Code)



getJdbcType
public String getJdbcType(Column column)(Code)



getMaxSize
public int getMaxSize()(Code)
Helper method to determine the max size of a field. -1 will be returned fields without a size specification. max size of a field.



getName
public TemplateString getName()(Code)
Returns the name of the field the name of the field.



getPanel
public JPanel getPanel()(Code)



getPrimaryKey
public TemplateString getPrimaryKey()(Code)



getRefName
public String getRefName()(Code)



getRelation
public Relation getRelation()(Code)
Gets the relation, if this field represents a container-managed relation field in its parent entity bean. the Relation object, or null if this field doesn't represent a relation.



getSize
public String getSize()(Code)
Return the size of a sql type in case it is a string type. Otherwise return null. get the size.



getSqlType
public TemplateString getSqlType()(Code)



getSqlType
public String getSqlType(Column column)(Code)



getType
public String getType(Column column)(Code)



getType
public String getType()(Code)
Returns the class that represents the primary key type the class that represents the primary key type



getValidationDepends
public String getValidationDepends()(Code)



getValidationXml
public String getValidationXml()(Code)



getXML
public void getXML(Element el)(Code)



isDate
public String isDate()(Code)
Check if the field is a date field. true if the field is a date field



isForeignKey
public boolean isForeignKey()(Code)



isNullable
public boolean isNullable()(Code)
Make the nullable field available. true if the field is nullable.



isNumeric
public boolean isNumeric()(Code)
Return true if the field is a numeric field, like Integer, Short etc.. true if numeric



isPkClassIsAutogeneratable
public boolean isPkClassIsAutogeneratable()(Code)



isPrimaryKey
public boolean isPrimaryKey()(Code)
Indicates whether the field is part of the primary key. true if the field is part of the primary key



isRelation
public boolean isRelation()(Code)



isRequired
public boolean isRequired()(Code)
Return true if the field is required, so nullable is true. true if the field is required.



isSequenceField
public boolean isSequenceField()(Code)
Determine if the field can be used with a sequence. For this the following must apply: - the field needs to be a primary key - the autogenerate primary key checkbox should be on. - the database should be oracle or postgresql with a Serial field. true if sequence is allowed



isTime
public String isTime()(Code)
Check if the field is a time field. true if the field is a time field



regenerateValidations
public void regenerateValidations()(Code)
Regenerates the Struts validations for this field.



setForeignKey
public void setForeignKey(boolean foreignKey)(Code)
Setter for this field, which specifies whether or not this Field is a foreign key field within its table.
Parameters:
  foreignKey -



setHasAutoGenPrimaryKey
public void setHasAutoGenPrimaryKey(boolean value)(Code)



setJdbcType
public void setJdbcType(String text)(Code)



setName
public void setName(String name)(Code)
Sets the name of the field
Parameters:
  name - the name of the field.



setPrimaryKey
public void setPrimaryKey(boolean value)(Code)
A heap of things happen when you set a field as primary key - keep them all here!
Parameters:
  value -



setRelation
public void setRelation(Relation relation)(Code)



setSqlType
public void setSqlType(String text)(Code)



setType
public void setType(String text)(Code)
Set the field type
Parameters:
  text - type.



toString
public String toString()(Code)



Fields inherited from javax.swing.tree.DefaultMutableTreeNode
final public static Enumeration<TreeNode> EMPTY_ENUMERATION(Code)(Java Doc)
protected boolean allowsChildren(Code)(Java Doc)
protected Vector children(Code)(Java Doc)
protected MutableTreeNode parent(Code)(Java Doc)
protected transient Object userObject(Code)(Java Doc)

Methods inherited from javax.swing.tree.DefaultMutableTreeNode
public void add(MutableTreeNode newChild)(Code)(Java Doc)
public Enumeration breadthFirstEnumeration()(Code)(Java Doc)
public Enumeration children()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public Enumeration depthFirstEnumeration()(Code)(Java Doc)
public boolean getAllowsChildren()(Code)(Java Doc)
public TreeNode getChildAfter(TreeNode aChild)(Code)(Java Doc)
public TreeNode getChildAt(int index)(Code)(Java Doc)
public TreeNode getChildBefore(TreeNode aChild)(Code)(Java Doc)
public int getChildCount()(Code)(Java Doc)
public int getDepth()(Code)(Java Doc)
public TreeNode getFirstChild()(Code)(Java Doc)
public DefaultMutableTreeNode getFirstLeaf()(Code)(Java Doc)
public int getIndex(TreeNode aChild)(Code)(Java Doc)
public TreeNode getLastChild()(Code)(Java Doc)
public DefaultMutableTreeNode getLastLeaf()(Code)(Java Doc)
public int getLeafCount()(Code)(Java Doc)
public int getLevel()(Code)(Java Doc)
public DefaultMutableTreeNode getNextLeaf()(Code)(Java Doc)
public DefaultMutableTreeNode getNextNode()(Code)(Java Doc)
public DefaultMutableTreeNode getNextSibling()(Code)(Java Doc)
public TreeNode getParent()(Code)(Java Doc)
public TreeNode[] getPath()(Code)(Java Doc)
protected TreeNode[] getPathToRoot(TreeNode aNode, int depth)(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousLeaf()(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousNode()(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousSibling()(Code)(Java Doc)
public TreeNode getRoot()(Code)(Java Doc)
public TreeNode getSharedAncestor(DefaultMutableTreeNode aNode)(Code)(Java Doc)
public int getSiblingCount()(Code)(Java Doc)
public Object getUserObject()(Code)(Java Doc)
public Object[] getUserObjectPath()(Code)(Java Doc)
public void insert(MutableTreeNode newChild, int childIndex)(Code)(Java Doc)
public boolean isLeaf()(Code)(Java Doc)
public boolean isNodeAncestor(TreeNode anotherNode)(Code)(Java Doc)
public boolean isNodeChild(TreeNode aNode)(Code)(Java Doc)
public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode)(Code)(Java Doc)
public boolean isNodeRelated(DefaultMutableTreeNode aNode)(Code)(Java Doc)
public boolean isNodeSibling(TreeNode anotherNode)(Code)(Java Doc)
public boolean isRoot()(Code)(Java Doc)
public Enumeration pathFromAncestorEnumeration(TreeNode ancestor)(Code)(Java Doc)
public Enumeration postorderEnumeration()(Code)(Java Doc)
public Enumeration preorderEnumeration()(Code)(Java Doc)
public void remove(int childIndex)(Code)(Java Doc)
public void remove(MutableTreeNode aChild)(Code)(Java Doc)
public void removeAllChildren()(Code)(Java Doc)
public void removeFromParent()(Code)(Java Doc)
public void setAllowsChildren(boolean allows)(Code)(Java Doc)
public void setParent(MutableTreeNode newParent)(Code)(Java Doc)
public void setUserObject(Object userObject)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.