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

All known Subclasses:   jimm.datavision.gui.applet.DesignApplet,  jimm.datavision.gui.DesignWin,
Designer
abstract public class Designer implements ActionListener,Observer(Code)
The abstract superclass of Report designer windows and applets.
author:
   Jim Menard, jimm@io.com


Field Summary
final public static  intALIGN_BOTTOM
    
final public static  intALIGN_CENTER
    
final public static  intALIGN_LEFT
    
final public static  intALIGN_MIDDLE
    
final public static  intALIGN_RIGHT
    
final public static  intALIGN_SNAP_TO_GRID
    
final public static  intALIGN_TOP
    
final public static  intGRID_SIZE
    
final public static  intSIZE_SAME_HEIGHT
    
final public static  intSIZE_SAME_SIZE
    
final public static  intSIZE_SAME_WIDTH
    
protected  JMenualignSubmenusizeSubmenupaperSizeSubmenu
    
protected static  JFileChooserchooser
    
protected  CommandHistorycommandHistory
    
protected static  ArrayListdesignWindows
    
protected static  booleanexitWhenLastWindowClosed
    
protected  JFrameframe
     The frame may be null; it will be the parent of dialog boxes.
protected  booleanignoreKeys
    
protected  booleanplacingNewTextField
    
protected  Reportreport
    
protected  StringreportFilePath
    
protected  RootPaneContainerrootPaneContainer
     The container of the root pane---the highest level widget.
protected  JScrollPanescroller
    
protected  JLayeredPanesectionContainer
    
protected  ArrayListsectionWidgets
    
protected  ArrayListselectedFields
    
protected  JMenuItemundoItemredoItemcutItemcopyItempasteItemdelSelectionItemdelGroupItemdelSectionItemaggrItemgroupItemsectItemformatItemborderItemboundsItemdefaultFormatItemtableJoinItemsqlQueryTextItemconnectionItemselectRecordsItemsortByItemgroupByItemrunItemexportItemsubreportItem
    

Constructor Summary
public  Designer(File f, String databasePassword, RootPaneContainer rpc, JFrame jframe)
     Constructor.

Method Summary
protected  voidabout()
     Opens the about box.
 voidacceptNewTextField()
     The caller has accepted the new text field.
 Stringaction(String name)
    
 Stringaction(String menu, String name)
    
public  voidactionPerformed(ActionEvent e)
     Handles user actions.
public  voidaddCommand(Command cmd)
     Adds to the command history a command that has already been performed.
public  FieldWidgetaddTitleField(int x, int width, String title)
     Creates and adds a new text field to the first section of the page header.
public static  voidaddWindow(Designer win)
     Adds a window to the list of open design windows.
protected  voidalign(int which)
     Aligns the selected fields to the first selected field (chronologically speaking).
protected  JMenubuildDatabaseMenu()
     Builds and returns the "Database" menu.
protected  JMenubuildEditMenu()
     Builds and returns the "Edit" menu.
protected  JMenubuildFileMenu()
     Builds and returns the "File" menu.
protected  JMenubuildFormatMenu()
     Builds and returns the "Format" menu.
protected  JMenubuildHelpMenu()
     Builds and returns the "Help" menu.
protected  JMenubuildInsertMenu()
     Builds and returns the "Insert" menu.
protected  JMenuBarbuildMenuBar()
     Builds the window menu bar.
protected  JMenubuildReportMenu()
     Builds and returns the "Report" menu.
protected  voidbuildSections()
     Builds the sections and adds them to the section container.
protected  voidbuildSectionsInArea(SectionArea area)
     Builds the section widgets for the sections in an area and adds them to the section container.
protected  voidbuildWindow()
     Builds the window components.
protected  voidchangePaperOrientation(int orientation)
    
protected  voidchangePaperSize(PaperFormat p)
    
protected  voidcloseMe()
    
protected  voidcopySelectedFields()
     Copies the selected fields to the clipboard.
 intcountSelectedFields()
     Returns the number of selected fields.
