Java Doc for FieldPickerWin.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) 


javax.swing.JDialog
   jimm.datavision.gui.FieldPickerWin

FieldPickerWin
class FieldPickerWin extends JDialog implements ActionListener,TreeSelectionListener,TreeWillExpandListener,Observer(Code)
A window that lets the user drag any field available onto the report and create, edit, delete, and rename formulas, parameters, and user columns.

Uses a FieldPickerTree . The classes used to store information about leaf nodes are subclasses of FPLeafInfo and are found in FPLeafInfo.java.
See Also:   FPTableInfo
author:
   Jim Menard, jimm@io.com



Field Summary
final public static  intALL_DATABASE_FIELDS
    
final public static  intFORMULAS
    
final public static  intPARAMETERS
    
final public static  intREPORT_DATABASE_FIELDS
    
final public static  intSPECIAL_FIELDS
    
final public static  intUSERCOLS
    
protected  JMenuItemcutItemeditFormulaItemrenameFormulaItemeditParameterItemrenameParameterItemeditUserColumnItemrenameUserColumnItemdeleteItem
    
protected  Designerdesigner
    
protected  DefaultMutableTreeNodeformulaCategoryNode
    
protected  ComparatornameComparator
    
protected  DefaultMutableTreeNodeparameterCategoryNode
    
protected  Reportreport
    
protected  FPLeafInfoselectedInfo
    
protected  DefaultMutableTreeNodeselectedNode
    
protected  FieldPickerTreetree
    
protected  DefaultTreeModeltreeModel
    
protected  DefaultMutableTreeNodeuserColumnCategoryNode
    

Constructor Summary
 FieldPickerWin(Designer designer, Report report, int startingType)
     Constructor.

Method Summary
public  voidactionPerformed(ActionEvent e)
     Handles user actions.
protected  voidaddEditableToTree(FPLeafInfo info, DefaultMutableTreeNode categoryNode)
     Adds a newly created editable object to the tree, makes it visible, and opens its editor.
protected  voidaddTableNode(DefaultMutableTreeNode categoryNode, Table table)
     Creates and adds a node representing a data source table.
protected  JMenubuildEditMenu()
     Builds and returns the "Edit" menu.
protected  JMenubuildFieldMenu()
     Builds and returns the "Field" menu.
protected  JMenubuildFileMenu()
     Builds and returns the "File" menu.
protected  voidbuildMenuBar()
     Builds the window menu bar.
protected  voidbuildWindow(int startingType)
     Builds the contents of the window.
protected  voidcreateAllDatabaseTables(DefaultMutableTreeNode top)
     Creates notes representing tables and columns for all tables in the database.
protected  voidcreateFormulas(DefaultMutableTreeNode top)
     Creates nodes representing formula fields.
protected  voidcreateNodes(DefaultMutableTreeNode top)
     Creates tree nodes.
protected  voidcreateParameters(DefaultMutableTreeNode top)
     Creates nodes representing parameter fields.
protected  voidcreateSpecialFields(DefaultMutableTreeNode top)
     Creates nodes representing each possible special field.
protected  voidcreateUsedDatabaseTables(DefaultMutableTreeNode top)
     Creates nodes representing tables and columns for columns used by report.
protected  voidcreateUserColumns(DefaultMutableTreeNode top)
     Creates nodes representing user column fields.
protected  voideditSelection()
     Opens an editor on the currently selected item.
protected  voidnewFormula()
     Creates a new formula, adds it to the report and the tree, and opens the formula editor.
protected  voidnewParameter()
     Creates a new parameter, adds it to the report and the tree, and opens the parameter editor.
protected  voidnewUserColumn()
     Creates a new user column, adds it to the report and the tree, and opens the user column editor.
protected  booleanrename(Nameable nameable, String newTitleKey, String editTitleKey, String promptKey, String unnamedKey)
     Opens a name editor to (re)name a nameable object.
protected  booleanrenameFormula()
     Opens a name editor to rename the currently select formula.
protected  booleanrenameFormula(Formula f)
     Opens a name editor to (re)name a formula.
protected  booleanrenameParameter()
     Opens a name editor to rename the currently select parameter.
protected  booleanrenameParameter(Parameter p)
     Opens a name editor to (re)name a parameter.
protected  booleanrenameUserColumn()
     Opens a name editor to rename the currently select user column.
protected  booleanrenameUserColumn(UserColumn f)
     Opens a name editor to (re)name a user column.
