| javax.swing.JDialog jimm.datavision.gui.FieldPickerWin
Method Summary | |
public void | actionPerformed(ActionEvent e) Handles user actions. | protected void | addEditableToTree(FPLeafInfo info, DefaultMutableTreeNode categoryNode) Adds a newly created editable object to the tree, makes it visible,
and opens its editor. | protected void | addTableNode(DefaultMutableTreeNode categoryNode, Table table) Creates and adds a node representing a data source table. | protected JMenu | buildEditMenu() Builds and returns the "Edit" menu. | protected JMenu | buildFieldMenu() Builds and returns the "Field" menu. | protected JMenu | buildFileMenu() Builds and returns the "File" menu. | protected void | buildMenuBar() Builds the window menu bar. | protected void | buildWindow(int startingType) Builds the contents of the window. | protected void | createAllDatabaseTables(DefaultMutableTreeNode top) Creates notes representing tables and columns for all tables in the
database. | protected void | createFormulas(DefaultMutableTreeNode top) Creates nodes representing formula fields. | protected void | createNodes(DefaultMutableTreeNode top) Creates tree nodes. | protected void | createParameters(DefaultMutableTreeNode top) Creates nodes representing parameter fields. | protected void | createSpecialFields(DefaultMutableTreeNode top) Creates nodes representing each possible special field. | protected void | createUsedDatabaseTables(DefaultMutableTreeNode top) Creates nodes representing tables and columns for columns used by report. | protected void | createUserColumns(DefaultMutableTreeNode top) Creates nodes representing user column fields. | protected void | editSelection() Opens an editor on the currently selected item. | protected void | newFormula() Creates a new formula, adds it to the report and the tree, and opens
the formula editor. | protected void | newParameter() Creates a new parameter, adds it to the report and the tree, and opens
the parameter editor. | protected void | newUserColumn() Creates a new user column, adds it to the report and the tree, and opens
the user column editor. | protected boolean | rename(Nameable nameable, String newTitleKey, String editTitleKey, String promptKey, String unnamedKey) Opens a name editor to (re)name a nameable object. | protected boolean | renameFormula() Opens a name editor to rename the currently select formula. | protected boolean | renameFormula(Formula f) Opens a name editor to (re)name a formula. | protected boolean | renameParameter() Opens a name editor to rename the currently select parameter. | protected boolean | renameParameter(Parameter p) Opens a name editor to (re)name a parameter. | protected boolean | renameUserColumn() Opens a name editor to rename the currently select user column. | protected boolean | renameUserColumn(UserColumn f) Opens a name editor to (re)name a user column. | public void | treeWillCollapse(TreeExpansionEvent e) | public void | treeWillExpand(TreeExpansionEvent e) | public void | update(Observable o, Object arg) | public void | valueChanged(TreeSelectionEvent e) Modifies the menu in response to a change in the tree's selection. |
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) | | |
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 |
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 |
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, false if 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, false if 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, false if 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, false if 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, false if 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, false if 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, false if the user clicked Cancel |
valueChanged | public void valueChanged(TreeSelectionEvent e)(Code) | | Modifies the menu in response to a change in the tree's selection.
|
|
|