protected  voidcreateImageField()
     Opens a dialog that asks the user to select an image file.
 voidcreateNewTextField(SectionWidget sw, MouseEvent e)
     Asks design window to create and accepts a new text field.
 voiddeleteGroupContaining(Section section)
     Deletes the group that contains the specified section.
public  voiddeleteSection(Section s)
     Deletes the specified section.
protected  voiddeleteSelectedFields()
     Delete selected fields.
protected  voiddeleteSelectedFieldsAnd(FieldWidget oneMore)
     Delete specified field and all selected fields.
protected static  voiddeleteWindow(Designer win)
     Deletes a window from the list of windows.
public  voiddeselectAll()
     Deselect all fields.
public  SectionWidgetdoDeleteSection(Section s)
     Deletes a section from the report and the design window and returns the section widget above the section's.
protected  voiddragSelectedWidgets(int action, java.awt.Point mouseScreenPos)
     Drags the selected field widgets a few pixels.
public  voidenableMenuItems()
     Enables or disables menu items based on field and window state.
protected  voidexportReport()
     Exports the report output using one of the layout engines.
public  SectionWidgetfindSectionWidgetFor(Section s)
     Returns the section widget containing the specified section.
public static  DesignerfindWindowFor(Report r)
     Returns the design window associated with the specified report, or null if one is not found.
 FieldWidgetfirstSelectedFieldWidget()
     Returns first selected field widget (chronologically speaking).
public static  JFileChoosergetChooser()
    
public  FramegetFrame()
    
public  ReportgetReport()
    
protected  SectionWidgetgetSectionWidgetUnder(java.awt.Point screenPos)
     Returns the section widget under the mouse.
protected  voidhelp()
     Opens the help window.
 voidinsertSection()
     Inserts a new section below the section containing the first selected field widget.
 voidinsertSectionBelow(Section s)
     Inserts a new section below the specified section.
public  voidinsertSectionWidgetAfter(SectionWidget sw, SectionWidget putAfter)
     Inserts a section widget at the specified position in the list.
protected  voidinsertSubreport()
     Opens the dialog that starts the process of inserting a sub-report.
public  voidinvalidate()
    
 booleanisPlacingNewTextField()
     Returns true if the user is trying to place a new text field.
protected  voidmaybeClose()
     Saves the report if it is changed (some command has been performed) and closes the current design window.
protected static  voidmaybeQuit()
     Closes each open design window (unless user cancels).
protected  voidnewReport()
     Creates a new report in a new design window.
protected  voidopenAggregateWin()
     Opens a new or existing field aggregate window.
protected  voidopenBoundsWin()
     Opens a new or existing bounds editor window.
protected  voidopenDbConnWin(boolean modal)
     Opens a new or existing database connection info window.
protected  voidopenDefaultFormatWin()
     Opens a new or existing field format window that lets the user edit the report's default format and border.
protected  voidopenDescripWin()
     Opens a new or existing report description (name, title, etc.) window.
protected  voidopenFieldPickerWin(int startingType)
     Opens a new or existing field picker window.
protected  voidopenFormatWin(int whichTab)
     Opens a new or existing field format window.
protected  voidopenGroupWin()
     Opens a new or existing group order window.
protected  voidopenNewGroupWin()
     Opens a new or existing new group window.
protected  voidopenReport()
     Opens an existing report in a new design window.
protected  voidopenScriptingWin()
     Opens a new or existing report formula language window.
protected  voidopenSortWin()
     Opens a new or existing sort order window.
protected  voidopenStartupScriptEditor()
     Opens a starutp script editor.
protected  voidopenVisTableWin()
     Opens a new or existing visible table joiner window.
protected  voidopenWhereClauseEditor()
     Opens a new or existing where clause editor.
public  voidpaperSizeChanged(PaperFormat p)
    
protected  voidpaste()
    
public  voidperformCommand(Command cmd)
     Performs a command.
 voidpickUp(java.awt.Point mouseScreenPos)
     Picks up the field widget because field dragging is starting.
protected  voidplaceNewTextField()
     Sets the flag that tells everyone else that the user wants to place a new text field.
 voidputDown(FieldWidget f, java.awt.Point origScreenPos, java.awt.Point mouseScreenPos)
     Puts the dragged field widgets down inside the sections they are floating above.