public  voidtreeWillCollapse(TreeExpansionEvent e)
    
public  voidtreeWillExpand(TreeExpansionEvent e)
    
public  voidupdate(Observable o, Object arg)
    
public  voidvalueChanged(TreeSelectionEvent e)
     Modifies the menu in response to a change in the tree's selection.

Field Detail
ALL_DATABASE_FIELDS
final public static int ALL_DATABASE_FIELDS(Code)



FORMULAS
final public static int FORMULAS(Code)



PARAMETERS
final public static int PARAMETERS(Code)



REPORT_DATABASE_FIELDS
final public static int REPORT_DATABASE_FIELDS(Code)



SPECIAL_FIELDS
final public static int SPECIAL_FIELDS(Code)



USERCOLS
final public static int USERCOLS(Code)



cutItemeditFormulaItemrenameFormulaItemeditParameterItemrenameParameterItemeditUserColumnItemrenameUserColumnItemdeleteItem
protected JMenuItem cutItemeditFormulaItemrenameFormulaItemeditParameterItemrenameParameterItemeditUserColumnItemrenameUserColumnItemdeleteItem(Code)



designer
protected Designer designer(Code)



formulaCategoryNode
protected DefaultMutableTreeNode formulaCategoryNode(Code)



nameComparator
protected Comparator nameComparator(Code)



parameterCategoryNode
protected DefaultMutableTreeNode parameterCategoryNode(Code)



report
protected Report report(Code)



selectedInfo
protected FPLeafInfo selectedInfo(Code)



selectedNode
protected DefaultMutableTreeNode selectedNode(Code)



tree
protected FieldPickerTree tree(Code)



treeModel
protected DefaultTreeModel treeModel(Code)



userColumnCategoryNode
protected DefaultMutableTreeNode userColumnCategoryNode(Code)




Constructor Detail
FieldPickerWin
FieldPickerWin(Designer designer, Report report, int startingType)(Code)
Constructor.
Parameters:
  designer - the design window to which this dialog belongs
Parameters:
  report - the report
Parameters:
  startingType - the index of the starting type to display




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Handles user actions. Actions are only allowed when legal. For example, the "Cut" menu item will only be enabled when a delete operation is possible.



addEditableToTree
protected void addEditableToTree(FPLeafInfo info, DefaultMutableTreeNode categoryNode)(Code)
Adds a newly created editable object to the tree, makes it visible, and opens its editor.
Parameters:
  info - describes what is being added to add to the tree
Parameters:
  categoryNode - where in the tree to put the new item



addTableNode
protected void addTableNode(DefaultMutableTreeNode categoryNode, Table table)(Code)
Creates and adds a node representing a data source table. The node is given one dummy node that will be removed when the table node loads its column nodes.
Parameters:
  categoryNode - the parent node
Parameters:
  table - the database table



buildEditMenu
protected JMenu buildEditMenu()(Code)
Builds and returns the "Edit" menu. a menu



buildFieldMenu
protected JMenu buildFieldMenu()(Code)
Builds and returns the "Field" menu. a menu



buildFileMenu
protected JMenu buildFileMenu()(Code)
Builds and returns the "File" menu. a menu



buildMenuBar
protected void buildMenuBar()(Code)
Builds the window menu bar.



buildWindow
protected void buildWindow(int startingType)(Code)
Builds the contents of the window.
Parameters:
  startingType - the index of the starting type to display



createAllDatabaseTables
protected void createAllDatabaseTables(DefaultMutableTreeNode top)(Code)
Creates notes representing tables and columns for all tables in the database.
Parameters:
  top - top-level tree node



createFormulas
protected void createFormulas(DefaultMutableTreeNode top)(Code)
Creates nodes representing formula fields.
Parameters:
  top - top-level tree node



createNodes
protected void createNodes(DefaultMutableTreeNode top)(Code)
Creates tree nodes.
Parameters:
  top - top-level tree node



createParameters
protected void createParameters(DefaultMutableTreeNode top)(Code)
Creates nodes representing parameter fields.
Parameters:
  top - top-level tree node



createSpecialFields
protected void createSpecialFields(DefaultMutableTreeNode top)(Code)
Creates nodes representing each possible special field.
Parameters:
  top - top-level tree node



createUsedDatabaseTables
protected void createUsedDatabaseTables(DefaultMutableTreeNode top)(Code)
Creates nodes representing tables and columns for columns used by report.
Parameters:
  top - top-level tree node



