| javax.swing.JDialog jimm.datavision.gui.CodeEditorWin
All known Subclasses: jimm.datavision.gui.ScriptEditorWin, jimm.datavision.gui.UserColumnWin, jimm.datavision.gui.sql.WhereClauseWin,
CodeEditorWin | abstract public class CodeEditorWin extends JDialog implements ActionListener(Code) | | This is the abstract superclass of windows used for editing paragraphs of
code such as formulas and where clauses. The text field accepts dragged
report fields by using a
DropListenerTextArea .
author: Jim Menard, jimm@io.com |
CodeEditorWin | public CodeEditorWin(Designer designer, Report report, String initialText, String title, String errorSuffixKey, String errorTitleKey)(Code) | | Constructor.
Parameters: designer - the design window to which this dialog belongs Parameters: report - the report Parameters: initialText - the initial text to edit Parameters: title - the window title Parameters: errorSuffixKey - I18N lookup key for error text suffix; may benull Parameters: errorTitleKey - I18N lookup key for error window title; may benull |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Handles the OK and Cancel buttons. If performing the command throws
an error, we catch it and display it here and do not close this window.
Parameters: e - action event |
buildButtonPanel | protected JPanel buildButtonPanel()(Code) | | Builds and returns a panel containing the OK and Cancel
a panel |
buildWindow | protected void buildWindow(Report report, String initialText)(Code) | | Builds the window contents.
Parameters: report - the report Parameters: initialText - initial value of string |
save | abstract public void save(String text)(Code) | | Implement this to do whatevery you gotta do with the text.
You'll probably want to set command so it gets sent
to the design window to be performed.
Parameters: text - the text in the edit box |
|
|