protected  booleanreadReport(File f, String databasePassword)
     Reads the named report file or, if it's null, creates a new, empty report.
public  voidrebuildGroups()
     Rebuilds the group sections and redisplays the report.
 voidrejectNewTextField()
     The caller has rejected the new text field.
protected  voidrenameSectionWidgets()
     Recalculates section names for all sections in the report.
protected  voidrenameSectionWidgetsIn(SectionArea area, String prefix, Group group)
     Recalculates section names for a collection of sections.
protected  voidrunReport()
     Runs and displays the report.
public static  voidsavePrefsDir(JFileChooser jfc, String key)
     Store the JFileChoosers current directory in the preferences this 'remembers' the last directory used so the user isn't having to navigate to their report directory each time.
protected  voidsaveReport()
     Saves the current report.
protected  voidsaveReportAs()
     Saves the current report in a different file.
public  voidselect(FieldWidget fieldWidget, boolean makeSelected, boolean deselectOthers)
     Selects a field widget, possibly deselecting all others everywhere.
public static  voidsetExitWhenLastWinClosed(boolean exit)
     Sets value of flag that determines if the application should exit when the last design window is closed.
 voidsetFieldVisibility(boolean newVisiblity, FieldWidget fw)
     Toggles the visibility of all selected fields plus the one passed in.
public  voidsetIgnoreKeys(boolean ignore)
    
public static  voidsetPrefsDir(JFileChooser jfc, String key)
     Sets the current directory for the chooser based on the directory stored in the java preferences for value 'key'.
protected  voidshowSQL()
     Opens a new window containing the SQL query text.
protected  voidsize(int which)
     Resize the selected fields based on the first selected field (chronologically speaking) and the specified resize (width, height, both).
public  voidsnapToGrid(jimm.datavision.field.Rectangle r)
     Snaps the rectangle to the grid.
public  booleansomeSelectedFieldUsesFormat()
     Returns true if there is some selected field that can be formatted.
 voidstartStretching(java.awt.Point mouseScreenPos)
     Starts stretching all selected fields.
 voidstopStretching(FieldWidget f, jimm.datavision.field.Rectangle origBounds)
     Tells each field to stop stretching and creates a command that will undo all that stretching.
public  voidupdate(Observable o, Object arg)
    
public  voidupdatePaperSizeMenu(PaperFormat p)
     Update paper orientation and size menus.
 voidwithSelectedFieldsDo(FieldWalker perambulator)
     Hands each selected field widget's field to the specified FieldWalker .
 voidwithWidgetsDo(FieldWidgetWalker perambulator)
     Hands each field widget to the specified FieldWidgetWalker .
protected  voidwriteReportFile(String fileName)
     Writes the current report to the specified file.

Field Detail
ALIGN_BOTTOM
final public static int ALIGN_BOTTOM(Code)



ALIGN_CENTER
final public static int ALIGN_CENTER(Code)



ALIGN_LEFT
final public static int ALIGN_LEFT(Code)



ALIGN_MIDDLE
final public static int ALIGN_MIDDLE(Code)



ALIGN_RIGHT
final public static int ALIGN_RIGHT(Code)



ALIGN_SNAP_TO_GRID
final public static int ALIGN_SNAP_TO_GRID(Code)



ALIGN_TOP
final public static int ALIGN_TOP(Code)



GRID_SIZE
final public static int GRID_SIZE(Code)



SIZE_SAME_HEIGHT
final public static int SIZE_SAME_HEIGHT(Code)



SIZE_SAME_SIZE
final public static int SIZE_SAME_SIZE(Code)



SIZE_SAME_WIDTH
final public static int SIZE_SAME_WIDTH(Code)



alignSubmenusizeSubmenupaperSizeSubmenu
protected JMenu alignSubmenusizeSubmenupaperSizeSubmenu(Code)



chooser
protected static JFileChooser chooser(Code)



commandHistory
protected CommandHistory commandHistory(Code)



designWindows
protected static ArrayList designWindows(Code)



exitWhenLastWindowClosed
protected static boolean exitWhenLastWindowClosed(Code)