createUserColumns
protected void createUserColumns(DefaultMutableTreeNode top)(Code)
Creates nodes representing user column fields.
Parameters:
  top - top-level tree node



editSelection
protected void editSelection()(Code)
Opens an editor on the currently selected item.



newFormula
protected void newFormula()(Code)
Creates a new formula, adds it to the report and the tree, and opens the formula editor.



newParameter
protected void newParameter()(Code)
Creates a new parameter, adds it to the report and the tree, and opens the parameter editor.



newUserColumn
protected void newUserColumn()(Code)
Creates a new user column, adds it to the report and the tree, and opens the user column editor.



rename
protected boolean rename(Nameable nameable, String newTitleKey, String editTitleKey, String promptKey, String unnamedKey)(Code)
Opens a name editor to (re)name a nameable object. Returns true if the user clicked OK, false if the user clicked Cancel.
Parameters:
  nameable - a nameable object
Parameters:
  editTitleKey - I18N lookup key for "edit" title
Parameters:
  newTitleKey - I18N lookup key for "new" title
Parameters:
  promptKey - I18N lookup key for prompt
Parameters:
  unnamedKey - I18N lookup key for "unnamed" name true if the user clicked OK, falseif the user clicked Cancel



renameFormula
protected boolean renameFormula()(Code)
Opens a name editor to rename the currently select formula. Returns true if the user clicked OK, false if the user clicked Cancel. true if the user clicked OK, falseif the user clicked Cancel



renameFormula
protected boolean renameFormula(Formula f)(Code)
Opens a name editor to (re)name a formula. Returns true if the user clicked OK, false if the user clicked Cancel.
Parameters:
  f - a formula true if the user clicked OK, falseif the user clicked Cancel



renameParameter
protected boolean renameParameter()(Code)
Opens a name editor to rename the currently select parameter. Returns true if the user clicked OK, false if the user clicked Cancel. true if the user clicked OK, falseif the user clicked Cancel



renameParameter
protected boolean renameParameter(Parameter p)(Code)
Opens a name editor to (re)name a parameter. Returns true if the user clicked OK, false if the user clicked Cancel.
Parameters:
  p - a parameter true if the user clicked OK, falseif the user clicked Cancel



renameUserColumn
protected boolean renameUserColumn()(Code)
Opens a name editor to rename the currently select user column. Returns true if the user clicked OK, false if the user clicked Cancel. true if the user clicked OK, falseif the user clicked Cancel



renameUserColumn
protected boolean renameUserColumn(UserColumn f)(Code)
Opens a name editor to (re)name a user column. Returns true if the user clicked OK, false if the user clicked Cancel.
Parameters:
  f - a user column true if the user clicked OK, falseif the user clicked Cancel



treeWillCollapse
public void treeWillCollapse(TreeExpansionEvent e)(Code)



treeWillExpand
public void treeWillExpand(TreeExpansionEvent e)(Code)



update
public void update(Observable o, Object arg)(Code)



valueChanged
public void valueChanged(TreeSelectionEvent e)(Code)
Modifies the menu in response to a change in the tree's selection.



Fields inherited from javax.swing.JDialog
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected JRootPane rootPane(Code)(Java Doc)
protected boolean rootPaneCheckingEnabled(Code)(Java Doc)

Methods inherited from javax.swing.JDialog
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
protected JRootPane createRootPane()(Code)(Java Doc)
protected void dialogInit()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Container getContentPane()(Code)(Java Doc)
public int getDefaultCloseOperation()(Code)(Java Doc)
public Component getGlassPane()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public JMenuBar getJMenuBar()(Code)(Java Doc)
public JLayeredPane getLayeredPane()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public static boolean isDefaultLookAndFeelDecorated()(Code)(Java Doc)
protected boolean isRootPaneCheckingEnabled()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processWindowEvent(WindowEvent e)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void repaint(long time, int x, int y, int width, int height)(Code)(Java Doc)
public void setContentPane(Container contentPane)(Code)(Java Doc)
public void setDefaultCloseOperation(int operation)(Code)(Java Doc)
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)(Code)(Java Doc)
public void setGlassPane(Component glassPane)(Code)(Java Doc)
public void setJMenuBar(JMenuBar menu)(Code)(Java Doc)
public void setLayeredPane(JLayeredPane layeredPane)(Code)(Java Doc)
public void setLayout(LayoutManager manager)(Code)(Java Doc)
protected void setRootPane(JRootPane root)(Code)(Java Doc)
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
public void update(Graphics g)(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.