Method Summary |
|
protected void | about() Opens the about box. |
void | acceptNewTextField() The caller has accepted the new text field. |
String | action(String name) |
String | action(String menu, String name) |
public void | actionPerformed(ActionEvent e) Handles user actions. |
public void | addCommand(Command cmd) Adds to the command history a command that has already been performed. |
public FieldWidget | addTitleField(int x, int width, String title) Creates and adds a new text field to the first section of the page header. |
public static void | addWindow(Designer win) Adds a window to the list of open design windows. |
protected void | align(int which) Aligns the selected fields to the first selected field (chronologically
speaking). |
protected JMenu | buildDatabaseMenu() Builds and returns the "Database" menu. |
protected JMenu | buildEditMenu() Builds and returns the "Edit" menu. |
protected JMenu | buildFileMenu() Builds and returns the "File" menu. |
protected JMenu | buildFormatMenu() Builds and returns the "Format" menu. |
protected JMenu | buildHelpMenu() Builds and returns the "Help" menu. |
protected JMenu | buildInsertMenu() Builds and returns the "Insert" menu. |
protected JMenuBar | buildMenuBar() Builds the window menu bar. |
protected JMenu | buildReportMenu() Builds and returns the "Report" menu. |
protected void | buildSections() Builds the sections and adds them to the section container. |
protected void | buildSectionsInArea(SectionArea area) Builds the section widgets for the sections in an area and adds them to the
section container. |
protected void | buildWindow() Builds the window components. |
protected void | changePaperOrientation(int orientation) |
protected void | changePaperSize(PaperFormat p) |
protected void | closeMe() |
protected void | copySelectedFields() Copies the selected fields to the clipboard. |
int | countSelectedFields() Returns the number of selected fields. |
protected void | createImageField() Opens a dialog that asks the user to select an image file. |
void | createNewTextField(SectionWidget sw, MouseEvent e) Asks design window to create and accepts a new text field. |
void | deleteGroupContaining(Section section) Deletes the group that contains the specified section. |
public void | deleteSection(Section s) Deletes the specified section. |
protected void | deleteSelectedFields() Delete selected fields. |
protected void | deleteSelectedFieldsAnd(FieldWidget oneMore) Delete specified field and all selected fields. |
protected static void | deleteWindow(Designer win) Deletes a window from the list of windows. |
public void | deselectAll() Deselect all fields. |
public SectionWidget | doDeleteSection(Section s) Deletes a section from the report and the design window and returns the
section widget above the section's. |
protected void | dragSelectedWidgets(int action, java.awt.Point mouseScreenPos) Drags the selected field widgets a few pixels. |
public void | enableMenuItems() Enables or disables menu items based on field and window state. |
protected void | exportReport() Exports the report output using one of the layout engines. |
public SectionWidget | findSectionWidgetFor(Section s) Returns the section widget containing the specified section. |
public static Designer | findWindowFor(Report r) Returns the design window associated with the specified report, or
null if one is not found. |
FieldWidget | firstSelectedFieldWidget() Returns first selected field widget (chronologically speaking). |
public static JFileChooser | getChooser() |
public Frame | getFrame() |
public Report | getReport() |
protected SectionWidget | getSectionWidgetUnder(java.awt.Point screenPos) Returns the section widget under the mouse. |
protected void | help() Opens the help window. |
void | insertSection() Inserts a new section below the section containing the first selected
field widget. |
void | insertSectionBelow(Section s) Inserts a new section below the specified section. |
public void | insertSectionWidgetAfter(SectionWidget sw, SectionWidget putAfter) Inserts a section widget at the specified position in the list. |
protected void | insertSubreport() Opens the dialog that starts the process of inserting a sub-report. |
public void | invalidate() |
boolean | isPlacingNewTextField() Returns true if the user is trying to place a new text field. |
protected void | maybeClose() Saves the report if it is changed (some command has been performed) and
closes the current design window. |
protected static void | maybeQuit() Closes each open design window (unless user cancels). |
protected void | newReport() Creates a new report in a new design window. |
protected void | openAggregateWin() Opens a new or existing field aggregate window. |
protected void | openBoundsWin() Opens a new or existing bounds editor window. |
protected void | openDbConnWin(boolean modal) Opens a new or existing database connection info window. |
protected void | openDefaultFormatWin() Opens a new or existing field format window that lets the user edit the
report's default format and border. |
protected void | openDescripWin() Opens a new or existing report description (name, title, etc.) window. |
protected void | openFieldPickerWin(int startingType) Opens a new or existing field picker window. |
protected void | openFormatWin(int whichTab) Opens a new or existing field format window. |
protected void | openGroupWin() Opens a new or existing group order window. |
protected void | openNewGroupWin() Opens a new or existing new group window. |
protected void | openReport() Opens an existing report in a new design window. |
protected void | openScriptingWin() Opens a new or existing report formula language window. |
protected void | openSortWin() Opens a new or existing sort order window. |
protected void | openStartupScriptEditor() Opens a starutp script editor. |
protected void | openVisTableWin() Opens a new or existing visible table joiner window. |
protected void | openWhereClauseEditor() Opens a new or existing where clause editor. |
public void | paperSizeChanged(PaperFormat p) |
protected void | paste() |
public void | performCommand(Command cmd) Performs a command. |
void | pickUp(java.awt.Point mouseScreenPos) Picks up the field widget because field dragging is starting. |
protected void | placeNewTextField() Sets the flag that tells everyone else that the user wants to place
a new text field. |
void | putDown(FieldWidget f, java.awt.Point origScreenPos, java.awt.Point mouseScreenPos) Puts the dragged field widgets down inside the sections they are floating
above. |
protected boolean | readReport(File f, String databasePassword) Reads the named report file or, if it's null , creates
a new, empty report. |
public void | rebuildGroups() Rebuilds the group sections and redisplays the report. |
void | rejectNewTextField() The caller has rejected the new text field. |
protected void | renameSectionWidgets() Recalculates section names for all sections in the report. |
protected void | renameSectionWidgetsIn(SectionArea area, String prefix, Group group) Recalculates section names for a collection of sections. |
protected void | runReport() Runs and displays the report. |
public static void | savePrefsDir(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 void | saveReport() Saves the current report. |
protected void | saveReportAs() Saves the current report in a different file. |
public void | select(FieldWidget fieldWidget, boolean makeSelected, boolean deselectOthers) Selects a field widget, possibly deselecting all others everywhere. |
public static void | setExitWhenLastWinClosed(boolean exit) Sets value of flag that determines if the application should exit
when the last design window is closed. |
void | setFieldVisibility(boolean newVisiblity, FieldWidget fw) Toggles the visibility of all selected fields plus the one passed in. |
public void | setIgnoreKeys(boolean ignore) |
public static void | setPrefsDir(JFileChooser jfc, String key) Sets the current directory for the chooser based on
the directory stored in the java preferences for
value 'key'. |
protected void | showSQL() Opens a new window containing the SQL query text. |
protected void | size(int which) Resize the selected fields based on the first selected field
(chronologically speaking) and the specified resize (width, height, both). |
public void | snapToGrid(jimm.datavision.field.Rectangle r) Snaps the rectangle to the grid. |
public boolean | someSelectedFieldUsesFormat() Returns true if there is some selected field that can
be formatted. |
void | startStretching(java.awt.Point mouseScreenPos) Starts stretching all selected fields. |
void | stopStretching(FieldWidget f, jimm.datavision.field.Rectangle origBounds) Tells each field to stop stretching and creates a command that will undo
all that stretching. |
public void | update(Observable o, Object arg) |
public void | updatePaperSizeMenu(PaperFormat p) Update paper orientation and size menus. |
void | withSelectedFieldsDo(FieldWalker perambulator) Hands each selected field widget's field to the specified
FieldWalker . |
void | withWidgetsDo(FieldWidgetWalker perambulator) Hands each field widget to the specified
FieldWidgetWalker . |
protected void | writeReportFile(String fileName) Writes the current report to the specified file. |