frame
protected JFrame frame(Code)
The frame may be null; it will be the parent of dialog boxes.



ignoreKeys
protected boolean ignoreKeys(Code)



placingNewTextField
protected boolean placingNewTextField(Code)



report
protected Report report(Code)



reportFilePath
protected String reportFilePath(Code)



rootPaneContainer
protected RootPaneContainer rootPaneContainer(Code)
The container of the root pane---the highest level widget.



scroller
protected JScrollPane scroller(Code)



sectionContainer
protected JLayeredPane sectionContainer(Code)



sectionWidgets
protected ArrayList sectionWidgets(Code)



selectedFields
protected ArrayList selectedFields(Code)



undoItemredoItemcutItemcopyItempasteItemdelSelectionItemdelGroupItemdelSectionItemaggrItemgroupItemsectItemformatItemborderItemboundsItemdefaultFormatItemtableJoinItemsqlQueryTextItemconnectionItemselectRecordsItemsortByItemgroupByItemrunItemexportItemsubreportItem
protected JMenuItem undoItemredoItemcutItemcopyItempasteItemdelSelectionItemdelGroupItemdelSectionItemaggrItemgroupItemsectItemformatItemborderItemboundsItemdefaultFormatItemtableJoinItemsqlQueryTextItemconnectionItemselectRecordsItemsortByItemgroupByItemrunItemexportItemsubreportItem(Code)




Constructor Detail
Designer
public Designer(File f, String databasePassword, RootPaneContainer rpc, JFrame jframe)(Code)
Constructor. Reads the named report file or, if it's null, creates a new, empty report.
Parameters:
  f - an XML report file; may be null
Parameters:
  databasePassword - string to give to report; OK if it'snull
Parameters:
  rpc - the root pane container (the JFrame orJApplet)
Parameters:
  jframe - the design window; may be null (for example,when the designer is an applet)




Method Detail
about
protected void about()(Code)
Opens the about box.



acceptNewTextField
void acceptNewTextField()(Code)
The caller has accepted the new text field.



action
String action(String name)(Code)



action
String action(String menu, String name)(Code)



actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Handles user actions.



addCommand
public void addCommand(Command cmd)(Code)
Adds to the command history a command that has already been performed.
Parameters:
  cmd - a command



addTitleField
public FieldWidget addTitleField(int x, int width, String title)(Code)
Creates and adds a new text field to the first section of the page header.
Parameters:
  x - where to place the title
Parameters:
  width - how wide it should be
Parameters:
  title - the string to display the newly-created widget



addWindow
public static void addWindow(Designer win)(Code)
Adds a window to the list of open design windows. Also notifies the error handler class that we it should use the GUI to display error messages.
Parameters:
  win - a design window



align
protected void align(int which)(Code)
Aligns the selected fields to the first selected field (chronologically speaking).
Parameters:
  which - alignment constant.



buildDatabaseMenu
protected JMenu buildDatabaseMenu()(Code)
Builds and returns the "Database" menu. a menu



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



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



buildFormatMenu
protected JMenu buildFormatMenu()(Code)
Builds and returns the "Format" menu. a menu



buildHelpMenu
protected JMenu buildHelpMenu()(Code)
Builds and returns the "Help" menu. a menu



buildInsertMenu
protected JMenu buildInsertMenu()(Code)
Builds and returns the "Insert" menu. a menu



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



buildReportMenu
protected JMenu buildReportMenu()(Code)
Builds and returns the "Report" menu. a menu



buildSections
protected void buildSections()(Code)
Builds the sections and adds them to the section container.



buildSectionsInArea
protected void buildSectionsInArea(SectionArea area)(Code)
Builds the section widgets for the sections in an area and adds them to the section container. We name the widgets with a separate call to Designer.renameSectionWidgets .

We also start observing each section. Though our caller is called more than once, it is OK to call addObserver() on an Observable multiple times.
Parameters:
  area - contains sections




buildWindow
protected void buildWindow()(Code)
Builds the window components.



changePaperOrientation
protected void changePaperOrientation(int orientation)(Code)



changePaperSize
protected void changePaperSize(PaperFormat p)(Code)



