Java Doc for NewAttributePanel.java in  » GIS » openjump » de » fho » jump » pirol » ui » panels » 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 » GIS » openjump » de.fho.jump.pirol.ui.panels 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JPanel
   de.fho.jump.pirol.ui.panels.NewAttributePanel

NewAttributePanel
public class NewAttributePanel extends JPanel implements ActionListener(Code)
A Panel that contains controls to collect all information needed to create a new attribute out of. The following information will be collected:
-name of the attribute
-type of the attribute values
-Default-value (will initially filled in all features)

author:
   Ole Rahn
author:
  

author:
  
FH Osnabrück - University of Applied Sciences Osnabrück,
author:
  
Project: PIROL (2005),
author:
  
Subproject: Daten- und Wissensmanagement
version:
   $Rev: 856 $


Field Summary
protected  JLabeldefValLabel
    
protected  StringdefValLabelText
    
protected  JTextFielddefValueTextField
    
protected  StringdrownActionCommand
    
protected  PersonalLoggerlogger
    
protected  JLabelnameLabel
    
protected  StringnameLabelText
    
protected  JTextFieldnameTextField
    
protected  booleanneedDefaultValue
    
protected  AttributeType[]onlyTypes
    
protected  JComboBoxtypeDropDown
    
protected  JLabeltypeLabel
    
protected  StringtypeLabelText
    

Constructor Summary
public  NewAttributePanel(boolean arg0, boolean needDefaultValue)
    
public  NewAttributePanel(boolean arg0, AttributeType[] onlyTypes, boolean needDefaultValue)
    

Method Summary
public  voidactionPerformed(ActionEvent event)
     checks and fixes the integrity of the values given, when the attribute type is changed.
public  voidaddActionListenerToDefValueTextfield(ActionListener arg0)
    
public  voidaddActionListenerToNameTextfield(ActionListener arg0)
    
public  voidaddActionListenerToTypeDropDown(ActionListener arg0)
    
public  AttributeInfogetAttributeInfo()
     Returns the collected information on the new attribute.
protected  ObjectgetDefaultValue()
     Returns the default value for the attribute we want to create.
public  booleanisDataValid()
     This allows you to check, if the data filled in by the user makes sense or not.
public  voidsetAttributeName(String attrName)
     Sets the text that will be displayed in the text field for the new attribute's name.
public  voidsetDefValLabel(String defValLabel)
    
public  voidsetNameLabel(String nameLabel)
    
public  voidsetTypeLabel(String typeLabel)
    
protected  voidsetupUI()
     Sets up GUI controlls.

Field Detail
defValLabel
protected JLabel defValLabel(Code)



defValLabelText
protected String defValLabelText(Code)



defValueTextField
protected JTextField defValueTextField(Code)



drownActionCommand
protected String drownActionCommand(Code)



logger
protected PersonalLogger logger(Code)



nameLabel
protected JLabel nameLabel(Code)



nameLabelText
protected String nameLabelText(Code)



nameTextField
protected JTextField nameTextField(Code)



needDefaultValue
protected boolean needDefaultValue(Code)



onlyTypes
protected AttributeType[] onlyTypes(Code)



typeDropDown
protected JComboBox typeDropDown(Code)



typeLabel
protected JLabel typeLabel(Code)



typeLabelText
protected String typeLabelText(Code)




Constructor Detail
NewAttributePanel
public NewAttributePanel(boolean arg0, boolean needDefaultValue)(Code)

Parameters:
  arg0 - see JPanel for information
Parameters:
  needDefaultValue - a field for a default value will be shown or not



NewAttributePanel
public NewAttributePanel(boolean arg0, AttributeType[] onlyTypes, boolean needDefaultValue)(Code)

Parameters:
  arg0 - see JPanel for information
Parameters:
  onlyTypes - array of attribute type, that are supposed to be chooseable
Parameters:
  needDefaultValue - a field for a default value will be shown or not




Method Detail
actionPerformed
public void actionPerformed(ActionEvent event)(Code)
checks and fixes the integrity of the values given, when the attribute type is changed.
Parameters:
  event - the action event



addActionListenerToDefValueTextfield
public void addActionListenerToDefValueTextfield(ActionListener arg0)(Code)



addActionListenerToNameTextfield
public void addActionListenerToNameTextfield(ActionListener arg0)(Code)



addActionListenerToTypeDropDown
public void addActionListenerToTypeDropDown(ActionListener arg0)(Code)



getAttributeInfo
public AttributeInfo getAttributeInfo()(Code)
Returns the collected information on the new attribute. Since this method calls getDefaultValue(), it may throw the same Exception... the collected information



getDefaultValue
protected Object getDefaultValue()(Code)
Returns the default value for the attribute we want to create. This function may throw a RuntimeException, if the value filled in for the default value can not be parsed! default value



isDataValid
public boolean isDataValid()(Code)
This allows you to check, if the data filled in by the user makes sense or not. You may want enable/disable the ok-button, depending on the return value of this function. true if values are ok, else false



setAttributeName
public void setAttributeName(String attrName)(Code)
Sets the text that will be displayed in the text field for the new attribute's name.
Parameters:
  attrName - text that will be displayed in the name text field



setDefValLabel
public void setDefValLabel(String defValLabel)(Code)
Sets the label text for the default value field
Parameters:
  defValLabel - The defValLabel to set.



setNameLabel
public void setNameLabel(String nameLabel)(Code)
Sets the label text for the name field
Parameters:
  nameLabel - The nameLabel to set.



setTypeLabel
public void setTypeLabel(String typeLabel)(Code)
Sets the label text for the type field
Parameters:
  typeLabel - The typeLabel to set.



setupUI
protected void setupUI()(Code)
Sets up GUI controlls.



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.