closeMe
protected void closeMe()(Code)



copySelectedFields
protected void copySelectedFields()(Code)
Copies the selected fields to the clipboard. We need to create jimm.datavision.gui.cmd.Pasteable objects.



countSelectedFields
int countSelectedFields()(Code)
Returns the number of selected fields. the number of selected fields



createImageField
protected void createImageField()(Code)
Opens a dialog that asks the user to select an image file. Creates an image in the report header.



createNewTextField
void createNewTextField(SectionWidget sw, MouseEvent e)(Code)
Asks design window to create and accepts a new text field. Called from SectionWidget.createNewTextField .
See Also:   Designer.createNewTextField



deleteGroupContaining
void deleteGroupContaining(Section section)(Code)
Deletes the group that contains the specified section.
Parameters:
  section - a report section



deleteSection
public void deleteSection(Section s)(Code)
Deletes the specified section. Does nothing if this section is the only one of its kind. (This method should only be called if the section is not one-of-a-kind. No harm done if you do, though.)
Parameters:
  s - a report section



deleteSelectedFields
protected void deleteSelectedFields()(Code)
Delete selected fields.



deleteSelectedFieldsAnd
protected void deleteSelectedFieldsAnd(FieldWidget oneMore)(Code)
Delete specified field and all selected fields.
Parameters:
  oneMore - an additional field to delete; may be null



deleteWindow
protected static void deleteWindow(Designer win)(Code)
Deletes a window from the list of windows. If there are no more design windows left and exitWhenLastWindowClosed is true (which it is by default), exits the application.
Parameters:
  win - a design window



deselectAll
public void deselectAll()(Code)
Deselect all fields. Called from SectionWidget.deselectAll .



doDeleteSection
public SectionWidget doDeleteSection(Section s)(Code)
Deletes a section from the report and the design window and returns the section widget above the section's. If s is the first section in the report, returns null. Called from commands; don't call this yourself. Insetad call Designer.deleteSection .
Parameters:
  s - the section to delete the section widget above the section's, or nullif there is none



dragSelectedWidgets
protected void dragSelectedWidgets(int action, java.awt.Point mouseScreenPos)(Code)
Drags the selected field widgets a few pixels. Called from section that contains field being dragged.
Parameters:
  action - a FieldWidget.ACTION_* constant
Parameters:
  mouseScreenPos - mouse screen position



enableMenuItems
public void enableMenuItems()(Code)
Enables or disables menu items based on field and window state.



exportReport
protected void exportReport()(Code)
Exports the report output using one of the layout engines.



findSectionWidgetFor
public SectionWidget findSectionWidgetFor(Section s)(Code)
Returns the section widget containing the specified section.
Parameters:
  s - section the section widget containing the section



findWindowFor
public static Designer findWindowFor(Report r)(Code)
Returns the design window associated with the specified report, or null if one is not found.
Parameters:
  r - a report a design window or null if one is not found



firstSelectedFieldWidget
FieldWidget firstSelectedFieldWidget()(Code)
Returns first selected field widget (chronologically speaking). May return null if no fields are selected field widget selected the earliest, or null ifno fields are selected



getChooser
public static JFileChooser getChooser()(Code)



getFrame
public Frame getFrame()(Code)



getReport
public Report getReport()(Code)



getSectionWidgetUnder
protected SectionWidget getSectionWidgetUnder(java.awt.Point screenPos)(Code)
Returns the section widget under the mouse. Returns null unless the mouse is over a section field panel (the white area on which fields belong).
Parameters:
  screenPos - a position in screen coordinates the SectionWidget under the mouse



help
protected void help()(Code)
Opens the help window.



insertSection
void insertSection()(Code)
Inserts a new section below the section containing the first selected field widget. Only called when at least one widget is selected.



insertSectionBelow
void insertSectionBelow(Section s)(Code)
Inserts a new section below the specified section.
Parameters:
  s - a report section



insertSectionWidgetAfter
public void insertSectionWidgetAfter(SectionWidget sw, SectionWidget putAfter)(Code)
Inserts a section widget at the specified position in the list. Also starts observing the section and renames all section widgets (adding "(a)", for example. Called from NewSectionCommand.perform .
Parameters:
  sw - the section widget to insert
Parameters:
  putAfter - sw goes after this widget; may benull



insertSubreport
protected void insertSubreport()(Code)
Opens the dialog that starts the process of inserting a sub-report.



invalidate
public void invalidate()(Code)



isPlacingNewTextField
boolean isPlacingNewTextField()(Code)
Returns true if the user is trying to place a new text field. true if the user is trying to place a new text field



maybeClose
protected void maybeClose()(Code)
Saves the report if it is changed (some command has been performed) and closes the current design window. If there are no more open design windows, exist the application.



maybeQuit
protected static void maybeQuit()(Code)
Closes each open design window (unless user cancels). If all are closed, quits the application.



newReport
protected void newReport()(Code)
Creates a new report in a new design window.



openAggregateWin
protected void openAggregateWin()(Code)
Opens a new or existing field aggregate window. We should only get here if there is exactly one selected field.



openBoundsWin
protected void openBoundsWin()(Code)
Opens a new or existing bounds editor window.



openDbConnWin
protected void openDbConnWin(boolean modal)(Code)
Opens a new or existing database connection info window.
Parameters:
  modal - passed on to dialog constructor



openDefaultFormatWin
protected void openDefaultFormatWin()(Code)
Opens a new or existing field format window that lets the user edit the report's default format and border.



openDescripWin
protected void openDescripWin()(Code)
Opens a new or existing report description (name, title, etc.) window.



openFieldPickerWin
protected void openFieldPickerWin(int startingType)(Code)
Opens a new or existing field picker window.
Parameters:
  startingType - the index of the starting type to display



openFormatWin
protected void openFormatWin(int whichTab)(Code)
Opens a new or existing field format window.
Parameters:
  whichTab - the index of the tab to display when opened



openGroupWin
protected void openGroupWin()(Code)
Opens a new or existing group order window.



openNewGroupWin
protected void openNewGroupWin()(Code)
Opens a new or existing new group window.



openReport
protected void openReport()(Code)
Opens an existing report in a new design window.



openScriptingWin
protected void openScriptingWin()(Code)
Opens a new or existing report formula language window.



openSortWin
protected void openSortWin()(Code)
Opens a new or existing sort order window.



openStartupScriptEditor
protected void openStartupScriptEditor()(Code)
Opens a starutp script editor.



openVisTableWin
protected void openVisTableWin()(Code)
Opens a new or existing visible table joiner window.



openWhereClauseEditor
protected void openWhereClauseEditor()(Code)
Opens a new or existing where clause editor.



paperSizeChanged
public void paperSizeChanged(PaperFormat p)(Code)



paste
protected void paste()(Code)



performCommand
public void performCommand(Command cmd)(Code)
Performs a command.
Parameters:
  cmd - a command



pickUp
void pickUp(java.awt.Point mouseScreenPos)(Code)
Picks up the field widget because field dragging is starting. Called from SectionWidget#pickUp.
Parameters:
  mouseScreenPos - the location of the mouse in screen coordinates



placeNewTextField
protected void placeNewTextField()(Code)
Sets the flag that tells everyone else that the user wants to place a new text field.



putDown
void putDown(FieldWidget f, java.awt.Point origScreenPos, java.awt.Point mouseScreenPos)(Code)
Puts the dragged field widgets down inside the sections they are floating above. Called from SectionWidget.putDown .
Parameters:
  f - the field widget being dragged; all other selected fieldshave been dragged along with it
Parameters:
  origScreenPos - the original location of the field in screencoordinates
Parameters:
  mouseScreenPos - the current mouse position in screen coordinates;note



readReport
protected boolean readReport(File f, String databasePassword)(Code)
Reads the named report file or, if it's null, creates a new, empty report. Returns true if we need to ask the user for connection info because this is a new report.
Parameters:
  f - report XML file
Parameters:
  databasePassword - string to give to report; OK if it'snull true if we need to ask the user for connection info



rebuildGroups
public void rebuildGroups()(Code)
Rebuilds the group sections and redisplays the report.



rejectNewTextField
void rejectNewTextField()(Code)
The caller has rejected the new text field.



renameSectionWidgets
protected void renameSectionWidgets()(Code)
Recalculates section names for all sections in the report. Calls Designer.renameSectionWidgetsIn for each group of sections.



renameSectionWidgetsIn
protected void renameSectionWidgetsIn(SectionArea area, String prefix, Group group)(Code)
Recalculates section names for a collection of sections. Called from Designer.renameSectionWidgets . Also sets the section's popup menu's first item text.
Parameters:
  area - a section area
Parameters:
  prefix - prepended to all section names in the collection
Parameters:
  group - the group containing this section list; may benull



runReport
protected void runReport()(Code)
Runs and displays the report.



savePrefsDir
public static void savePrefsDir(JFileChooser jfc, String key)(Code)
Store the JFileChoosers current directory in the preferences this 'remembers' the last directory used so the user isn't having to navigate to their report directory each time.



saveReport
protected void saveReport()(Code)
Saves the current report.



saveReportAs
protected void saveReportAs()(Code)
Saves the current report in a different file.



select
public void select(FieldWidget fieldWidget, boolean makeSelected, boolean deselectOthers)(Code)
Selects a field widget, possibly deselecting all others everywhere. Called from section widget.
Parameters:
  fieldWidget - a field widget
Parameters:
  makeSelected - new selection state
Parameters:
  deselectOthers - if true, all other fields in allsections are deselected first



setExitWhenLastWinClosed
public static void setExitWhenLastWinClosed(boolean exit)(Code)
Sets value of flag that determines if the application should exit when the last design window is closed. The default value is true.



setFieldVisibility
void setFieldVisibility(boolean newVisiblity, FieldWidget fw)(Code)
Toggles the visibility of all selected fields plus the one passed in. Called by a section widget.
See Also:   FieldWidget.doSetVisibility



setIgnoreKeys
public void setIgnoreKeys(boolean ignore)(Code)



setPrefsDir
public static void setPrefsDir(JFileChooser jfc, String key)(Code)
Sets the current directory for the chooser based on the directory stored in the java preferences for value 'key'. Default key is reportDir



showSQL
protected void showSQL()(Code)
Opens a new window containing the SQL query text.



size
protected void size(int which)(Code)
Resize the selected fields based on the first selected field (chronologically speaking) and the specified resize (width, height, both).
Parameters:
  which - size constant



snapToGrid
public void snapToGrid(jimm.datavision.field.Rectangle r)(Code)
Snaps the rectangle to the grid.
Parameters:
  r - a rectangle



someSelectedFieldUsesFormat
public boolean someSelectedFieldUsesFormat()(Code)
Returns true if there is some selected field that can be formatted. true if there is some selected field that canbe formatted



startStretching
void startStretching(java.awt.Point mouseScreenPos)(Code)
Starts stretching all selected fields. Called from SectionWidget.startStretching .
Parameters:
  mouseScreenPos - the location of the mouse in screen coordinates



stopStretching
void stopStretching(FieldWidget f, jimm.datavision.field.Rectangle origBounds)(Code)
Tells each field to stop stretching and creates a command that will undo all that stretching. Called from SectionWidget.stopStretching .
Parameters:
  f - the field widget being dragged; all other selected fieldshave been dragged along with it
Parameters:
  origBounds - the field's original bounds



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



updatePaperSizeMenu
public void updatePaperSizeMenu(PaperFormat p)(Code)
Update paper orientation and size menus.



withSelectedFieldsDo
void withSelectedFieldsDo(FieldWalker perambulator)(Code)
Hands each selected field widget's field to the specified FieldWalker .
Parameters:
  perambulator - a field walker



withWidgetsDo
void withWidgetsDo(FieldWidgetWalker perambulator)(Code)
Hands each field widget to the specified FieldWidgetWalker .
Parameters:
  perambulator - a field widget walker



writeReportFile
protected void writeReportFile(String fileName)(Code)
Writes the current report to the specified file. Also tells the command history the report has been saved so it knows how to report if any changes have been made from this point on.
Parameters:
  fileName - a file name



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.