Source Code Cross Referenced for ElementPropertiesDialog.java in  » Report » iReport-2.0.5 » it » businesslogic » ireport » 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 » iReport 2.0.5 » it.businesslogic.ireport.gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


00001:        /*
00002:         * Copyright (C) 2005 - 2008 JasperSoft Corporation.  All rights reserved. 
00003:         * http://www.jaspersoft.com.
00004:         *
00005:         * Unless you have purchased a commercial license agreement from JasperSoft,
00006:         * the following license terms apply:
00007:         *
00008:         * This program is free software; you can redistribute it and/or modify
00009:         * it under the terms of the GNU General Public License version 2 as published by
00010:         * the Free Software Foundation.
00011:         *
00012:         * This program is distributed WITHOUT ANY WARRANTY; and without the
00013:         * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00014:         * See the GNU General Public License for more details.
00015:         *
00016:         * You should have received a copy of the GNU General Public License
00017:         * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
00018:         * or write to:
00019:         *
00020:         * Free Software Foundation, Inc.,
00021:         * 59 Temple Place - Suite 330,
00022:         * Boston, MA  USA  02111-1307
00023:         *
00024:         *
00025:         *
00026:         *
00027:         * ElementPropertiesDialog.java
00028:         * 
00029:         * Created on 28 aprile 2003, 23.53
00030:         *
00031:         */
00032:
00033:        package it.businesslogic.ireport.gui;
00034:
00035:        import it.businesslogic.ireport.HyperLinkableReportElement;
00036:        import it.businesslogic.ireport.IReportFont;
00037:        import it.businesslogic.ireport.JRSubreportParameter;
00038:        import it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog;
00039:        import it.businesslogic.ireport.util.*;
00040:        import it.businesslogic.ireport.gui.event.*;
00041:        import java.util.*;
00042:        import java.awt.*;
00043:        import it.businesslogic.ireport.*;
00044:        import it.businesslogic.ireport.crosstab.CrosstabCell;
00045:        import it.businesslogic.ireport.gui.box.*;
00046:        import it.businesslogic.ireport.gui.sheet.*;
00047:        import javax.swing.DefaultComboBoxModel;
00048:
00049:        /**
00050:         *
00051:         * @author <a href="mailto:gt78@users.sourceforge.net">Giulio Toffoli</a>
00052:         * @author <a href="mailto:phenderson@users.sourceforge.net">Peter Henderson</a>
00053:         */
00054:        public class ElementPropertiesDialog extends javax.swing.JDialog {
00055:
00056:            public static final int GRAPHICS_TAB = 1;
00057:            public static final int RECTANGLE_TAB = 2;
00058:            public static final int LINE_TAB = 3;
00059:            public static final int IMAGE_TAB = 4;
00060:            public static final int FONT_TAB = 5;
00061:            public static final int STATITEXT_TAB = 6;
00062:            public static final int TEXTFIELD_TAB = 7;
00063:            public static final int HYPERLINK_TAB = 8;
00064:            public static final int SUBREPORT1_TAB = 9;
00065:            public static final int SUBREPORT2_TAB = 10;
00066:            public static final int CHART_TAB = 11;
00067:            public static final int COMMON_TAB = 12;
00068:            public static final int BARCODE_TAB = 13;
00069:
00070:            private JReportFrame jrf = null;
00071:            //private String lastSelectedPaneName = "Common";
00072:            private javax.swing.JPanel lastSelectedPanel = null;
00073:            private BoxPanel boxPanel = null;
00074:            private ReportElementSheetPanel sheetPanel = null;
00075:
00076:            /** Creates new form ElementPropertiesDialog */
00077:            public ElementPropertiesDialog(java.awt.Frame parent, boolean modal) {
00078:                super (parent, modal);
00079:                initComponents();
00080:
00081:                //System.out.println(">>> 1");
00082:
00083:                jTabbedPane.removeAll();
00084:
00085:                this .setSize(370, 380);
00086:
00087:                javax.swing.KeyStroke escape = javax.swing.KeyStroke
00088:                        .getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0,
00089:                                false);
00090:                javax.swing.Action escapeAction = new javax.swing.AbstractAction() {
00091:                    public void actionPerformed(java.awt.event.ActionEvent e) {
00092:                        setVisible(false);
00093:                    }
00094:                };
00095:
00096:                getRootPane().getInputMap(
00097:                        javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW).put(
00098:                        escape, "ESCAPE");
00099:                getRootPane().getActionMap().put("ESCAPE", escapeAction);
00100:
00101:                // Image Expression Classes...
00102:                jComboBoxImageExpressionClass.addItem("java.lang.String");
00103:                jComboBoxImageExpressionClass.addItem("java.io.File");
00104:                jComboBoxImageExpressionClass.addItem("java.net.URL");
00105:                jComboBoxImageExpressionClass.addItem("java.io.InputStream");
00106:                jComboBoxImageExpressionClass.addItem("java.awt.Image");
00107:                jComboBoxImageExpressionClass
00108:                        .addItem("net.sf.jasperreports.engine.JRRenderable");
00109:
00110:                jNumberComboBoxSize.addEntry("3", 3);
00111:                jNumberComboBoxSize.addEntry("5", 5);
00112:                jNumberComboBoxSize.addEntry("8", 8);
00113:                jNumberComboBoxSize.addEntry("10", 10);
00114:                jNumberComboBoxSize.addEntry("12", 12);
00115:                jNumberComboBoxSize.addEntry("14", 14);
00116:                jNumberComboBoxSize.addEntry("18", 18);
00117:                jNumberComboBoxSize.addEntry("24", 24);
00118:                jNumberComboBoxSize.addEntry("36", 36);
00119:                jNumberComboBoxSize.addEntry("48", 48);
00120:
00121:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1250",
00122:                        "CP1250 (Central European)"));
00123:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1251",
00124:                        "CP1251 (Cyrillic)"));
00125:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1252",
00126:                        "CP1252 (Western European ANSI aka WinAnsi)"));
00127:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1253",
00128:                        "CP1253 (Greek)"));
00129:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1254",
00130:                        "CP1254 (Turkish)"));
00131:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1255",
00132:                        "CP1255 (Hebrew)"));
00133:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1256",
00134:                        "CP1256 (Arabic)"));
00135:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1257",
00136:                        "CP1257 (Baltic)"));
00137:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1258",
00138:                        "CP1258 (Vietnamese)"));
00139:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniGB-UCS2-H",
00140:                        "UniGB-UCS2-H (Chinese Simplified)"));
00141:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniGB-UCS2-V",
00142:                        "UniGB-UCS2-V (Chinese Simplified)"));
00143:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniCNS-UCS2-H",
00144:                        "UniCNS-UCS2-H (Chinese traditional)"));
00145:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniCNS-UCS2-V",
00146:                        "UniCNS-UCS2-V (Chinese traditional)"));
00147:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-H",
00148:                        "UniJIS-UCS2-H (Japanese)"));
00149:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-V",
00150:                        "UniJIS-UCS2-V (Japanese)"));
00151:                jComboBoxPdfEncoding.addItem(new PdfEncoding(
00152:                        "UniJIS-UCS2-HW-H", "UniJIS-UCS2-HW-H (Japanese)"));
00153:                jComboBoxPdfEncoding.addItem(new PdfEncoding(
00154:                        "UniJIS-UCS2-HW-V", "UniJIS-UCS2-HW-V (Japanese)"));
00155:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniKS-UCS2-H",
00156:                        "UniKS-UCS2-H (Korean)"));
00157:                jComboBoxPdfEncoding.addItem(new PdfEncoding("UniKS-UCS2-V",
00158:                        "UniKS-UCS2-V (Korean)"));
00159:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Identity-H",
00160:                        "Identity-H (Unicode with horizontal writing)"));
00161:                jComboBoxPdfEncoding.addItem(new PdfEncoding("Identity-V",
00162:                        "Identity-V (Unicode with vertical writing)"));
00163:
00164:                jComboBoxPattern.addItem(new PdfEncoding("#,##0.00",
00165:                        " #,##0.00 (example 1,234.56)"));
00166:
00167:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Boolean");
00168:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Byte");
00169:                jComboBoxTextFieldExpressionClass.addItem("java.util.Date");
00170:                jComboBoxTextFieldExpressionClass.addItem("java.sql.Timestamp");
00171:                jComboBoxTextFieldExpressionClass.addItem("java.sql.Time");
00172:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Double");
00173:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Float");
00174:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Integer");
00175:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Long");
00176:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Short");
00177:                jComboBoxTextFieldExpressionClass
00178:                        .addItem("java.math.BigDecimal");
00179:                jComboBoxTextFieldExpressionClass.addItem("java.lang.Number");
00180:                jComboBoxTextFieldExpressionClass.addItem("java.lang.String");
00181:
00182:                jComboBoxSubreportExpressionClass.addItem("java.lang.String");
00183:                jComboBoxSubreportExpressionClass.addItem("java.io.File");
00184:                jComboBoxSubreportExpressionClass.addItem("java.net.URL");
00185:                jComboBoxSubreportExpressionClass
00186:                        .addItem("java.io.InputStream");
00187:                jComboBoxSubreportExpressionClass
00188:                        .addItem("net.sf.jasperreports.engine.JasperReport");
00189:
00190:                updateLinkTypes();
00191:
00192:                // Barcode Evaluation Time...
00193:                jComboBoxLinkTarget.addItem("Self");
00194:                jComboBoxLinkTarget.addItem("Blank");
00195:
00196:                jComboBoxMarkup.addItem(new Tag("None", "None"));
00197:                jComboBoxMarkup.addItem(new Tag("html", "HTML"));
00198:                jComboBoxMarkup.addItem(new Tag("rtf", "RTF"));
00199:
00200:                jComboBoxBarcodeType.addItem(new Tag("1", "2of7"));
00201:                jComboBoxBarcodeType.addItem(new Tag("2", "3of9"));
00202:                jComboBoxBarcodeType.addItem(new Tag("3", "Bookland"));
00203:                jComboBoxBarcodeType.addItem(new Tag("4", "Codabar"));
00204:                jComboBoxBarcodeType.addItem(new Tag("5", "Code128"));
00205:                jComboBoxBarcodeType.addItem(new Tag("6", "Code128A"));
00206:                jComboBoxBarcodeType.addItem(new Tag("7", "Code128B"));
00207:                jComboBoxBarcodeType.addItem(new Tag("8", "Code128C"));
00208:                jComboBoxBarcodeType.addItem(new Tag("9", "Code39"));
00209:                jComboBoxBarcodeType
00210:                        .addItem(new Tag("26", "Code39 (Extended)"));
00211:                jComboBoxBarcodeType.addItem(new Tag("10", "EAN128"));
00212:                jComboBoxBarcodeType.addItem(new Tag("11", "EAN13"));
00213:                jComboBoxBarcodeType.addItem(new Tag("12",
00214:                        "GlobalTradeItemNumber"));
00215:                jComboBoxBarcodeType.addItem(new Tag("13", "Int2of5"));
00216:                jComboBoxBarcodeType.addItem(new Tag("14", "Monarch"));
00217:                jComboBoxBarcodeType.addItem(new Tag("15", "NW7"));
00218:                jComboBoxBarcodeType.addItem(new Tag("16", "PDF417"));
00219:                jComboBoxBarcodeType
00220:                        .addItem(new Tag("17", "SCC14ShippingCode"));
00221:                jComboBoxBarcodeType.addItem(new Tag("18",
00222:                        "ShipmentIdentificationNumber"));
00223:                jComboBoxBarcodeType.addItem(new Tag("19", "SSCC18"));
00224:                jComboBoxBarcodeType.addItem(new Tag("20", "Std2of5"));
00225:                jComboBoxBarcodeType.addItem(new Tag("21", "UCC128"));
00226:                jComboBoxBarcodeType.addItem(new Tag("22", "UPCA"));
00227:                jComboBoxBarcodeType.addItem(new Tag("23", "USD3"));
00228:                jComboBoxBarcodeType.addItem(new Tag("24", "USD4"));
00229:                jComboBoxBarcodeType.addItem(new Tag("25", "USPS"));
00230:
00231:                jSpinnerBookmarkLevel
00232:                        .setModel(new javax.swing.SpinnerNumberModel(0, 0,
00233:                                10000, 1));
00234:
00235:                // Load Fonts...
00236:                String[] fontFamilies = java.awt.GraphicsEnvironment
00237:                        .getLocalGraphicsEnvironment()
00238:                        .getAvailableFontFamilyNames();
00239:                for (int i = 0; i < fontFamilies.length; ++i) {
00240:                    jComboBoxFontName.addItem(fontFamilies[i]);
00241:                }
00242:
00243:                MainFrame.getMainInstance().addFontsListChangedListener(
00244:                        new FontsListChangedListener() {
00245:                            public void fontsListChanged(
00246:                                    FontsListChangedEvent evt) {
00247:                                updateFonts();
00248:                            }
00249:                        });
00250:
00251:                this .jRTextExpressionAreaPrintWhenExpression.getDocument()
00252:                        .addDocumentListener(
00253:                                new javax.swing.event.DocumentListener() {
00254:                                    public void changedUpdate(
00255:                                            javax.swing.event.DocumentEvent evt) {
00256:                                        jRTextExpressionAreaPrintWhenExpressionTextChanged();
00257:                                    }
00258:
00259:                                    public void insertUpdate(
00260:                                            javax.swing.event.DocumentEvent evt) {
00261:                                        jRTextExpressionAreaPrintWhenExpressionTextChanged();
00262:                                    }
00263:
00264:                                    public void removeUpdate(
00265:                                            javax.swing.event.DocumentEvent evt) {
00266:                                        jRTextExpressionAreaPrintWhenExpressionTextChanged();
00267:                                    }
00268:                                });
00269:
00270:                this .jTextAreaText.getDocument().addDocumentListener(
00271:                        new javax.swing.event.DocumentListener() {
00272:                            public void changedUpdate(
00273:                                    javax.swing.event.DocumentEvent evt) {
00274:                                jTextAreaTextChanged();
00275:                            }
00276:
00277:                            public void insertUpdate(
00278:                                    javax.swing.event.DocumentEvent evt) {
00279:                                jTextAreaTextChanged();
00280:                            }
00281:
00282:                            public void removeUpdate(
00283:                                    javax.swing.event.DocumentEvent evt) {
00284:                                jTextAreaTextChanged();
00285:                            }
00286:                        });
00287:
00288:                this .jRTextExpressionAreaTextFieldExpression.getDocument()
00289:                        .addDocumentListener(
00290:                                new javax.swing.event.DocumentListener() {
00291:                                    public void changedUpdate(
00292:                                            javax.swing.event.DocumentEvent evt) {
00293:                                        jRTextExpressionAreaTextFieldExpressionTextChanged();
00294:                                    }
00295:
00296:                                    public void insertUpdate(
00297:                                            javax.swing.event.DocumentEvent evt) {
00298:                                        jRTextExpressionAreaTextFieldExpressionTextChanged();
00299:                                    }
00300:
00301:                                    public void removeUpdate(
00302:                                            javax.swing.event.DocumentEvent evt) {
00303:                                        jRTextExpressionAreaTextFieldExpressionTextChanged();
00304:                                    }
00305:                                });
00306:
00307:                this .jRTextExpressionAreaImageExpression.getDocument()
00308:                        .addDocumentListener(
00309:                                new javax.swing.event.DocumentListener() {
00310:                                    public void changedUpdate(
00311:                                            javax.swing.event.DocumentEvent evt) {
00312:                                        jRTextExpressionAreaImageExpressionTextChanged();
00313:                                    }
00314:
00315:                                    public void insertUpdate(
00316:                                            javax.swing.event.DocumentEvent evt) {
00317:                                        jRTextExpressionAreaImageExpressionTextChanged();
00318:                                    }
00319:
00320:                                    public void removeUpdate(
00321:                                            javax.swing.event.DocumentEvent evt) {
00322:                                        jRTextExpressionAreaImageExpressionTextChanged();
00323:                                    }
00324:                                });
00325:
00326:                this .jRTextExpressionAreaSubreportExpression.getDocument()
00327:                        .addDocumentListener(
00328:                                new javax.swing.event.DocumentListener() {
00329:                                    public void changedUpdate(
00330:                                            javax.swing.event.DocumentEvent evt) {
00331:                                        jRTextExpressionAreaSubreportExpressionTextChanged();
00332:                                    }
00333:
00334:                                    public void insertUpdate(
00335:                                            javax.swing.event.DocumentEvent evt) {
00336:                                        jRTextExpressionAreaSubreportExpressionTextChanged();
00337:                                    }
00338:
00339:                                    public void removeUpdate(
00340:                                            javax.swing.event.DocumentEvent evt) {
00341:                                        jRTextExpressionAreaSubreportExpressionTextChanged();
00342:                                    }
00343:                                });
00344:
00345:                this .jRTextExpressionAreaTextConnectionExpression.getDocument()
00346:                        .addDocumentListener(
00347:                                new javax.swing.event.DocumentListener() {
00348:                                    public void changedUpdate(
00349:                                            javax.swing.event.DocumentEvent evt) {
00350:                                        jRTextExpressionAreaTextConnectionExpressionTextChanged();
00351:                                    }
00352:
00353:                                    public void insertUpdate(
00354:                                            javax.swing.event.DocumentEvent evt) {
00355:                                        jRTextExpressionAreaTextConnectionExpressionTextChanged();
00356:                                    }
00357:
00358:                                    public void removeUpdate(
00359:                                            javax.swing.event.DocumentEvent evt) {
00360:                                        jRTextExpressionAreaTextConnectionExpressionTextChanged();
00361:                                    }
00362:                                });
00363:
00364:                this .jRTextExpressionAreaCrosstabParametersMapExpression
00365:                        .getDocument().addDocumentListener(
00366:                                new javax.swing.event.DocumentListener() {
00367:                                    public void changedUpdate(
00368:                                            javax.swing.event.DocumentEvent evt) {
00369:                                        jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
00370:                                    }
00371:
00372:                                    public void insertUpdate(
00373:                                            javax.swing.event.DocumentEvent evt) {
00374:                                        jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
00375:                                    }
00376:
00377:                                    public void removeUpdate(
00378:                                            javax.swing.event.DocumentEvent evt) {
00379:                                        jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
00380:                                    }
00381:                                });
00382:
00383:                this .jRTextExpressionAreaSubreportMapExpression.getDocument()
00384:                        .addDocumentListener(
00385:                                new javax.swing.event.DocumentListener() {
00386:                                    public void changedUpdate(
00387:                                            javax.swing.event.DocumentEvent evt) {
00388:                                        jRTextExpressionAreaSubreportMapExpressionTextChanged();
00389:                                    }
00390:
00391:                                    public void insertUpdate(
00392:                                            javax.swing.event.DocumentEvent evt) {
00393:                                        jRTextExpressionAreaSubreportMapExpressionTextChanged();
00394:                                    }
00395:
00396:                                    public void removeUpdate(
00397:                                            javax.swing.event.DocumentEvent evt) {
00398:                                        jRTextExpressionAreaSubreportMapExpressionTextChanged();
00399:                                    }
00400:                                });
00401:
00402:                javax.swing.DefaultListSelectionModel dlsm = (javax.swing.DefaultListSelectionModel) this .jTableSubreportParameters
00403:                        .getSelectionModel();
00404:                dlsm
00405:                        .addListSelectionListener(new javax.swing.event.ListSelectionListener() {
00406:                            public void valueChanged(
00407:                                    javax.swing.event.ListSelectionEvent e) {
00408:                                jTableSubreportParametersListSelectionValueChanged(e);
00409:                            }
00410:                        });
00411:
00412:                dlsm = (javax.swing.DefaultListSelectionModel) this .jTableSubreportReturnValues
00413:                        .getSelectionModel();
00414:                dlsm
00415:                        .addListSelectionListener(new javax.swing.event.ListSelectionListener() {
00416:                            public void valueChanged(
00417:                                    javax.swing.event.ListSelectionEvent e) {
00418:                                jTableSubreportReturnValuesListSelectionValueChanged(e);
00419:                            }
00420:                        });
00421:
00422:                dlsm = (javax.swing.DefaultListSelectionModel) this .jTableCrosstabParameters
00423:                        .getSelectionModel();
00424:                dlsm
00425:                        .addListSelectionListener(new javax.swing.event.ListSelectionListener() {
00426:                            public void valueChanged(
00427:                                    javax.swing.event.ListSelectionEvent e) {
00428:                                jTableCrosstabParametersListSelectionValueChanged(e);
00429:                            }
00430:                        });
00431:
00432:                dlsm = (javax.swing.DefaultListSelectionModel) this .jTableLinkParameters
00433:                        .getSelectionModel();
00434:                dlsm
00435:                        .addListSelectionListener(new javax.swing.event.ListSelectionListener() {
00436:                            public void valueChanged(
00437:                                    javax.swing.event.ListSelectionEvent e) {
00438:                                jTableLinkParametersListSelectionValueChanged(e);
00439:                            }
00440:                        });
00441:
00442:                this .jRTextExpressionAreaAnchorName.getDocument()
00443:                        .addDocumentListener(
00444:                                new javax.swing.event.DocumentListener() {
00445:                                    public void changedUpdate(
00446:                                            javax.swing.event.DocumentEvent evt) {
00447:                                        jRTextExpressionAreaAnchorNameTextChanged();
00448:                                    }
00449:
00450:                                    public void insertUpdate(
00451:                                            javax.swing.event.DocumentEvent evt) {
00452:                                        jRTextExpressionAreaAnchorNameTextChanged();
00453:                                    }
00454:
00455:                                    public void removeUpdate(
00456:                                            javax.swing.event.DocumentEvent evt) {
00457:                                        jRTextExpressionAreaAnchorNameTextChanged();
00458:                                    }
00459:                                });
00460:
00461:                this .jRTextExpressionAreaAnchor.getDocument()
00462:                        .addDocumentListener(
00463:                                new javax.swing.event.DocumentListener() {
00464:                                    public void changedUpdate(
00465:                                            javax.swing.event.DocumentEvent evt) {
00466:                                        jRTextExpressionAreaAnchorTextChanged();
00467:                                    }
00468:
00469:                                    public void insertUpdate(
00470:                                            javax.swing.event.DocumentEvent evt) {
00471:                                        jRTextExpressionAreaAnchorTextChanged();
00472:                                    }
00473:
00474:                                    public void removeUpdate(
00475:                                            javax.swing.event.DocumentEvent evt) {
00476:                                        jRTextExpressionAreaAnchorTextChanged();
00477:                                    }
00478:                                });
00479:
00480:                this .jRTextExpressionAreaPage.getDocument()
00481:                        .addDocumentListener(
00482:                                new javax.swing.event.DocumentListener() {
00483:                                    public void changedUpdate(
00484:                                            javax.swing.event.DocumentEvent evt) {
00485:                                        jRTextExpressionAreaPageTextChanged();
00486:                                    }
00487:
00488:                                    public void insertUpdate(
00489:                                            javax.swing.event.DocumentEvent evt) {
00490:                                        jRTextExpressionAreaPageTextChanged();
00491:                                    }
00492:
00493:                                    public void removeUpdate(
00494:                                            javax.swing.event.DocumentEvent evt) {
00495:                                        jRTextExpressionAreaPageTextChanged();
00496:                                    }
00497:                                });
00498:
00499:                this .jRTextExpressionAreaReference.getDocument()
00500:                        .addDocumentListener(
00501:                                new javax.swing.event.DocumentListener() {
00502:                                    public void changedUpdate(
00503:                                            javax.swing.event.DocumentEvent evt) {
00504:                                        jRTextExpressionAreaReferenceTextChanged();
00505:                                    }
00506:
00507:                                    public void insertUpdate(
00508:                                            javax.swing.event.DocumentEvent evt) {
00509:                                        jRTextExpressionAreaReferenceTextChanged();
00510:                                    }
00511:
00512:                                    public void removeUpdate(
00513:                                            javax.swing.event.DocumentEvent evt) {
00514:                                        jRTextExpressionAreaReferenceTextChanged();
00515:                                    }
00516:                                });
00517:
00518:                this .jRTextExpressionAreaTooltip.getDocument()
00519:                        .addDocumentListener(
00520:                                new javax.swing.event.DocumentListener() {
00521:                                    public void changedUpdate(
00522:                                            javax.swing.event.DocumentEvent evt) {
00523:                                        jRTextExpressionAreaTooltipTextChanged();
00524:                                    }
00525:
00526:                                    public void insertUpdate(
00527:                                            javax.swing.event.DocumentEvent evt) {
00528:                                        jRTextExpressionAreaTooltipTextChanged();
00529:                                    }
00530:
00531:                                    public void removeUpdate(
00532:                                            javax.swing.event.DocumentEvent evt) {
00533:                                        jRTextExpressionAreaTooltipTextChanged();
00534:                                    }
00535:                                });
00536:
00537:                /*this.jComboBoxChartFactory.getDocument().addDocumentListener( new javax.swing.event.DocumentListener() {
00538:                        public void changedUpdate(javax.swing.event.DocumentEvent evt) {
00539:                                chartFactoryChanged();
00540:                        }
00541:                        public void insertUpdate(javax.swing.event.DocumentEvent evt) {
00542:                                chartFactoryChanged();
00543:                        }
00544:                        public void removeUpdate(javax.swing.event.DocumentEvent evt) {
00545:                                chartFactoryChanged();
00546:                        }
00547:                });*/
00548:
00549:                this .jTextFieldName.getDocument().addDocumentListener(
00550:                        new javax.swing.event.DocumentListener() {
00551:                            public void changedUpdate(
00552:                                    javax.swing.event.DocumentEvent evt) {
00553:                                jTextFieldNameChanged();
00554:                            }
00555:
00556:                            public void insertUpdate(
00557:                                    javax.swing.event.DocumentEvent evt) {
00558:                                jTextFieldNameChanged();
00559:                            }
00560:
00561:                            public void removeUpdate(
00562:                                    javax.swing.event.DocumentEvent evt) {
00563:                                jTextFieldNameChanged();
00564:                            }
00565:                        });
00566:
00567:                this .jBarcodeExpressionAreaAppIdentifier.getDocument()
00568:                        .addDocumentListener(
00569:                                new javax.swing.event.DocumentListener() {
00570:                                    public void changedUpdate(
00571:                                            javax.swing.event.DocumentEvent evt) {
00572:                                        jTextFieldAppIdentifierChanged();
00573:                                    }
00574:
00575:                                    public void insertUpdate(
00576:                                            javax.swing.event.DocumentEvent evt) {
00577:                                        jTextFieldAppIdentifierChanged();
00578:                                    }
00579:
00580:                                    public void removeUpdate(
00581:                                            javax.swing.event.DocumentEvent evt) {
00582:                                        jTextFieldAppIdentifierChanged();
00583:                                    }
00584:                                });
00585:
00586:                this .jBarcodeExpressionArea.getDocument().addDocumentListener(
00587:                        new javax.swing.event.DocumentListener() {
00588:                            public void changedUpdate(
00589:                                    javax.swing.event.DocumentEvent evt) {
00590:                                BarcodeActionPerformed(null);
00591:                            }
00592:
00593:                            public void insertUpdate(
00594:                                    javax.swing.event.DocumentEvent evt) {
00595:                                BarcodeActionPerformed(null);
00596:                            }
00597:
00598:                            public void removeUpdate(
00599:                                    javax.swing.event.DocumentEvent evt) {
00600:                                BarcodeActionPerformed(null);
00601:                            }
00602:                        });
00603:
00604:                boxPanel = new BoxPanel();
00605:                boxPanel.addActionListener(new java.awt.event.ActionListener() {
00606:                    public void actionPerformed(java.awt.event.ActionEvent evt) {
00607:                        boxActionPerformed(evt);
00608:                    }
00609:                });
00610:
00611:                java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();
00612:                gridBagConstraints.gridx = 4;
00613:                gridBagConstraints.gridy = 2;
00614:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
00615:                gridBagConstraints.insets = new java.awt.Insets(2, 4, 2, 4);
00616:                gridBagConstraints.weightx = 1.0;
00617:                gridBagConstraints.weighty = 0.5;
00618:                gridBagConstraints.fill = gridBagConstraints.BOTH;
00619:                jPanelBorder.add(boxPanel, gridBagConstraints);
00620:
00621:                gridBagConstraints.insets = new java.awt.Insets(0, -1, -1, -1);
00622:                sheetPanel = new ReportElementSheetPanel();
00623:                MainFrame.getMainInstance().removeReportListener(sheetPanel);
00624:                MainFrame.getMainInstance().removeReportFrameActivatedListener(
00625:                        sheetPanel);
00626:                jPanelSheet.add(sheetPanel, gridBagConstraints);
00627:
00628:                javax.swing.JTextField editor = (javax.swing.JTextField) jComboBoxPattern
00629:                        .getEditor().getEditorComponent();
00630:                editor.addFocusListener(new java.awt.event.FocusAdapter() {
00631:                    public void focusLost(java.awt.event.FocusEvent evt) {
00632:                        jComboBoxPattern
00633:                                .setSelectedItem(((javax.swing.JTextField) jComboBoxPattern
00634:                                        .getEditor().getEditorComponent())
00635:                                        .getText());
00636:                    }
00637:                });
00638:
00639:                I18n
00640:                        .addOnLanguageChangedListener(new LanguageChangedListener() {
00641:                            public void languageChanged(LanguageChangedEvent evt) {
00642:                                applyI18n();
00643:                            }
00644:                        });
00645:
00646:                applyI18n();
00647:            }
00648:
00649:            public void boxActionPerformed(java.awt.event.ActionEvent evt) {
00650:                if (jrf == null || getElementSelection().size() == 0)
00651:                    return;
00652:
00653:                // Set the new value for all selected elements...
00654:                Enumeration e = getElementSelection().elements();
00655:                while (e.hasMoreElements()) {
00656:                    ReportElement element = (ReportElement) e.nextElement();
00657:                    Box box = null;
00658:
00659:                    box = ((BoxElement) element).getBox();
00660:
00661:                    if (box != null
00662:                            && evt.getActionCommand().equals("LeftPadding")) {
00663:                        box.setLeftPadding(boxPanel.getBox().getLeftPadding());
00664:                    } else if (box != null
00665:                            && evt.getActionCommand().equals("RightPadding")) {
00666:                        box
00667:                                .setRightPadding(boxPanel.getBox()
00668:                                        .getRightPadding());
00669:                    } else if (box != null
00670:                            && evt.getActionCommand().equals("TopPadding")) {
00671:                        box.setTopPadding(boxPanel.getBox().getTopPadding());
00672:                    } else if (box != null
00673:                            && evt.getActionCommand().equals("BottomPadding")) {
00674:                        box.setBottomPadding(boxPanel.getBox()
00675:                                .getBottomPadding());
00676:                    } else if (box != null
00677:                            && evt.getActionCommand().equals("LeftBorder")) {
00678:                        box.setLeftBorder(boxPanel.getBox().getLeftBorder());
00679:                    } else if (box != null
00680:                            && evt.getActionCommand().equals("RightBorder")) {
00681:                        box.setRightBorder(boxPanel.getBox().getRightBorder());
00682:                    } else if (box != null
00683:                            && evt.getActionCommand().equals("TopBorder")) {
00684:                        box.setTopBorder(boxPanel.getBox().getTopBorder());
00685:                    } else if (box != null
00686:                            && evt.getActionCommand().equals("BottomBorder")) {
00687:                        box
00688:                                .setBottomBorder(boxPanel.getBox()
00689:                                        .getBottomBorder());
00690:                    } else if (box != null
00691:                            && evt.getActionCommand().equals("LeftBorderColor")) {
00692:                        box.setLeftBorderColor(boxPanel.getBox()
00693:                                .getLeftBorderColor());
00694:                    } else if (box != null
00695:                            && evt.getActionCommand()
00696:                                    .equals("RightBorderColor")) {
00697:                        box.setRightBorderColor(boxPanel.getBox()
00698:                                .getRightBorderColor());
00699:                    } else if (box != null
00700:                            && evt.getActionCommand().equals("TopBorderColor")) {
00701:                        box.setTopBorderColor(boxPanel.getBox()
00702:                                .getTopBorderColor());
00703:                    } else if (box != null
00704:                            && evt.getActionCommand().equals(
00705:                                    "BottomBorderColor")) {
00706:                        box.setBottomBorderColor(boxPanel.getBox()
00707:                                .getBottomBorderColor());
00708:                    } else if (box != null
00709:                            && evt.getActionCommand().equals("pen")) {
00710:                        box.setPen(boxPanel.getBox().getPen());
00711:                        box.setTopPen(boxPanel.getBox().getTopPen());
00712:                        box.setLeftPen(boxPanel.getBox().getLeftPen());
00713:                        box.setBottomPen(boxPanel.getBox().getBottomPen());
00714:                        box.setRightPen(boxPanel.getBox().getRightPen());
00715:                    }
00716:                }
00717:                repaintEditor();
00718:                ;
00719:                jrf
00720:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
00721:                                jrf, getElementSelection(),
00722:                                ReportElementChangedEvent.CHANGED));
00723:
00724:            }
00725:
00726:            public void jTableSubreportParametersListSelectionValueChanged(
00727:                    javax.swing.event.ListSelectionEvent e) {
00728:                if (this .jTableSubreportParameters.getSelectedRowCount() > 0) {
00729:                    this .jButtonModParameter.setEnabled(true);
00730:                    this .jButtonRemParameter.setEnabled(true);
00731:                } else {
00732:                    this .jButtonModParameter.setEnabled(false);
00733:                    this .jButtonRemParameter.setEnabled(false);
00734:                }
00735:            }
00736:
00737:            public void jTableSubreportReturnValuesListSelectionValueChanged(
00738:                    javax.swing.event.ListSelectionEvent e) {
00739:                if (this .jTableSubreportReturnValues.getSelectedRowCount() > 0) {
00740:                    this .jButtonModReturnValue.setEnabled(true);
00741:                    this .jButtonRemReturnValue.setEnabled(true);
00742:                } else {
00743:                    this .jButtonModReturnValue.setEnabled(false);
00744:                    this .jButtonRemReturnValue.setEnabled(false);
00745:                }
00746:            }
00747:
00748:            public void jTableCrosstabParametersListSelectionValueChanged(
00749:                    javax.swing.event.ListSelectionEvent e) {
00750:                if (this .jTableCrosstabParameters.getSelectedRowCount() > 0) {
00751:                    this .jButtonModCrosstabParameter.setEnabled(true);
00752:                    this .jButtonRemCrosstabParameter.setEnabled(true);
00753:                } else {
00754:                    this .jButtonModCrosstabParameter.setEnabled(false);
00755:                    this .jButtonRemCrosstabParameter.setEnabled(false);
00756:                }
00757:            }
00758:
00759:            public void jTableLinkParametersListSelectionValueChanged(
00760:                    javax.swing.event.ListSelectionEvent e) {
00761:                if (this .jTableLinkParameters.getSelectedRowCount() > 0) {
00762:                    this .jButtonModLinkParameter.setEnabled(true);
00763:                    this .jButtonRemLinkParameter.setEnabled(true);
00764:                } else {
00765:                    this .jButtonModLinkParameter.setEnabled(false);
00766:                    this .jButtonRemLinkParameter.setEnabled(false);
00767:                }
00768:            }
00769:
00770:            /** This method is called from within the constructor to
00771:             * initialize the form.
00772:             * WARNING: Do NOT modify this code. The content of this method is
00773:             * always regenerated by the Form Editor.
00774:             */
00775:            // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
00776:            private void initComponents() {
00777:                java.awt.GridBagConstraints gridBagConstraints;
00778:
00779:                buttonGroupCharts = new javax.swing.ButtonGroup();
00780:                jTabbedPane = new javax.swing.JTabbedPane();
00781:                jPanelCommon = new javax.swing.JPanel();
00782:                jPanel3 = new javax.swing.JPanel();
00783:                jLabel5 = new javax.swing.JLabel();
00784:                jNumberFieldLeft = new it.businesslogic.ireport.gui.JNumberField();
00785:                jLabel4 = new javax.swing.JLabel();
00786:                jLabel7 = new javax.swing.JLabel();
00787:                jComboBoxBand = new javax.swing.JComboBox();
00788:                jLabel1 = new javax.swing.JLabel();
00789:                jNumberFieldWidth = new it.businesslogic.ireport.gui.JNumberField();
00790:                jNumberFieldTop = new it.businesslogic.ireport.gui.JNumberField();
00791:                jLabel2 = new javax.swing.JLabel();
00792:                jLabel6 = new javax.swing.JLabel();
00793:                jNumberFieldHeight = new it.businesslogic.ireport.gui.JNumberField();
00794:                jButtonBackground = new javax.swing.JButton();
00795:                jButtonForeground = new javax.swing.JButton();
00796:                jLabel3 = new javax.swing.JLabel();
00797:                jPanel4 = new javax.swing.JPanel();
00798:                jCheckBoxTransparent = new javax.swing.JCheckBox();
00799:                jCheckBoxRemoveLineWhenBlank = new javax.swing.JCheckBox();
00800:                jCheckBoxPrintInFirstWholeBand = new javax.swing.JCheckBox();
00801:                jCheckBoxPrintWhenDetailOverflows = new javax.swing.JCheckBox();
00802:                jCheckBoxPrintRepeatedValues = new javax.swing.JCheckBox();
00803:                jPanel5 = new javax.swing.JPanel();
00804:                jLabel8 = new javax.swing.JLabel();
00805:                jComboBoxPositionType = new javax.swing.JComboBox();
00806:                jLabel9 = new javax.swing.JLabel();
00807:                jComboBoxGroups = new javax.swing.JComboBox();
00808:                jLabel46 = new javax.swing.JLabel();
00809:                jTextFieldName = new javax.swing.JTextField();
00810:                jPanel6 = new javax.swing.JPanel();
00811:                jLabel10 = new javax.swing.JLabel();
00812:                jRTextExpressionAreaPrintWhenExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00813:                jPanel11 = new javax.swing.JPanel();
00814:                jLabel12 = new javax.swing.JLabel();
00815:                jComboBoxStretchType = new javax.swing.JComboBox();
00816:                jPanel17 = new javax.swing.JPanel();
00817:                jLabelStyle = new javax.swing.JLabel();
00818:                jComboBoxStyle = new javax.swing.JComboBox();
00819:                jPanelGraphicselement = new javax.swing.JPanel();
00820:                jComboBoxFill = new javax.swing.JComboBox();
00821:                jLabel11 = new javax.swing.JLabel();
00822:                jComboBoxPen = new javax.swing.JComboBox();
00823:                jLabel13 = new javax.swing.JLabel();
00824:                jSeparator7 = new javax.swing.JSeparator();
00825:                jPanelRectangle = new javax.swing.JPanel();
00826:                jPanel1 = new javax.swing.JPanel();
00827:                jLabel14 = new javax.swing.JLabel();
00828:                jNumberFieldRadius = new it.businesslogic.ireport.gui.JNumberField();
00829:                jPanelLine = new javax.swing.JPanel();
00830:                jLabel15 = new javax.swing.JLabel();
00831:                jComboBoxLineDirection = new javax.swing.JComboBox();
00832:                jPanelImage = new javax.swing.JPanel();
00833:                jRTextExpressionAreaImageExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00834:                jLabel16 = new javax.swing.JLabel();
00835:                jButtonFindImage = new javax.swing.JButton();
00836:                jLabel17 = new javax.swing.JLabel();
00837:                jComboBoxImageExpressionClass = new javax.swing.JComboBox();
00838:                jLabel18 = new javax.swing.JLabel();
00839:                jComboBoxScale = new javax.swing.JComboBox();
00840:                jCheckBoxImageCache = new javax.swing.JCheckBox();
00841:                jLabel19 = new javax.swing.JLabel();
00842:                jComboBoxVerticalAlignment = new javax.swing.JComboBox();
00843:                jLabel20 = new javax.swing.JLabel();
00844:                jComboBoxHorizontalAlignment = new javax.swing.JComboBox();
00845:                jLabel21 = new javax.swing.JLabel();
00846:                jComboBoxEvaluationTime = new javax.swing.JComboBox();
00847:                jLabel22 = new javax.swing.JLabel();
00848:                jComboBoxImageGroup = new javax.swing.JComboBox();
00849:                jSeparator1 = new javax.swing.JSeparator();
00850:                jCheckBoxImageIsLazy = new javax.swing.JCheckBox();
00851:                jLabel34 = new javax.swing.JLabel();
00852:                jComboBoxImageOnError = new javax.swing.JComboBox();
00853:                jPanelText = new javax.swing.JPanel();
00854:                jScrollPane1 = new javax.swing.JScrollPane();
00855:                jTextAreaText = new javax.swing.JTextArea();
00856:                jPanelFont = new javax.swing.JPanel();
00857:                jPanel7 = new javax.swing.JPanel();
00858:                jLabel23 = new javax.swing.JLabel();
00859:                jComboBoxReportFont = new javax.swing.JComboBox();
00860:                jLabel24 = new javax.swing.JLabel();
00861:                jComboBoxFontName = new javax.swing.JComboBox();
00862:                jNumberComboBoxSize = new it.businesslogic.ireport.gui.JNumberComboBox();
00863:                jLabel27 = new javax.swing.JLabel();
00864:                jLabel25 = new javax.swing.JLabel();
00865:                jComboBoxPDFFontName = new javax.swing.JComboBox();
00866:                jPanel8 = new javax.swing.JPanel();
00867:                jPanel12 = new javax.swing.JPanel();
00868:                jCheckBoxBold = new javax.swing.JCheckBox();
00869:                jCheckBoxItalic = new javax.swing.JCheckBox();
00870:                jCheckBoxUnderline = new javax.swing.JCheckBox();
00871:                jCheckBoxStrokeTrough = new javax.swing.JCheckBox();
00872:                jCheckBoxStyledText = new javax.swing.JCheckBox();
00873:                jCheckBoxPDFEmbedded = new javax.swing.JCheckBox();
00874:                jLabelMarkup = new javax.swing.JLabel();
00875:                jComboBoxMarkup = new javax.swing.JComboBox();
00876:                jSeparator2 = new javax.swing.JSeparator();
00877:                jLabel32 = new javax.swing.JLabel();
00878:                jComboBoxPdfEncoding = new javax.swing.JComboBox();
00879:                jComboBoxHAlign = new javax.swing.JComboBox();
00880:                jComboBoxVAlign = new javax.swing.JComboBox();
00881:                jLabel30 = new javax.swing.JLabel();
00882:                jLabel31 = new javax.swing.JLabel();
00883:                jComboBoxLineSpacing = new javax.swing.JComboBox();
00884:                jLabel29 = new javax.swing.JLabel();
00885:                jLabel49 = new javax.swing.JLabel();
00886:                jComboBoxRotation = new javax.swing.JComboBox();
00887:                jSeparator4 = new javax.swing.JSeparator();
00888:                jSeparator5 = new javax.swing.JSeparator();
00889:                jPanelTextField = new javax.swing.JPanel();
00890:                jLabel28 = new javax.swing.JLabel();
00891:                jComboBoxTextFieldExpressionClass = new javax.swing.JComboBox();
00892:                jLabel37 = new javax.swing.JLabel();
00893:                jComboBoxTextFieldEvaluationTime = new javax.swing.JComboBox();
00894:                jLabel38 = new javax.swing.JLabel();
00895:                jComboBoxTextFieldGroup = new javax.swing.JComboBox();
00896:                jCheckBoxStretchWithOverflow = new javax.swing.JCheckBox();
00897:                jCheckBoxBlankWhenNull = new javax.swing.JCheckBox();
00898:                jLabel39 = new javax.swing.JLabel();
00899:                jLabel40 = new javax.swing.JLabel();
00900:                jRTextExpressionAreaTextFieldExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00901:                jPanel2 = new javax.swing.JPanel();
00902:                jComboBoxPattern = new javax.swing.JComboBox();
00903:                jButtonCreatePattern = new javax.swing.JButton();
00904:                jPanelSubreport1 = new javax.swing.JPanel();
00905:                jLabel41 = new javax.swing.JLabel();
00906:                jLabel42 = new javax.swing.JLabel();
00907:                jRTextExpressionAreaSubreportMapExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00908:                jComboBoxSubreportConnectionType = new javax.swing.JComboBox();
00909:                jRTextExpressionAreaTextConnectionExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00910:                jCheckBoxSubreportCache = new javax.swing.JCheckBox();
00911:                jPanelSubreport2 = new javax.swing.JPanel();
00912:                jLabel26 = new javax.swing.JLabel();
00913:                jRTextExpressionAreaSubreportExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00914:                jLabel33 = new javax.swing.JLabel();
00915:                jComboBoxSubreportExpressionClass = new javax.swing.JComboBox();
00916:                jTabbedPane1 = new javax.swing.JTabbedPane();
00917:                jPanel16 = new javax.swing.JPanel();
00918:                jScrollPane2 = new javax.swing.JScrollPane();
00919:                jTableSubreportParameters = new javax.swing.JTable();
00920:                jPanel10 = new javax.swing.JPanel();
00921:                jButtonAddParameter = new javax.swing.JButton();
00922:                jButtonModParameter = new javax.swing.JButton();
00923:                jButtonRemParameter = new javax.swing.JButton();
00924:                jButtonCopyParamsFromMaster = new javax.swing.JButton();
00925:                jPanel13 = new javax.swing.JPanel();
00926:                jPanelSubreportReturnValues = new javax.swing.JPanel();
00927:                jScrollPane3 = new javax.swing.JScrollPane();
00928:                jTableSubreportReturnValues = new javax.swing.JTable();
00929:                jPanel14 = new javax.swing.JPanel();
00930:                jButtonAddReturnValue = new javax.swing.JButton();
00931:                jButtonModReturnValue = new javax.swing.JButton();
00932:                jButtonRemReturnValue = new javax.swing.JButton();
00933:                jPanel15 = new javax.swing.JPanel();
00934:                jPanelHyperLink = new javax.swing.JPanel();
00935:                jRTextExpressionAreaAnchorName = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00936:                jLabel35 = new javax.swing.JLabel();
00937:                jSeparator3 = new javax.swing.JSeparator();
00938:                jComboBoxLinkType = new javax.swing.JComboBox();
00939:                jLabel36 = new javax.swing.JLabel();
00940:                jLabelTarget = new javax.swing.JLabel();
00941:                jComboBoxLinkTarget = new javax.swing.JComboBox();
00942:                jLabelTarget1 = new javax.swing.JLabel();
00943:                jSpinnerBookmarkLevel = new javax.swing.JSpinner();
00944:                jPanel24 = new javax.swing.JPanel();
00945:                jTabbedPane2 = new javax.swing.JTabbedPane();
00946:                jPanelReference = new javax.swing.JPanel();
00947:                jRTextExpressionAreaReference = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00948:                jLabelReference = new javax.swing.JLabel();
00949:                jPanelAnchor = new javax.swing.JPanel();
00950:                jRTextExpressionAreaAnchor = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00951:                jLabelAnchor = new javax.swing.JLabel();
00952:                jPanelPage = new javax.swing.JPanel();
00953:                jLabelPage = new javax.swing.JLabel();
00954:                jRTextExpressionAreaPage = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00955:                jPanelLinkParams = new javax.swing.JPanel();
00956:                jScrollPane5 = new javax.swing.JScrollPane();
00957:                jTableLinkParameters = new javax.swing.JTable();
00958:                jPanel25 = new javax.swing.JPanel();
00959:                jButtonAddLinkParameter = new javax.swing.JButton();
00960:                jButtonModLinkParameter = new javax.swing.JButton();
00961:                jButtonRemLinkParameter = new javax.swing.JButton();
00962:                jPanelTooltip = new javax.swing.JPanel();
00963:                jLabelTooltip = new javax.swing.JLabel();
00964:                jRTextExpressionAreaTooltip = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00965:                jPanelBarcode = new javax.swing.JPanel();
00966:                jLabel47 = new javax.swing.JLabel();
00967:                jComboBoxBarcodeType = new javax.swing.JComboBox();
00968:                jBarcodeExpressionArea = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00969:                jLabel48 = new javax.swing.JLabel();
00970:                jSeparator8 = new javax.swing.JSeparator();
00971:                jComboBoxBarcodeGroup = new javax.swing.JComboBox();
00972:                jLabel43 = new javax.swing.JLabel();
00973:                jComboBoxEvaluationTimeBarcode = new javax.swing.JComboBox();
00974:                jLabel50 = new javax.swing.JLabel();
00975:                jLabel54 = new javax.swing.JLabel();
00976:                jLabel55 = new javax.swing.JLabel();
00977:                jComboBoxImageOnError1 = new javax.swing.JComboBox();
00978:                jComboBoxScale1 = new javax.swing.JComboBox();
00979:                jLabel56 = new javax.swing.JLabel();
00980:                jLabel57 = new javax.swing.JLabel();
00981:                jComboBoxVerticalAlignment1 = new javax.swing.JComboBox();
00982:                jComboBoxHorizontalAlignment1 = new javax.swing.JComboBox();
00983:                jSeparator10 = new javax.swing.JSeparator();
00984:                jPanel22 = new javax.swing.JPanel();
00985:                jLabel58 = new javax.swing.JLabel();
00986:                jLabel60 = new javax.swing.JLabel();
00987:                jLabel61 = new javax.swing.JLabel();
00988:                jNumberFieldBCWidth = new it.businesslogic.ireport.gui.JNumberField();
00989:                jNumberFieldBCHeight = new it.businesslogic.ireport.gui.JNumberField();
00990:                jBarcodeExpressionAreaAppIdentifier = new it.businesslogic.ireport.gui.JRTextExpressionArea();
00991:                jLabel59 = new javax.swing.JLabel();
00992:                jPanel23 = new javax.swing.JPanel();
00993:                jCheckBoxBarcodeCheckSum = new javax.swing.JCheckBox();
00994:                jCheckBoxBarcodeShowText = new javax.swing.JCheckBox();
00995:                jPanelChart = new javax.swing.JPanel();
00996:                jSeparator6 = new javax.swing.JSeparator();
00997:                jSeparator9 = new javax.swing.JSeparator();
00998:                jLabel44 = new javax.swing.JLabel();
00999:                jComboBoxEvaluationTime1 = new javax.swing.JComboBox();
01000:                jLabel45 = new javax.swing.JLabel();
01001:                jComboBoxImageGroup1 = new javax.swing.JComboBox();
01002:                jPanel9 = new javax.swing.JPanel();
01003:                jButton1 = new javax.swing.JButton();
01004:                jPanelBorder = new javax.swing.JPanel();
01005:                jPanelSheet = new javax.swing.JPanel();
01006:                jPanelCrosstab = new javax.swing.JPanel();
01007:                jLabel51 = new javax.swing.JLabel();
01008:                jRTextExpressionAreaCrosstabParametersMapExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
01009:                jPanel18 = new javax.swing.JPanel();
01010:                jScrollPane4 = new javax.swing.JScrollPane();
01011:                jTableCrosstabParameters = new javax.swing.JTable();
01012:                jPanel19 = new javax.swing.JPanel();
01013:                jButtonAddCrosstabParameter = new javax.swing.JButton();
01014:                jButtonModCrosstabParameter = new javax.swing.JButton();
01015:                jButtonRemCrosstabParameter = new javax.swing.JButton();
01016:                jPanel20 = new javax.swing.JPanel();
01017:                jLabel52 = new javax.swing.JLabel();
01018:                jCheckBoxRepeatColumnHeaders = new javax.swing.JCheckBox();
01019:                jCheckBoxRepeatRowHeaders = new javax.swing.JCheckBox();
01020:                jButton2 = new javax.swing.JButton();
01021:                jPanel21 = new javax.swing.JPanel();
01022:                jNumberFieldColumnBreakOffset = new it.businesslogic.ireport.gui.JNumberField();
01023:                jLabel53 = new javax.swing.JLabel();
01024:
01025:                addWindowListener(new java.awt.event.WindowAdapter() {
01026:                    public void windowClosing(java.awt.event.WindowEvent evt) {
01027:                        closeDialog(evt);
01028:                    }
01029:                });
01030:
01031:                jTabbedPane.setOpaque(true);
01032:                jTabbedPane.setPreferredSize(new java.awt.Dimension(312, 48));
01033:                jTabbedPane
01034:                        .addChangeListener(new javax.swing.event.ChangeListener() {
01035:                            public void stateChanged(
01036:                                    javax.swing.event.ChangeEvent evt) {
01037:                                jTabbedPaneStateChanged(evt);
01038:                            }
01039:                        });
01040:
01041:                jPanelCommon.setLayout(new java.awt.GridBagLayout());
01042:
01043:                jPanel3.setMinimumSize(new java.awt.Dimension(300, 74));
01044:                jPanel3.setPreferredSize(new java.awt.Dimension(300, 74));
01045:                jPanel3.setLayout(new java.awt.GridBagLayout());
01046:
01047:                jLabel5
01048:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01049:                jLabel5.setText("Height ");
01050:                gridBagConstraints = new java.awt.GridBagConstraints();
01051:                gridBagConstraints.gridx = 2;
01052:                gridBagConstraints.gridy = 2;
01053:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01054:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01055:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
01056:                jPanel3.add(jLabel5, gridBagConstraints);
01057:
01058:                jNumberFieldLeft
01059:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
01060:                jNumberFieldLeft.setText("0");
01061:                try {
01062:                    jNumberFieldLeft.setDecimals(0);
01063:                } catch (java.beans.PropertyVetoException e1) {
01064:                    e1.printStackTrace();
01065:                }
01066:                try {
01067:                    jNumberFieldLeft.setInteger(true);
01068:                } catch (java.beans.PropertyVetoException e1) {
01069:                    e1.printStackTrace();
01070:                }
01071:                jNumberFieldLeft.setMinimumSize(new java.awt.Dimension(45, 20));
01072:                jNumberFieldLeft
01073:                        .setPreferredSize(new java.awt.Dimension(45, 20));
01074:                jNumberFieldLeft
01075:                        .addActionListener(new java.awt.event.ActionListener() {
01076:                            public void actionPerformed(
01077:                                    java.awt.event.ActionEvent evt) {
01078:                                jNumberFieldLeftActionPerformed(evt);
01079:                            }
01080:                        });
01081:                gridBagConstraints = new java.awt.GridBagConstraints();
01082:                gridBagConstraints.gridx = 1;
01083:                gridBagConstraints.gridy = 2;
01084:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01085:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 2, 0);
01086:                jPanel3.add(jNumberFieldLeft, gridBagConstraints);
01087:
01088:                jLabel4
01089:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01090:                jLabel4.setText("Width");
01091:                gridBagConstraints = new java.awt.GridBagConstraints();
01092:                gridBagConstraints.gridx = 2;
01093:                gridBagConstraints.gridy = 1;
01094:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01095:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01096:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
01097:                jPanel3.add(jLabel4, gridBagConstraints);
01098:
01099:                jLabel7
01100:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01101:                jLabel7.setText("Background ");
01102:                gridBagConstraints = new java.awt.GridBagConstraints();
01103:                gridBagConstraints.gridx = 4;
01104:                gridBagConstraints.gridy = 2;
01105:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01106:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
01107:                jPanel3.add(jLabel7, gridBagConstraints);
01108:
01109:                jComboBoxBand
01110:                        .addActionListener(new java.awt.event.ActionListener() {
01111:                            public void actionPerformed(
01112:                                    java.awt.event.ActionEvent evt) {
01113:                                jComboBoxBandActionPerformed(evt);
01114:                            }
01115:                        });
01116:                gridBagConstraints = new java.awt.GridBagConstraints();
01117:                gridBagConstraints.gridx = 1;
01118:                gridBagConstraints.gridy = 0;
01119:                gridBagConstraints.gridwidth = 5;
01120:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01121:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01122:                gridBagConstraints.weightx = 1.0;
01123:                gridBagConstraints.insets = new java.awt.Insets(6, 5, 0, 6);
01124:                jPanel3.add(jComboBoxBand, gridBagConstraints);
01125:
01126:                jLabel1
01127:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01128:                jLabel1.setText("Band ");
01129:                gridBagConstraints = new java.awt.GridBagConstraints();
01130:                gridBagConstraints.gridx = 0;
01131:                gridBagConstraints.gridy = 0;
01132:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01133:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01134:                gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
01135:                jPanel3.add(jLabel1, gridBagConstraints);
01136:
01137:                jNumberFieldWidth
01138:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
01139:                jNumberFieldWidth.setText("0");
01140:                try {
01141:                    jNumberFieldWidth.setDecimals(0);
01142:                } catch (java.beans.PropertyVetoException e1) {
01143:                    e1.printStackTrace();
01144:                }
01145:                try {
01146:                    jNumberFieldWidth.setInteger(true);
01147:                } catch (java.beans.PropertyVetoException e1) {
01148:                    e1.printStackTrace();
01149:                }
01150:                jNumberFieldWidth
01151:                        .setMinimumSize(new java.awt.Dimension(45, 20));
01152:                jNumberFieldWidth.setPreferredSize(new java.awt.Dimension(45,
01153:                        20));
01154:                jNumberFieldWidth
01155:                        .addActionListener(new java.awt.event.ActionListener() {
01156:                            public void actionPerformed(
01157:                                    java.awt.event.ActionEvent evt) {
01158:                                jNumberFieldWidthActionPerformed(evt);
01159:                            }
01160:                        });
01161:                gridBagConstraints = new java.awt.GridBagConstraints();
01162:                gridBagConstraints.gridx = 3;
01163:                gridBagConstraints.gridy = 1;
01164:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01165:                gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 0);
01166:                jPanel3.add(jNumberFieldWidth, gridBagConstraints);
01167:
01168:                jNumberFieldTop
01169:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
01170:                jNumberFieldTop.setText("0");
01171:                try {
01172:                    jNumberFieldTop.setDecimals(0);
01173:                } catch (java.beans.PropertyVetoException e1) {
01174:                    e1.printStackTrace();
01175:                }
01176:                try {
01177:                    jNumberFieldTop.setInteger(true);
01178:                } catch (java.beans.PropertyVetoException e1) {
01179:                    e1.printStackTrace();
01180:                }
01181:                jNumberFieldTop.setMinimumSize(new java.awt.Dimension(45, 20));
01182:                jNumberFieldTop
01183:                        .setPreferredSize(new java.awt.Dimension(45, 20));
01184:                jNumberFieldTop
01185:                        .addActionListener(new java.awt.event.ActionListener() {
01186:                            public void actionPerformed(
01187:                                    java.awt.event.ActionEvent evt) {
01188:                                jNumberFieldTopActionPerformed(evt);
01189:                            }
01190:                        });
01191:                gridBagConstraints = new java.awt.GridBagConstraints();
01192:                gridBagConstraints.gridx = 1;
01193:                gridBagConstraints.gridy = 1;
01194:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01195:                gridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 0);
01196:                jPanel3.add(jNumberFieldTop, gridBagConstraints);
01197:
01198:                jLabel2
01199:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01200:                jLabel2.setText("Top ");
01201:                gridBagConstraints = new java.awt.GridBagConstraints();
01202:                gridBagConstraints.gridx = 0;
01203:                gridBagConstraints.gridy = 1;
01204:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01205:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01206:                gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
01207:                jPanel3.add(jLabel2, gridBagConstraints);
01208:
01209:                jLabel6
01210:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01211:                jLabel6.setText("Foreground ");
01212:                gridBagConstraints = new java.awt.GridBagConstraints();
01213:                gridBagConstraints.gridx = 4;
01214:                gridBagConstraints.gridy = 1;
01215:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01216:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
01217:                jPanel3.add(jLabel6, gridBagConstraints);
01218:
01219:                jNumberFieldHeight
01220:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
01221:                jNumberFieldHeight.setText("0");
01222:                try {
01223:                    jNumberFieldHeight.setDecimals(0);
01224:                } catch (java.beans.PropertyVetoException e1) {
01225:                    e1.printStackTrace();
01226:                }
01227:                try {
01228:                    jNumberFieldHeight.setInteger(true);
01229:                } catch (java.beans.PropertyVetoException e1) {
01230:                    e1.printStackTrace();
01231:                }
01232:                jNumberFieldHeight
01233:                        .setMinimumSize(new java.awt.Dimension(45, 20));
01234:                jNumberFieldHeight.setPreferredSize(new java.awt.Dimension(45,
01235:                        20));
01236:                jNumberFieldHeight
01237:                        .addActionListener(new java.awt.event.ActionListener() {
01238:                            public void actionPerformed(
01239:                                    java.awt.event.ActionEvent evt) {
01240:                                jNumberFieldHeightActionPerformed(evt);
01241:                            }
01242:                        });
01243:                gridBagConstraints = new java.awt.GridBagConstraints();
01244:                gridBagConstraints.gridx = 3;
01245:                gridBagConstraints.gridy = 2;
01246:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01247:                jPanel3.add(jNumberFieldHeight, gridBagConstraints);
01248:
01249:                jButtonBackground.setBackground(new java.awt.Color(255, 255,
01250:                        255));
01251:                jButtonBackground
01252:                        .setMaximumSize(new java.awt.Dimension(45, 20));
01253:                jButtonBackground
01254:                        .setMinimumSize(new java.awt.Dimension(45, 20));
01255:                jButtonBackground.setPreferredSize(new java.awt.Dimension(45,
01256:                        20));
01257:                jButtonBackground
01258:                        .addActionListener(new java.awt.event.ActionListener() {
01259:                            public void actionPerformed(
01260:                                    java.awt.event.ActionEvent evt) {
01261:                                jButtonBackgroundActionPerformed(evt);
01262:                            }
01263:                        });
01264:                gridBagConstraints = new java.awt.GridBagConstraints();
01265:                gridBagConstraints.gridx = 5;
01266:                gridBagConstraints.gridy = 2;
01267:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01268:                jPanel3.add(jButtonBackground, gridBagConstraints);
01269:
01270:                jButtonForeground.setBackground(new java.awt.Color(0, 0, 0));
01271:                jButtonForeground
01272:                        .setMaximumSize(new java.awt.Dimension(45, 20));
01273:                jButtonForeground
01274:                        .setMinimumSize(new java.awt.Dimension(45, 20));
01275:                jButtonForeground.setPreferredSize(new java.awt.Dimension(45,
01276:                        20));
01277:                jButtonForeground
01278:                        .addActionListener(new java.awt.event.ActionListener() {
01279:                            public void actionPerformed(
01280:                                    java.awt.event.ActionEvent evt) {
01281:                                jButtonForegroundActionPerformed(evt);
01282:                            }
01283:                        });
01284:                gridBagConstraints = new java.awt.GridBagConstraints();
01285:                gridBagConstraints.gridx = 5;
01286:                gridBagConstraints.gridy = 1;
01287:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01288:                jPanel3.add(jButtonForeground, gridBagConstraints);
01289:
01290:                jLabel3
01291:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
01292:                jLabel3.setText("Left ");
01293:                gridBagConstraints = new java.awt.GridBagConstraints();
01294:                gridBagConstraints.gridx = 0;
01295:                gridBagConstraints.gridy = 2;
01296:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01297:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01298:                gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
01299:                jPanel3.add(jLabel3, gridBagConstraints);
01300:
01301:                gridBagConstraints = new java.awt.GridBagConstraints();
01302:                gridBagConstraints.gridx = 0;
01303:                gridBagConstraints.gridy = 0;
01304:                gridBagConstraints.gridwidth = 2;
01305:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01306:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 4, 6);
01307:                jPanelCommon.add(jPanel3, gridBagConstraints);
01308:
01309:                jPanel4.setMinimumSize(new java.awt.Dimension(170, 120));
01310:                jPanel4.setPreferredSize(new java.awt.Dimension(190, 120));
01311:                jPanel4.setLayout(new java.awt.GridBagLayout());
01312:
01313:                jCheckBoxTransparent.setText("Transparent");
01314:                jCheckBoxTransparent
01315:                        .addActionListener(new java.awt.event.ActionListener() {
01316:                            public void actionPerformed(
01317:                                    java.awt.event.ActionEvent evt) {
01318:                                jCheckBoxTransparentActionPerformed(evt);
01319:                            }
01320:                        });
01321:                gridBagConstraints = new java.awt.GridBagConstraints();
01322:                gridBagConstraints.gridx = 0;
01323:                gridBagConstraints.gridy = 0;
01324:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01325:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01326:                gridBagConstraints.weightx = 1.0;
01327:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
01328:                jPanel4.add(jCheckBoxTransparent, gridBagConstraints);
01329:
01330:                jCheckBoxRemoveLineWhenBlank.setText("Remove line when blank");
01331:                jCheckBoxRemoveLineWhenBlank
01332:                        .addActionListener(new java.awt.event.ActionListener() {
01333:                            public void actionPerformed(
01334:                                    java.awt.event.ActionEvent evt) {
01335:                                jCheckBoxRemoveLineWhenBlankActionPerformed(evt);
01336:                            }
01337:                        });
01338:                gridBagConstraints = new java.awt.GridBagConstraints();
01339:                gridBagConstraints.gridx = 0;
01340:                gridBagConstraints.gridy = 1;
01341:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01342:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01343:                gridBagConstraints.weightx = 1.0;
01344:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
01345:                jPanel4.add(jCheckBoxRemoveLineWhenBlank, gridBagConstraints);
01346:
01347:                jCheckBoxPrintInFirstWholeBand
01348:                        .setText("Print in first whole band");
01349:                jCheckBoxPrintInFirstWholeBand
01350:                        .addActionListener(new java.awt.event.ActionListener() {
01351:                            public void actionPerformed(
01352:                                    java.awt.event.ActionEvent evt) {
01353:                                jCheckBoxPrintInFirstWholeBandActionPerformed(evt);
01354:                            }
01355:                        });
01356:                gridBagConstraints = new java.awt.GridBagConstraints();
01357:                gridBagConstraints.gridx = 0;
01358:                gridBagConstraints.gridy = 2;
01359:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01360:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01361:                gridBagConstraints.weightx = 1.0;
01362:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
01363:                jPanel4.add(jCheckBoxPrintInFirstWholeBand, gridBagConstraints);
01364:
01365:                jCheckBoxPrintWhenDetailOverflows
01366:                        .setText("Print when detail overflows");
01367:                jCheckBoxPrintWhenDetailOverflows
01368:                        .addActionListener(new java.awt.event.ActionListener() {
01369:                            public void actionPerformed(
01370:                                    java.awt.event.ActionEvent evt) {
01371:                                jCheckBoxPrintWhenDetailOverflowsActionPerformed(evt);
01372:                            }
01373:                        });
01374:                gridBagConstraints = new java.awt.GridBagConstraints();
01375:                gridBagConstraints.gridx = 0;
01376:                gridBagConstraints.gridy = 3;
01377:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01378:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01379:                gridBagConstraints.weightx = 1.0;
01380:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
01381:                jPanel4.add(jCheckBoxPrintWhenDetailOverflows,
01382:                        gridBagConstraints);
01383:
01384:                jCheckBoxPrintRepeatedValues.setText("Print repeated values");
01385:                jCheckBoxPrintRepeatedValues
01386:                        .addActionListener(new java.awt.event.ActionListener() {
01387:                            public void actionPerformed(
01388:                                    java.awt.event.ActionEvent evt) {
01389:                                jCheckBoxPrintRepeatedValuesActionPerformed(evt);
01390:                            }
01391:                        });
01392:                gridBagConstraints = new java.awt.GridBagConstraints();
01393:                gridBagConstraints.gridx = 0;
01394:                gridBagConstraints.gridy = 4;
01395:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01396:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01397:                gridBagConstraints.weightx = 1.0;
01398:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
01399:                jPanel4.add(jCheckBoxPrintRepeatedValues, gridBagConstraints);
01400:
01401:                gridBagConstraints = new java.awt.GridBagConstraints();
01402:                gridBagConstraints.gridx = 0;
01403:                gridBagConstraints.gridy = 1;
01404:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01405:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01406:                gridBagConstraints.insets = new java.awt.Insets(3, 6, 0, 0);
01407:                jPanelCommon.add(jPanel4, gridBagConstraints);
01408:
01409:                jPanel5.setMinimumSize(new java.awt.Dimension(150, 120));
01410:                jPanel5.setPreferredSize(new java.awt.Dimension(150, 120));
01411:                jPanel5.setLayout(new java.awt.GridBagLayout());
01412:
01413:                jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
01414:                jLabel8.setText("Position type");
01415:                gridBagConstraints = new java.awt.GridBagConstraints();
01416:                gridBagConstraints.gridx = 0;
01417:                gridBagConstraints.gridy = 0;
01418:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01419:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01420:                gridBagConstraints.weightx = 1.0;
01421:                jPanel5.add(jLabel8, gridBagConstraints);
01422:
01423:                jComboBoxPositionType
01424:                        .addActionListener(new java.awt.event.ActionListener() {
01425:                            public void actionPerformed(
01426:                                    java.awt.event.ActionEvent evt) {
01427:                                jComboBoxPositionTypeActionPerformed(evt);
01428:                            }
01429:                        });
01430:                gridBagConstraints = new java.awt.GridBagConstraints();
01431:                gridBagConstraints.gridx = 0;
01432:                gridBagConstraints.gridy = 1;
01433:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01434:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01435:                gridBagConstraints.weightx = 1.0;
01436:                jPanel5.add(jComboBoxPositionType, gridBagConstraints);
01437:
01438:                jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
01439:                jLabel9.setText("Print when group changes");
01440:                gridBagConstraints = new java.awt.GridBagConstraints();
01441:                gridBagConstraints.gridx = 0;
01442:                gridBagConstraints.gridy = 2;
01443:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01444:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01445:                gridBagConstraints.weightx = 1.0;
01446:                jPanel5.add(jLabel9, gridBagConstraints);
01447:
01448:                jComboBoxGroups
01449:                        .addActionListener(new java.awt.event.ActionListener() {
01450:                            public void actionPerformed(
01451:                                    java.awt.event.ActionEvent evt) {
01452:                                jComboBoxGroupsActionPerformed(evt);
01453:                            }
01454:                        });
01455:                gridBagConstraints = new java.awt.GridBagConstraints();
01456:                gridBagConstraints.gridx = 0;
01457:                gridBagConstraints.gridy = 3;
01458:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01459:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01460:                gridBagConstraints.weightx = 1.0;
01461:                jPanel5.add(jComboBoxGroups, gridBagConstraints);
01462:
01463:                jLabel46.setText("Key");
01464:                gridBagConstraints = new java.awt.GridBagConstraints();
01465:                gridBagConstraints.gridx = 0;
01466:                gridBagConstraints.gridy = 4;
01467:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01468:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01469:                gridBagConstraints.weightx = 1.0;
01470:                jPanel5.add(jLabel46, gridBagConstraints);
01471:                gridBagConstraints = new java.awt.GridBagConstraints();
01472:                gridBagConstraints.gridx = 0;
01473:                gridBagConstraints.gridy = 5;
01474:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01475:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01476:                gridBagConstraints.weightx = 1.0;
01477:                jPanel5.add(jTextFieldName, gridBagConstraints);
01478:
01479:                gridBagConstraints = new java.awt.GridBagConstraints();
01480:                gridBagConstraints.gridx = 1;
01481:                gridBagConstraints.gridy = 1;
01482:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01483:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01484:                gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 4);
01485:                jPanelCommon.add(jPanel5, gridBagConstraints);
01486:
01487:                jPanel6.setMinimumSize(new java.awt.Dimension(300, 40));
01488:                jPanel6.setPreferredSize(new java.awt.Dimension(300, 40));
01489:                jPanel6.setLayout(new java.awt.GridBagLayout());
01490:
01491:                jLabel10
01492:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
01493:                jLabel10.setText("Print when expression");
01494:                gridBagConstraints = new java.awt.GridBagConstraints();
01495:                gridBagConstraints.gridx = 0;
01496:                gridBagConstraints.gridy = 0;
01497:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01498:                jPanel6.add(jLabel10, gridBagConstraints);
01499:
01500:                jRTextExpressionAreaPrintWhenExpression
01501:                        .setBorder(javax.swing.BorderFactory
01502:                                .createEtchedBorder());
01503:                jRTextExpressionAreaPrintWhenExpression.setElectricScroll(0);
01504:                jRTextExpressionAreaPrintWhenExpression
01505:                        .setMinimumSize(new java.awt.Dimension(10, 10));
01506:                jRTextExpressionAreaPrintWhenExpression
01507:                        .setPreferredSize(new java.awt.Dimension(10, 10));
01508:                jRTextExpressionAreaPrintWhenExpression
01509:                        .addInputMethodListener(new java.awt.event.InputMethodListener() {
01510:                            public void caretPositionChanged(
01511:                                    java.awt.event.InputMethodEvent evt) {
01512:                            }
01513:
01514:                            public void inputMethodTextChanged(
01515:                                    java.awt.event.InputMethodEvent evt) {
01516:                                jRTextExpressionAreaPrintWhenExpressionInputMethodTextChanged(evt);
01517:                            }
01518:                        });
01519:                gridBagConstraints = new java.awt.GridBagConstraints();
01520:                gridBagConstraints.gridx = 0;
01521:                gridBagConstraints.gridy = 1;
01522:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
01523:                gridBagConstraints.weightx = 1.0;
01524:                gridBagConstraints.weighty = 1.0;
01525:                jPanel6.add(jRTextExpressionAreaPrintWhenExpression,
01526:                        gridBagConstraints);
01527:
01528:                gridBagConstraints = new java.awt.GridBagConstraints();
01529:                gridBagConstraints.gridx = 0;
01530:                gridBagConstraints.gridy = 3;
01531:                gridBagConstraints.gridwidth = 2;
01532:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
01533:                gridBagConstraints.weightx = 1.0;
01534:                gridBagConstraints.weighty = 1.0;
01535:                gridBagConstraints.insets = new java.awt.Insets(3, 6, 6, 6);
01536:                jPanelCommon.add(jPanel6, gridBagConstraints);
01537:
01538:                jPanel11.setMinimumSize(new java.awt.Dimension(170, 46));
01539:                jPanel11.setPreferredSize(new java.awt.Dimension(170, 46));
01540:                jPanel11.setLayout(new java.awt.GridBagLayout());
01541:
01542:                jLabel12.setText("Stretch Type");
01543:                gridBagConstraints = new java.awt.GridBagConstraints();
01544:                gridBagConstraints.gridx = 0;
01545:                gridBagConstraints.gridy = 2;
01546:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01547:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01548:                gridBagConstraints.weightx = 1.0;
01549:                jPanel11.add(jLabel12, gridBagConstraints);
01550:
01551:                jComboBoxStretchType.setMinimumSize(new java.awt.Dimension(100,
01552:                        20));
01553:                jComboBoxStretchType.setPreferredSize(new java.awt.Dimension(
01554:                        120, 20));
01555:                jComboBoxStretchType
01556:                        .addActionListener(new java.awt.event.ActionListener() {
01557:                            public void actionPerformed(
01558:                                    java.awt.event.ActionEvent evt) {
01559:                                jComboBoxStretchTypeActionPerformed(evt);
01560:                            }
01561:                        });
01562:                gridBagConstraints = new java.awt.GridBagConstraints();
01563:                gridBagConstraints.gridx = 0;
01564:                gridBagConstraints.gridy = 3;
01565:                gridBagConstraints.gridwidth = 2;
01566:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01567:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01568:                gridBagConstraints.weightx = 1.0;
01569:                gridBagConstraints.insets = new java.awt.Insets(1, 0, 0, 0);
01570:                jPanel11.add(jComboBoxStretchType, gridBagConstraints);
01571:
01572:                gridBagConstraints = new java.awt.GridBagConstraints();
01573:                gridBagConstraints.gridx = 0;
01574:                gridBagConstraints.gridy = 2;
01575:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01576:                jPanelCommon.add(jPanel11, gridBagConstraints);
01577:
01578:                jPanel17.setMinimumSize(new java.awt.Dimension(150, 46));
01579:                jPanel17.setPreferredSize(new java.awt.Dimension(150, 46));
01580:                jPanel17.setLayout(new java.awt.GridBagLayout());
01581:
01582:                jLabelStyle.setText("Style");
01583:                gridBagConstraints = new java.awt.GridBagConstraints();
01584:                gridBagConstraints.gridx = 0;
01585:                gridBagConstraints.gridy = 2;
01586:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01587:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01588:                gridBagConstraints.weightx = 1.0;
01589:                jPanel17.add(jLabelStyle, gridBagConstraints);
01590:
01591:                jComboBoxStyle.setMinimumSize(new java.awt.Dimension(100, 20));
01592:                jComboBoxStyle
01593:                        .setPreferredSize(new java.awt.Dimension(120, 20));
01594:                jComboBoxStyle
01595:                        .addActionListener(new java.awt.event.ActionListener() {
01596:                            public void actionPerformed(
01597:                                    java.awt.event.ActionEvent evt) {
01598:                                jComboBoxStyleActionPerformed(evt);
01599:                            }
01600:                        });
01601:                gridBagConstraints = new java.awt.GridBagConstraints();
01602:                gridBagConstraints.gridx = 0;
01603:                gridBagConstraints.gridy = 3;
01604:                gridBagConstraints.gridwidth = 2;
01605:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
01606:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01607:                gridBagConstraints.weightx = 1.0;
01608:                jPanel17.add(jComboBoxStyle, gridBagConstraints);
01609:
01610:                gridBagConstraints = new java.awt.GridBagConstraints();
01611:                gridBagConstraints.gridx = 1;
01612:                gridBagConstraints.gridy = 2;
01613:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01614:                jPanelCommon.add(jPanel17, gridBagConstraints);
01615:
01616:                jTabbedPane.addTab("Common", jPanelCommon);
01617:
01618:                jPanelGraphicselement.setLayout(new java.awt.GridBagLayout());
01619:
01620:                jComboBoxFill.setMinimumSize(new java.awt.Dimension(300, 20));
01621:                jComboBoxFill.setPreferredSize(new java.awt.Dimension(300, 20));
01622:                jComboBoxFill
01623:                        .addActionListener(new java.awt.event.ActionListener() {
01624:                            public void actionPerformed(
01625:                                    java.awt.event.ActionEvent evt) {
01626:                                jComboBoxFillActionPerformed(evt);
01627:                            }
01628:                        });
01629:                gridBagConstraints = new java.awt.GridBagConstraints();
01630:                gridBagConstraints.gridx = 0;
01631:                gridBagConstraints.gridy = 5;
01632:                gridBagConstraints.gridwidth = 2;
01633:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01634:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 170, 6);
01635:                jPanelGraphicselement.add(jComboBoxFill, gridBagConstraints);
01636:
01637:                jLabel11.setText("Pen");
01638:                gridBagConstraints = new java.awt.GridBagConstraints();
01639:                gridBagConstraints.gridx = 0;
01640:                gridBagConstraints.gridy = 0;
01641:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01642:                gridBagConstraints.insets = new java.awt.Insets(12, 8, 0, 0);
01643:                jPanelGraphicselement.add(jLabel11, gridBagConstraints);
01644:
01645:                jComboBoxPen.setMinimumSize(new java.awt.Dimension(300, 20));
01646:                jComboBoxPen.setPreferredSize(new java.awt.Dimension(300, 20));
01647:                jComboBoxPen
01648:                        .addActionListener(new java.awt.event.ActionListener() {
01649:                            public void actionPerformed(
01650:                                    java.awt.event.ActionEvent evt) {
01651:                                jComboBoxPenActionPerformed(evt);
01652:                            }
01653:                        });
01654:                gridBagConstraints = new java.awt.GridBagConstraints();
01655:                gridBagConstraints.gridx = 0;
01656:                gridBagConstraints.gridy = 1;
01657:                gridBagConstraints.gridwidth = 2;
01658:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01659:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
01660:                jPanelGraphicselement.add(jComboBoxPen, gridBagConstraints);
01661:
01662:                jLabel13.setText("Fill");
01663:                gridBagConstraints = new java.awt.GridBagConstraints();
01664:                gridBagConstraints.gridx = 0;
01665:                gridBagConstraints.gridy = 4;
01666:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01667:                gridBagConstraints.insets = new java.awt.Insets(8, 8, 0, 0);
01668:                jPanelGraphicselement.add(jLabel13, gridBagConstraints);
01669:                gridBagConstraints = new java.awt.GridBagConstraints();
01670:                gridBagConstraints.gridx = 83;
01671:                gridBagConstraints.gridy = 82;
01672:                gridBagConstraints.weightx = 1.0;
01673:                gridBagConstraints.weighty = 1.0;
01674:                jPanelGraphicselement.add(jSeparator7, gridBagConstraints);
01675:
01676:                jTabbedPane.addTab("Graphics Element", jPanelGraphicselement);
01677:
01678:                jPanelRectangle.setLayout(new java.awt.GridBagLayout());
01679:
01680:                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(
01681:                        javax.swing.BorderFactory.createEtchedBorder(),
01682:                        "Rectangle radius"));
01683:                jPanel1.setMinimumSize(new java.awt.Dimension(302, 55));
01684:                jPanel1.setPreferredSize(new java.awt.Dimension(302, 55));
01685:                jPanel1.setLayout(null);
01686:
01687:                jLabel14.setText("Radius");
01688:                jPanel1.add(jLabel14);
01689:                jLabel14.setBounds(18, 28, 44, 14);
01690:
01691:                jNumberFieldRadius
01692:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
01693:                try {
01694:                    jNumberFieldRadius.setDecimals(0);
01695:                } catch (java.beans.PropertyVetoException e1) {
01696:                    e1.printStackTrace();
01697:                }
01698:                jNumberFieldRadius
01699:                        .addActionListener(new java.awt.event.ActionListener() {
01700:                            public void actionPerformed(
01701:                                    java.awt.event.ActionEvent evt) {
01702:                                jNumberFieldRadiusActionPerformed(evt);
01703:                            }
01704:                        });
01705:                jPanel1.add(jNumberFieldRadius);
01706:                jNumberFieldRadius.setBounds(64, 26, 40, 19);
01707:
01708:                gridBagConstraints = new java.awt.GridBagConstraints();
01709:                gridBagConstraints.gridx = 0;
01710:                gridBagConstraints.gridy = 0;
01711:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01712:                gridBagConstraints.weightx = 1.0;
01713:                gridBagConstraints.weighty = 1.0;
01714:                gridBagConstraints.insets = new java.awt.Insets(12, 6, 0, 8);
01715:                jPanelRectangle.add(jPanel1, gridBagConstraints);
01716:
01717:                jTabbedPane.addTab("Rectangle", jPanelRectangle);
01718:
01719:                jPanelLine.setLayout(new java.awt.GridBagLayout());
01720:
01721:                jLabel15.setText("Line direction");
01722:                gridBagConstraints = new java.awt.GridBagConstraints();
01723:                gridBagConstraints.gridx = 0;
01724:                gridBagConstraints.gridy = 0;
01725:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01726:                gridBagConstraints.insets = new java.awt.Insets(12, 8, 0, 0);
01727:                jPanelLine.add(jLabel15, gridBagConstraints);
01728:
01729:                jComboBoxLineDirection.setMinimumSize(new java.awt.Dimension(
01730:                        300, 20));
01731:                jComboBoxLineDirection.setPreferredSize(new java.awt.Dimension(
01732:                        300, 20));
01733:                jComboBoxLineDirection
01734:                        .addActionListener(new java.awt.event.ActionListener() {
01735:                            public void actionPerformed(
01736:                                    java.awt.event.ActionEvent evt) {
01737:                                jComboBoxLineDirectionActionPerformed(evt);
01738:                            }
01739:                        });
01740:                gridBagConstraints = new java.awt.GridBagConstraints();
01741:                gridBagConstraints.gridx = 0;
01742:                gridBagConstraints.gridy = 1;
01743:                gridBagConstraints.gridwidth = 2;
01744:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01745:                gridBagConstraints.weightx = 1.0;
01746:                gridBagConstraints.weighty = 1.0;
01747:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
01748:                jPanelLine.add(jComboBoxLineDirection, gridBagConstraints);
01749:
01750:                jTabbedPane.addTab("Line", jPanelLine);
01751:
01752:                jPanelImage.setLayout(new java.awt.GridBagLayout());
01753:
01754:                jRTextExpressionAreaImageExpression
01755:                        .setBorder(javax.swing.BorderFactory
01756:                                .createEtchedBorder());
01757:                jRTextExpressionAreaImageExpression.setElectricScroll(0);
01758:                jRTextExpressionAreaImageExpression
01759:                        .setMinimumSize(new java.awt.Dimension(300, 47));
01760:                jRTextExpressionAreaImageExpression
01761:                        .setPreferredSize(new java.awt.Dimension(300, 47));
01762:                gridBagConstraints = new java.awt.GridBagConstraints();
01763:                gridBagConstraints.gridx = 0;
01764:                gridBagConstraints.gridy = 1;
01765:                gridBagConstraints.gridwidth = 2;
01766:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
01767:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01768:                gridBagConstraints.weightx = 1.0;
01769:                gridBagConstraints.weighty = 1.0;
01770:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
01771:                jPanelImage.add(jRTextExpressionAreaImageExpression,
01772:                        gridBagConstraints);
01773:
01774:                jLabel16
01775:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
01776:                jLabel16.setText("Image Expression");
01777:                gridBagConstraints = new java.awt.GridBagConstraints();
01778:                gridBagConstraints.gridx = 0;
01779:                gridBagConstraints.gridy = 0;
01780:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01781:                gridBagConstraints.insets = new java.awt.Insets(10, 8, 0, 0);
01782:                jPanelImage.add(jLabel16, gridBagConstraints);
01783:
01784:                jButtonFindImage.setText("Find...");
01785:                jButtonFindImage
01786:                        .addActionListener(new java.awt.event.ActionListener() {
01787:                            public void actionPerformed(
01788:                                    java.awt.event.ActionEvent evt) {
01789:                                jButtonFindImageActionPerformed(evt);
01790:                            }
01791:                        });
01792:                gridBagConstraints = new java.awt.GridBagConstraints();
01793:                gridBagConstraints.gridx = 1;
01794:                gridBagConstraints.gridy = 2;
01795:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
01796:                gridBagConstraints.insets = new java.awt.Insets(1, 0, 0, 6);
01797:                jPanelImage.add(jButtonFindImage, gridBagConstraints);
01798:
01799:                jLabel17.setText("Image Expression Class");
01800:                gridBagConstraints = new java.awt.GridBagConstraints();
01801:                gridBagConstraints.gridx = 0;
01802:                gridBagConstraints.gridy = 3;
01803:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01804:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01805:                jPanelImage.add(jLabel17, gridBagConstraints);
01806:
01807:                jComboBoxImageExpressionClass
01808:                        .setMinimumSize(new java.awt.Dimension(300, 20));
01809:                jComboBoxImageExpressionClass
01810:                        .setPreferredSize(new java.awt.Dimension(300, 20));
01811:                jComboBoxImageExpressionClass
01812:                        .addActionListener(new java.awt.event.ActionListener() {
01813:                            public void actionPerformed(
01814:                                    java.awt.event.ActionEvent evt) {
01815:                                jComboBoxImageExpressionClassActionPerformed(evt);
01816:                            }
01817:                        });
01818:                gridBagConstraints = new java.awt.GridBagConstraints();
01819:                gridBagConstraints.gridx = 0;
01820:                gridBagConstraints.gridy = 4;
01821:                gridBagConstraints.gridwidth = 2;
01822:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01823:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
01824:                jPanelImage.add(jComboBoxImageExpressionClass,
01825:                        gridBagConstraints);
01826:
01827:                jLabel18.setText("Scale Image");
01828:                gridBagConstraints = new java.awt.GridBagConstraints();
01829:                gridBagConstraints.gridx = 0;
01830:                gridBagConstraints.gridy = 5;
01831:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01832:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01833:                jPanelImage.add(jLabel18, gridBagConstraints);
01834:
01835:                jComboBoxScale.setMinimumSize(new java.awt.Dimension(150, 20));
01836:                jComboBoxScale
01837:                        .setPreferredSize(new java.awt.Dimension(150, 20));
01838:                jComboBoxScale
01839:                        .addActionListener(new java.awt.event.ActionListener() {
01840:                            public void actionPerformed(
01841:                                    java.awt.event.ActionEvent evt) {
01842:                                jComboBoxScaleActionPerformed(evt);
01843:                            }
01844:                        });
01845:                gridBagConstraints = new java.awt.GridBagConstraints();
01846:                gridBagConstraints.gridx = 0;
01847:                gridBagConstraints.gridy = 6;
01848:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01849:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
01850:                jPanelImage.add(jComboBoxScale, gridBagConstraints);
01851:
01852:                jCheckBoxImageCache.setText("Using cache");
01853:                jCheckBoxImageCache
01854:                        .addActionListener(new java.awt.event.ActionListener() {
01855:                            public void actionPerformed(
01856:                                    java.awt.event.ActionEvent evt) {
01857:                                jCheckBoxImageCacheActionPerformed(evt);
01858:                            }
01859:                        });
01860:                gridBagConstraints = new java.awt.GridBagConstraints();
01861:                gridBagConstraints.gridx = 1;
01862:                gridBagConstraints.gridy = 9;
01863:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01864:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
01865:                jPanelImage.add(jCheckBoxImageCache, gridBagConstraints);
01866:
01867:                jLabel19.setText("Vertical alignment");
01868:                gridBagConstraints = new java.awt.GridBagConstraints();
01869:                gridBagConstraints.gridx = 0;
01870:                gridBagConstraints.gridy = 7;
01871:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01872:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01873:                jPanelImage.add(jLabel19, gridBagConstraints);
01874:
01875:                jComboBoxVerticalAlignment
01876:                        .setMinimumSize(new java.awt.Dimension(150, 20));
01877:                jComboBoxVerticalAlignment
01878:                        .setPreferredSize(new java.awt.Dimension(150, 20));
01879:                jComboBoxVerticalAlignment
01880:                        .addActionListener(new java.awt.event.ActionListener() {
01881:                            public void actionPerformed(
01882:                                    java.awt.event.ActionEvent evt) {
01883:                                jComboBoxVerticalAlignmentActionPerformed(evt);
01884:                            }
01885:                        });
01886:                gridBagConstraints = new java.awt.GridBagConstraints();
01887:                gridBagConstraints.gridx = 0;
01888:                gridBagConstraints.gridy = 8;
01889:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01890:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
01891:                jPanelImage.add(jComboBoxVerticalAlignment, gridBagConstraints);
01892:
01893:                jLabel20.setText("Horizontal alignment");
01894:                gridBagConstraints = new java.awt.GridBagConstraints();
01895:                gridBagConstraints.gridx = 1;
01896:                gridBagConstraints.gridy = 7;
01897:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01898:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01899:                jPanelImage.add(jLabel20, gridBagConstraints);
01900:
01901:                jComboBoxHorizontalAlignment
01902:                        .setMinimumSize(new java.awt.Dimension(150, 20));
01903:                jComboBoxHorizontalAlignment
01904:                        .setPreferredSize(new java.awt.Dimension(150, 20));
01905:                jComboBoxHorizontalAlignment
01906:                        .addActionListener(new java.awt.event.ActionListener() {
01907:                            public void actionPerformed(
01908:                                    java.awt.event.ActionEvent evt) {
01909:                                jComboBoxHorizontalAlignmentActionPerformed(evt);
01910:                            }
01911:                        });
01912:                gridBagConstraints = new java.awt.GridBagConstraints();
01913:                gridBagConstraints.gridx = 1;
01914:                gridBagConstraints.gridy = 8;
01915:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01916:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
01917:                jPanelImage.add(jComboBoxHorizontalAlignment,
01918:                        gridBagConstraints);
01919:
01920:                jLabel21.setText("Evaluation time");
01921:                gridBagConstraints = new java.awt.GridBagConstraints();
01922:                gridBagConstraints.gridx = 0;
01923:                gridBagConstraints.gridy = 11;
01924:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01925:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01926:                jPanelImage.add(jLabel21, gridBagConstraints);
01927:
01928:                jComboBoxEvaluationTime.setMinimumSize(new java.awt.Dimension(
01929:                        150, 20));
01930:                jComboBoxEvaluationTime
01931:                        .setPreferredSize(new java.awt.Dimension(150, 20));
01932:                jComboBoxEvaluationTime
01933:                        .addActionListener(new java.awt.event.ActionListener() {
01934:                            public void actionPerformed(
01935:                                    java.awt.event.ActionEvent evt) {
01936:                                jComboBoxEvaluationTimeActionPerformed(evt);
01937:                            }
01938:                        });
01939:                gridBagConstraints = new java.awt.GridBagConstraints();
01940:                gridBagConstraints.gridx = 0;
01941:                gridBagConstraints.gridy = 12;
01942:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01943:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 0);
01944:                jPanelImage.add(jComboBoxEvaluationTime, gridBagConstraints);
01945:
01946:                jLabel22.setText("Evaluation group");
01947:                gridBagConstraints = new java.awt.GridBagConstraints();
01948:                gridBagConstraints.gridx = 1;
01949:                gridBagConstraints.gridy = 11;
01950:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01951:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
01952:                jPanelImage.add(jLabel22, gridBagConstraints);
01953:
01954:                jComboBoxImageGroup.setMinimumSize(new java.awt.Dimension(150,
01955:                        20));
01956:                jComboBoxImageGroup.setPreferredSize(new java.awt.Dimension(
01957:                        150, 20));
01958:                jComboBoxImageGroup
01959:                        .addActionListener(new java.awt.event.ActionListener() {
01960:                            public void actionPerformed(
01961:                                    java.awt.event.ActionEvent evt) {
01962:                                jComboBoxImageGroupActionPerformed(evt);
01963:                            }
01964:                        });
01965:                gridBagConstraints = new java.awt.GridBagConstraints();
01966:                gridBagConstraints.gridx = 1;
01967:                gridBagConstraints.gridy = 12;
01968:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
01969:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 6);
01970:                jPanelImage.add(jComboBoxImageGroup, gridBagConstraints);
01971:
01972:                jSeparator1.setMinimumSize(new java.awt.Dimension(300, 2));
01973:                jSeparator1.setPreferredSize(new java.awt.Dimension(300, 2));
01974:                gridBagConstraints = new java.awt.GridBagConstraints();
01975:                gridBagConstraints.gridx = 0;
01976:                gridBagConstraints.gridy = 10;
01977:                gridBagConstraints.gridwidth = 2;
01978:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01979:                gridBagConstraints.insets = new java.awt.Insets(5, 6, 0, 6);
01980:                jPanelImage.add(jSeparator1, gridBagConstraints);
01981:
01982:                jCheckBoxImageIsLazy.setText("Is Lazy");
01983:                jCheckBoxImageIsLazy
01984:                        .addActionListener(new java.awt.event.ActionListener() {
01985:                            public void actionPerformed(
01986:                                    java.awt.event.ActionEvent evt) {
01987:                                jCheckBoxImageIsLazyActionPerformed(evt);
01988:                            }
01989:                        });
01990:                gridBagConstraints = new java.awt.GridBagConstraints();
01991:                gridBagConstraints.gridx = 0;
01992:                gridBagConstraints.gridy = 9;
01993:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
01994:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
01995:                jPanelImage.add(jCheckBoxImageIsLazy, gridBagConstraints);
01996:
01997:                jLabel34.setText("On error type");
01998:                gridBagConstraints = new java.awt.GridBagConstraints();
01999:                gridBagConstraints.gridx = 1;
02000:                gridBagConstraints.gridy = 5;
02001:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02002:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
02003:                jPanelImage.add(jLabel34, gridBagConstraints);
02004:
02005:                jComboBoxImageOnError.setMinimumSize(new java.awt.Dimension(
02006:                        150, 20));
02007:                jComboBoxImageOnError.setPreferredSize(new java.awt.Dimension(
02008:                        150, 20));
02009:                jComboBoxImageOnError
02010:                        .addActionListener(new java.awt.event.ActionListener() {
02011:                            public void actionPerformed(
02012:                                    java.awt.event.ActionEvent evt) {
02013:                                jComboBoxImageOnErrorActionPerformed(evt);
02014:                            }
02015:                        });
02016:                gridBagConstraints = new java.awt.GridBagConstraints();
02017:                gridBagConstraints.gridx = 1;
02018:                gridBagConstraints.gridy = 6;
02019:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02020:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
02021:                jPanelImage.add(jComboBoxImageOnError, gridBagConstraints);
02022:
02023:                jTabbedPane.addTab("Image", jPanelImage);
02024:
02025:                jPanelText.setLayout(new java.awt.BorderLayout(15, 15));
02026:
02027:                jTextAreaText
02028:                        .addInputMethodListener(new java.awt.event.InputMethodListener() {
02029:                            public void caretPositionChanged(
02030:                                    java.awt.event.InputMethodEvent evt) {
02031:                            }
02032:
02033:                            public void inputMethodTextChanged(
02034:                                    java.awt.event.InputMethodEvent evt) {
02035:                                jTextAreaTextInputMethodTextChanged(evt);
02036:                            }
02037:                        });
02038:                jScrollPane1.setViewportView(jTextAreaText);
02039:
02040:                jPanelText.add(jScrollPane1, java.awt.BorderLayout.CENTER);
02041:
02042:                jTabbedPane.addTab("Text", jPanelText);
02043:
02044:                jPanelFont.setLayout(new java.awt.GridBagLayout());
02045:
02046:                jPanel7.setMinimumSize(new java.awt.Dimension(300, 100));
02047:                jPanel7.setPreferredSize(new java.awt.Dimension(300, 120));
02048:                jPanel7.setLayout(new java.awt.GridBagLayout());
02049:
02050:                jLabel23.setText("Report font");
02051:                gridBagConstraints = new java.awt.GridBagConstraints();
02052:                gridBagConstraints.gridx = 0;
02053:                gridBagConstraints.gridy = 0;
02054:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02055:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02056:                jPanel7.add(jLabel23, gridBagConstraints);
02057:
02058:                jComboBoxReportFont.setMinimumSize(new java.awt.Dimension(300,
02059:                        20));
02060:                jComboBoxReportFont.setPreferredSize(new java.awt.Dimension(
02061:                        300, 20));
02062:                jComboBoxReportFont
02063:                        .addActionListener(new java.awt.event.ActionListener() {
02064:                            public void actionPerformed(
02065:                                    java.awt.event.ActionEvent evt) {
02066:                                jComboBoxReportFontActionPerformed(evt);
02067:                            }
02068:                        });
02069:                gridBagConstraints = new java.awt.GridBagConstraints();
02070:                gridBagConstraints.gridx = 0;
02071:                gridBagConstraints.gridy = 1;
02072:                gridBagConstraints.gridwidth = 2;
02073:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02074:                jPanel7.add(jComboBoxReportFont, gridBagConstraints);
02075:
02076:                jLabel24.setText("Font name");
02077:                gridBagConstraints = new java.awt.GridBagConstraints();
02078:                gridBagConstraints.gridx = 0;
02079:                gridBagConstraints.gridy = 2;
02080:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02081:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02082:                jPanel7.add(jLabel24, gridBagConstraints);
02083:
02084:                jComboBoxFontName
02085:                        .setMinimumSize(new java.awt.Dimension(244, 20));
02086:                jComboBoxFontName.setPreferredSize(new java.awt.Dimension(244,
02087:                        20));
02088:                jComboBoxFontName
02089:                        .addActionListener(new java.awt.event.ActionListener() {
02090:                            public void actionPerformed(
02091:                                    java.awt.event.ActionEvent evt) {
02092:                                jComboBoxFontNameActionPerformed(evt);
02093:                            }
02094:                        });
02095:                gridBagConstraints = new java.awt.GridBagConstraints();
02096:                gridBagConstraints.gridx = 0;
02097:                gridBagConstraints.gridy = 3;
02098:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02099:                jPanel7.add(jComboBoxFontName, gridBagConstraints);
02100:
02101:                jNumberComboBoxSize.setMinimumSize(new java.awt.Dimension(50,
02102:                        20));
02103:                jNumberComboBoxSize.setPreferredSize(new java.awt.Dimension(50,
02104:                        20));
02105:                jNumberComboBoxSize
02106:                        .addItemListener(new java.awt.event.ItemListener() {
02107:                            public void itemStateChanged(
02108:                                    java.awt.event.ItemEvent evt) {
02109:                                jNumberComboBoxSizeItemStateChanged(evt);
02110:                            }
02111:                        });
02112:                jNumberComboBoxSize
02113:                        .addActionListener(new java.awt.event.ActionListener() {
02114:                            public void actionPerformed(
02115:                                    java.awt.event.ActionEvent evt) {
02116:                                jNumberComboBoxSizeActionPerformed(evt);
02117:                            }
02118:                        });
02119:                gridBagConstraints = new java.awt.GridBagConstraints();
02120:                gridBagConstraints.gridx = 1;
02121:                gridBagConstraints.gridy = 3;
02122:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02123:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 0);
02124:                jPanel7.add(jNumberComboBoxSize, gridBagConstraints);
02125:
02126:                jLabel27.setText("Size");
02127:                gridBagConstraints = new java.awt.GridBagConstraints();
02128:                gridBagConstraints.gridx = 1;
02129:                gridBagConstraints.gridy = 2;
02130:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02131:                gridBagConstraints.insets = new java.awt.Insets(0, 8, 0, 0);
02132:                jPanel7.add(jLabel27, gridBagConstraints);
02133:
02134:                jLabel25.setText("PDF font name");
02135:                gridBagConstraints = new java.awt.GridBagConstraints();
02136:                gridBagConstraints.gridx = 0;
02137:                gridBagConstraints.gridy = 4;
02138:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02139:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02140:                jPanel7.add(jLabel25, gridBagConstraints);
02141:
02142:                jComboBoxPDFFontName.setEditable(true);
02143:                jComboBoxPDFFontName.setMinimumSize(new java.awt.Dimension(300,
02144:                        20));
02145:                jComboBoxPDFFontName.setPreferredSize(new java.awt.Dimension(
02146:                        300, 20));
02147:                jComboBoxPDFFontName
02148:                        .addActionListener(new java.awt.event.ActionListener() {
02149:                            public void actionPerformed(
02150:                                    java.awt.event.ActionEvent evt) {
02151:                                jComboBoxPDFFontNameActionPerformed(evt);
02152:                            }
02153:                        });
02154:                gridBagConstraints = new java.awt.GridBagConstraints();
02155:                gridBagConstraints.gridx = 0;
02156:                gridBagConstraints.gridy = 5;
02157:                gridBagConstraints.gridwidth = 2;
02158:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02159:                jPanel7.add(jComboBoxPDFFontName, gridBagConstraints);
02160:
02161:                gridBagConstraints = new java.awt.GridBagConstraints();
02162:                gridBagConstraints.gridx = 0;
02163:                gridBagConstraints.gridy = 0;
02164:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02165:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02166:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 0, 0);
02167:                jPanelFont.add(jPanel7, gridBagConstraints);
02168:
02169:                jPanel8.setMinimumSize(new java.awt.Dimension(300, 200));
02170:                jPanel8.setPreferredSize(new java.awt.Dimension(300, 200));
02171:                jPanel8.setLayout(new java.awt.GridBagLayout());
02172:
02173:                jPanel12.setLayout(new java.awt.GridBagLayout());
02174:
02175:                jCheckBoxBold.setText("Bold");
02176:                jCheckBoxBold.setMinimumSize(new java.awt.Dimension(100, 20));
02177:                jCheckBoxBold.setPreferredSize(new java.awt.Dimension(100, 20));
02178:                jCheckBoxBold
02179:                        .addActionListener(new java.awt.event.ActionListener() {
02180:                            public void actionPerformed(
02181:                                    java.awt.event.ActionEvent evt) {
02182:                                jCheckBoxBoldActionPerformed(evt);
02183:                            }
02184:                        });
02185:                gridBagConstraints = new java.awt.GridBagConstraints();
02186:                gridBagConstraints.gridx = 0;
02187:                gridBagConstraints.gridy = 0;
02188:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02189:                jPanel12.add(jCheckBoxBold, gridBagConstraints);
02190:
02191:                jCheckBoxItalic.setText("Italic");
02192:                jCheckBoxItalic.setMinimumSize(new java.awt.Dimension(100, 20));
02193:                jCheckBoxItalic
02194:                        .setPreferredSize(new java.awt.Dimension(100, 20));
02195:                jCheckBoxItalic
02196:                        .addActionListener(new java.awt.event.ActionListener() {
02197:                            public void actionPerformed(
02198:                                    java.awt.event.ActionEvent evt) {
02199:                                jCheckBoxItalicActionPerformed(evt);
02200:                            }
02201:                        });
02202:                gridBagConstraints = new java.awt.GridBagConstraints();
02203:                gridBagConstraints.gridx = 0;
02204:                gridBagConstraints.gridy = 1;
02205:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02206:                jPanel12.add(jCheckBoxItalic, gridBagConstraints);
02207:
02208:                jCheckBoxUnderline.setText("Underline");
02209:                jCheckBoxUnderline.setMinimumSize(new java.awt.Dimension(100,
02210:                        20));
02211:                jCheckBoxUnderline.setPreferredSize(new java.awt.Dimension(100,
02212:                        20));
02213:                jCheckBoxUnderline
02214:                        .addActionListener(new java.awt.event.ActionListener() {
02215:                            public void actionPerformed(
02216:                                    java.awt.event.ActionEvent evt) {
02217:                                jCheckBoxUnderlineActionPerformed(evt);
02218:                            }
02219:                        });
02220:                gridBagConstraints = new java.awt.GridBagConstraints();
02221:                gridBagConstraints.gridx = 0;
02222:                gridBagConstraints.gridy = 2;
02223:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02224:                jPanel12.add(jCheckBoxUnderline, gridBagConstraints);
02225:
02226:                jCheckBoxStrokeTrough.setText("Strike Trough");
02227:                jCheckBoxStrokeTrough.setMinimumSize(new java.awt.Dimension(
02228:                        100, 20));
02229:                jCheckBoxStrokeTrough.setPreferredSize(new java.awt.Dimension(
02230:                        100, 20));
02231:                jCheckBoxStrokeTrough
02232:                        .addActionListener(new java.awt.event.ActionListener() {
02233:                            public void actionPerformed(
02234:                                    java.awt.event.ActionEvent evt) {
02235:                                jCheckBoxStrokeTroughActionPerformed(evt);
02236:                            }
02237:                        });
02238:                gridBagConstraints = new java.awt.GridBagConstraints();
02239:                gridBagConstraints.gridx = 0;
02240:                gridBagConstraints.gridy = 3;
02241:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02242:                jPanel12.add(jCheckBoxStrokeTrough, gridBagConstraints);
02243:
02244:                jCheckBoxStyledText.setText("Is styled text");
02245:                jCheckBoxStyledText
02246:                        .addActionListener(new java.awt.event.ActionListener() {
02247:                            public void actionPerformed(
02248:                                    java.awt.event.ActionEvent evt) {
02249:                                jCheckBoxStyledTextActionPerformed(evt);
02250:                            }
02251:                        });
02252:                gridBagConstraints = new java.awt.GridBagConstraints();
02253:                gridBagConstraints.gridx = 0;
02254:                gridBagConstraints.gridy = 5;
02255:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02256:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
02257:                jPanel12.add(jCheckBoxStyledText, gridBagConstraints);
02258:
02259:                gridBagConstraints = new java.awt.GridBagConstraints();
02260:                gridBagConstraints.gridx = 0;
02261:                gridBagConstraints.gridy = 0;
02262:                gridBagConstraints.gridheight = 6;
02263:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02264:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
02265:                jPanel8.add(jPanel12, gridBagConstraints);
02266:
02267:                jCheckBoxPDFEmbedded.setText("PDF Embedded");
02268:                jCheckBoxPDFEmbedded.setMaximumSize(new java.awt.Dimension(100,
02269:                        20));
02270:                jCheckBoxPDFEmbedded.setMinimumSize(new java.awt.Dimension(100,
02271:                        20));
02272:                jCheckBoxPDFEmbedded.setPreferredSize(new java.awt.Dimension(
02273:                        100, 20));
02274:                jCheckBoxPDFEmbedded
02275:                        .addActionListener(new java.awt.event.ActionListener() {
02276:                            public void actionPerformed(
02277:                                    java.awt.event.ActionEvent evt) {
02278:                                jCheckBoxPDFEmbeddedActionPerformed(evt);
02279:                            }
02280:                        });
02281:                gridBagConstraints = new java.awt.GridBagConstraints();
02282:                gridBagConstraints.gridx = 0;
02283:                gridBagConstraints.gridy = 10;
02284:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02285:                jPanel8.add(jCheckBoxPDFEmbedded, gridBagConstraints);
02286:
02287:                jLabelMarkup.setText("Markup");
02288:                gridBagConstraints = new java.awt.GridBagConstraints();
02289:                gridBagConstraints.gridx = 0;
02290:                gridBagConstraints.gridy = 7;
02291:                gridBagConstraints.gridwidth = 2;
02292:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02293:                gridBagConstraints.insets = new java.awt.Insets(8, 4, 0, 0);
02294:                jPanel8.add(jLabelMarkup, gridBagConstraints);
02295:
02296:                jComboBoxMarkup.setMinimumSize(new java.awt.Dimension(200, 20));
02297:                jComboBoxMarkup
02298:                        .setPreferredSize(new java.awt.Dimension(200, 20));
02299:                jComboBoxMarkup
02300:                        .addActionListener(new java.awt.event.ActionListener() {
02301:                            public void actionPerformed(
02302:                                    java.awt.event.ActionEvent evt) {
02303:                                jComboBoxMarkupActionPerformed(evt);
02304:                            }
02305:                        });
02306:                gridBagConstraints = new java.awt.GridBagConstraints();
02307:                gridBagConstraints.gridx = 0;
02308:                gridBagConstraints.gridy = 8;
02309:                gridBagConstraints.gridwidth = 2;
02310:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02311:                gridBagConstraints.insets = new java.awt.Insets(0, 4, 8, 0);
02312:                jPanel8.add(jComboBoxMarkup, gridBagConstraints);
02313:                gridBagConstraints = new java.awt.GridBagConstraints();
02314:                gridBagConstraints.gridx = 0;
02315:                gridBagConstraints.gridy = 9;
02316:                gridBagConstraints.gridwidth = 3;
02317:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02318:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02319:                gridBagConstraints.weightx = 1.0;
02320:                gridBagConstraints.insets = new java.awt.Insets(3, 0, 0, 0);
02321:                jPanel8.add(jSeparator2, gridBagConstraints);
02322:
02323:                jLabel32.setText("PDF Encoding");
02324:                gridBagConstraints = new java.awt.GridBagConstraints();
02325:                gridBagConstraints.gridx = 1;
02326:                gridBagConstraints.gridy = 10;
02327:                gridBagConstraints.gridwidth = 2;
02328:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02329:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02330:                jPanel8.add(jLabel32, gridBagConstraints);
02331:
02332:                jComboBoxPdfEncoding.setEditable(true);
02333:                jComboBoxPdfEncoding.setMinimumSize(new java.awt.Dimension(200,
02334:                        20));
02335:                jComboBoxPdfEncoding.setPreferredSize(new java.awt.Dimension(
02336:                        200, 20));
02337:                jComboBoxPdfEncoding
02338:                        .addActionListener(new java.awt.event.ActionListener() {
02339:                            public void actionPerformed(
02340:                                    java.awt.event.ActionEvent evt) {
02341:                                jComboBoxPdfEncodingActionPerformed(evt);
02342:                            }
02343:                        });
02344:                gridBagConstraints = new java.awt.GridBagConstraints();
02345:                gridBagConstraints.gridx = 1;
02346:                gridBagConstraints.gridy = 12;
02347:                gridBagConstraints.gridwidth = 2;
02348:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02349:                jPanel8.add(jComboBoxPdfEncoding, gridBagConstraints);
02350:
02351:                jComboBoxHAlign.setMinimumSize(new java.awt.Dimension(95, 20));
02352:                jComboBoxHAlign
02353:                        .setPreferredSize(new java.awt.Dimension(95, 20));
02354:                jComboBoxHAlign
02355:                        .addActionListener(new java.awt.event.ActionListener() {
02356:                            public void actionPerformed(
02357:                                    java.awt.event.ActionEvent evt) {
02358:                                jComboBoxHAlignActionPerformed(evt);
02359:                            }
02360:                        });
02361:                gridBagConstraints = new java.awt.GridBagConstraints();
02362:                gridBagConstraints.gridx = 1;
02363:                gridBagConstraints.gridy = 3;
02364:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02365:                jPanel8.add(jComboBoxHAlign, gridBagConstraints);
02366:
02367:                jComboBoxVAlign.setMinimumSize(new java.awt.Dimension(95, 20));
02368:                jComboBoxVAlign
02369:                        .setPreferredSize(new java.awt.Dimension(95, 20));
02370:                jComboBoxVAlign
02371:                        .addActionListener(new java.awt.event.ActionListener() {
02372:                            public void actionPerformed(
02373:                                    java.awt.event.ActionEvent evt) {
02374:                                jComboBoxVAlignActionPerformed(evt);
02375:                            }
02376:                        });
02377:                gridBagConstraints = new java.awt.GridBagConstraints();
02378:                gridBagConstraints.gridx = 2;
02379:                gridBagConstraints.gridy = 3;
02380:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02381:                gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
02382:                jPanel8.add(jComboBoxVAlign, gridBagConstraints);
02383:
02384:                jLabel30.setText("Horizontal align");
02385:                gridBagConstraints = new java.awt.GridBagConstraints();
02386:                gridBagConstraints.gridx = 1;
02387:                gridBagConstraints.gridy = 2;
02388:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02389:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02390:                jPanel8.add(jLabel30, gridBagConstraints);
02391:
02392:                jLabel31.setText("Vertical align");
02393:                gridBagConstraints = new java.awt.GridBagConstraints();
02394:                gridBagConstraints.gridx = 2;
02395:                gridBagConstraints.gridy = 2;
02396:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02397:                gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
02398:                jPanel8.add(jLabel31, gridBagConstraints);
02399:
02400:                jComboBoxLineSpacing.setMinimumSize(new java.awt.Dimension(200,
02401:                        20));
02402:                jComboBoxLineSpacing.setPreferredSize(new java.awt.Dimension(
02403:                        200, 20));
02404:                jComboBoxLineSpacing
02405:                        .addActionListener(new java.awt.event.ActionListener() {
02406:                            public void actionPerformed(
02407:                                    java.awt.event.ActionEvent evt) {
02408:                                jComboBoxLineSpacingActionPerformed(evt);
02409:                            }
02410:                        });
02411:                gridBagConstraints = new java.awt.GridBagConstraints();
02412:                gridBagConstraints.gridx = 1;
02413:                gridBagConstraints.gridy = 1;
02414:                gridBagConstraints.gridwidth = 2;
02415:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02416:                jPanel8.add(jComboBoxLineSpacing, gridBagConstraints);
02417:
02418:                jLabel29.setText("Line spacing");
02419:                gridBagConstraints = new java.awt.GridBagConstraints();
02420:                gridBagConstraints.gridx = 1;
02421:                gridBagConstraints.gridy = 0;
02422:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02423:                gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
02424:                jPanel8.add(jLabel29, gridBagConstraints);
02425:
02426:                jLabel49.setText("Rotation");
02427:                gridBagConstraints = new java.awt.GridBagConstraints();
02428:                gridBagConstraints.gridx = 1;
02429:                gridBagConstraints.gridy = 4;
02430:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02431:                jPanel8.add(jLabel49, gridBagConstraints);
02432:
02433:                jComboBoxRotation
02434:                        .setMinimumSize(new java.awt.Dimension(200, 20));
02435:                jComboBoxRotation.setPreferredSize(new java.awt.Dimension(200,
02436:                        20));
02437:                jComboBoxRotation
02438:                        .addActionListener(new java.awt.event.ActionListener() {
02439:                            public void actionPerformed(
02440:                                    java.awt.event.ActionEvent evt) {
02441:                                jComboBoxRotationActionPerformed(evt);
02442:                            }
02443:                        });
02444:                gridBagConstraints = new java.awt.GridBagConstraints();
02445:                gridBagConstraints.gridx = 1;
02446:                gridBagConstraints.gridy = 5;
02447:                gridBagConstraints.gridwidth = 2;
02448:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02449:                jPanel8.add(jComboBoxRotation, gridBagConstraints);
02450:
02451:                gridBagConstraints = new java.awt.GridBagConstraints();
02452:                gridBagConstraints.gridx = 0;
02453:                gridBagConstraints.gridy = 1;
02454:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 0);
02455:                jPanelFont.add(jPanel8, gridBagConstraints);
02456:                gridBagConstraints = new java.awt.GridBagConstraints();
02457:                gridBagConstraints.gridx = 99;
02458:                gridBagConstraints.gridy = 0;
02459:                gridBagConstraints.weightx = 1.0;
02460:                jPanelFont.add(jSeparator4, gridBagConstraints);
02461:                gridBagConstraints = new java.awt.GridBagConstraints();
02462:                gridBagConstraints.gridx = 0;
02463:                gridBagConstraints.gridy = 99;
02464:                gridBagConstraints.weighty = 1.0;
02465:                jPanelFont.add(jSeparator5, gridBagConstraints);
02466:
02467:                jTabbedPane.addTab("Font", jPanelFont);
02468:
02469:                jPanelTextField.setLayout(new java.awt.GridBagLayout());
02470:
02471:                jLabel28.setText("Textfield Expression Class");
02472:                gridBagConstraints = new java.awt.GridBagConstraints();
02473:                gridBagConstraints.gridx = 0;
02474:                gridBagConstraints.gridy = 0;
02475:                gridBagConstraints.gridwidth = 2;
02476:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02477:                gridBagConstraints.insets = new java.awt.Insets(10, 8, 0, 0);
02478:                jPanelTextField.add(jLabel28, gridBagConstraints);
02479:
02480:                jComboBoxTextFieldExpressionClass
02481:                        .setMinimumSize(new java.awt.Dimension(300, 20));
02482:                jComboBoxTextFieldExpressionClass
02483:                        .setPreferredSize(new java.awt.Dimension(300, 20));
02484:                jComboBoxTextFieldExpressionClass
02485:                        .addActionListener(new java.awt.event.ActionListener() {
02486:                            public void actionPerformed(
02487:                                    java.awt.event.ActionEvent evt) {
02488:                                jComboBoxTextFieldExpressionClassActionPerformed(evt);
02489:                            }
02490:                        });
02491:                gridBagConstraints = new java.awt.GridBagConstraints();
02492:                gridBagConstraints.gridx = 0;
02493:                gridBagConstraints.gridy = 1;
02494:                gridBagConstraints.gridwidth = 2;
02495:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02496:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02497:                jPanelTextField.add(jComboBoxTextFieldExpressionClass,
02498:                        gridBagConstraints);
02499:
02500:                jLabel37.setText("Evaluation time");
02501:                gridBagConstraints = new java.awt.GridBagConstraints();
02502:                gridBagConstraints.gridx = 0;
02503:                gridBagConstraints.gridy = 2;
02504:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02505:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
02506:                jPanelTextField.add(jLabel37, gridBagConstraints);
02507:
02508:                jComboBoxTextFieldEvaluationTime
02509:                        .setMinimumSize(new java.awt.Dimension(147, 20));
02510:                jComboBoxTextFieldEvaluationTime
02511:                        .setPreferredSize(new java.awt.Dimension(147, 20));
02512:                jComboBoxTextFieldEvaluationTime
02513:                        .addActionListener(new java.awt.event.ActionListener() {
02514:                            public void actionPerformed(
02515:                                    java.awt.event.ActionEvent evt) {
02516:                                jComboBoxTextFieldEvaluationTimeActionPerformed(evt);
02517:                            }
02518:                        });
02519:                gridBagConstraints = new java.awt.GridBagConstraints();
02520:                gridBagConstraints.gridx = 0;
02521:                gridBagConstraints.gridy = 3;
02522:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02523:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 0);
02524:                jPanelTextField.add(jComboBoxTextFieldEvaluationTime,
02525:                        gridBagConstraints);
02526:
02527:                jLabel38.setText("Evaluation group");
02528:                gridBagConstraints = new java.awt.GridBagConstraints();
02529:                gridBagConstraints.gridx = 1;
02530:                gridBagConstraints.gridy = 2;
02531:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02532:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 0, 0);
02533:                jPanelTextField.add(jLabel38, gridBagConstraints);
02534:
02535:                jComboBoxTextFieldGroup.setMinimumSize(new java.awt.Dimension(
02536:                        147, 20));
02537:                jComboBoxTextFieldGroup
02538:                        .setPreferredSize(new java.awt.Dimension(147, 20));
02539:                jComboBoxTextFieldGroup
02540:                        .addActionListener(new java.awt.event.ActionListener() {
02541:                            public void actionPerformed(
02542:                                    java.awt.event.ActionEvent evt) {
02543:                                jComboBoxTextFieldGroupActionPerformed(evt);
02544:                            }
02545:                        });
02546:                gridBagConstraints = new java.awt.GridBagConstraints();
02547:                gridBagConstraints.gridx = 1;
02548:                gridBagConstraints.gridy = 3;
02549:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02550:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02551:                jPanelTextField
02552:                        .add(jComboBoxTextFieldGroup, gridBagConstraints);
02553:
02554:                jCheckBoxStretchWithOverflow.setText("Stretch with overflow");
02555:                jCheckBoxStretchWithOverflow
02556:                        .addActionListener(new java.awt.event.ActionListener() {
02557:                            public void actionPerformed(
02558:                                    java.awt.event.ActionEvent evt) {
02559:                                jCheckBoxStretchWithOverflowActionPerformed(evt);
02560:                            }
02561:                        });
02562:                gridBagConstraints = new java.awt.GridBagConstraints();
02563:                gridBagConstraints.gridx = 0;
02564:                gridBagConstraints.gridy = 4;
02565:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02566:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 0, 0);
02567:                jPanelTextField.add(jCheckBoxStretchWithOverflow,
02568:                        gridBagConstraints);
02569:
02570:                jCheckBoxBlankWhenNull.setText("Blank when null");
02571:                jCheckBoxBlankWhenNull
02572:                        .addActionListener(new java.awt.event.ActionListener() {
02573:                            public void actionPerformed(
02574:                                    java.awt.event.ActionEvent evt) {
02575:                                jCheckBoxBlankWhenNullActionPerformed(evt);
02576:                            }
02577:                        });
02578:                gridBagConstraints = new java.awt.GridBagConstraints();
02579:                gridBagConstraints.gridx = 1;
02580:                gridBagConstraints.gridy = 4;
02581:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02582:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 0, 8);
02583:                jPanelTextField.add(jCheckBoxBlankWhenNull, gridBagConstraints);
02584:
02585:                jLabel39.setText("Pattern");
02586:                gridBagConstraints = new java.awt.GridBagConstraints();
02587:                gridBagConstraints.gridx = 0;
02588:                gridBagConstraints.gridy = 5;
02589:                gridBagConstraints.gridwidth = 2;
02590:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02591:                gridBagConstraints.insets = new java.awt.Insets(4, 8, 0, 0);
02592:                jPanelTextField.add(jLabel39, gridBagConstraints);
02593:
02594:                jLabel40
02595:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
02596:                jLabel40.setText("Textfield expression");
02597:                gridBagConstraints = new java.awt.GridBagConstraints();
02598:                gridBagConstraints.gridx = 0;
02599:                gridBagConstraints.gridy = 7;
02600:                gridBagConstraints.gridwidth = 2;
02601:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02602:                gridBagConstraints.insets = new java.awt.Insets(8, 8, 0, 142);
02603:                jPanelTextField.add(jLabel40, gridBagConstraints);
02604:
02605:                jRTextExpressionAreaTextFieldExpression
02606:                        .setBorder(javax.swing.BorderFactory
02607:                                .createEtchedBorder());
02608:                jRTextExpressionAreaTextFieldExpression.setAutoscrolls(true);
02609:                jRTextExpressionAreaTextFieldExpression.setElectricScroll(0);
02610:                jRTextExpressionAreaTextFieldExpression
02611:                        .setMinimumSize(new java.awt.Dimension(0, 0));
02612:                jRTextExpressionAreaTextFieldExpression
02613:                        .setPreferredSize(new java.awt.Dimension(0, 0));
02614:                gridBagConstraints = new java.awt.GridBagConstraints();
02615:                gridBagConstraints.gridx = 0;
02616:                gridBagConstraints.gridy = 8;
02617:                gridBagConstraints.gridwidth = 2;
02618:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02619:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02620:                gridBagConstraints.weightx = 1.0;
02621:                gridBagConstraints.weighty = 1.0;
02622:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 6);
02623:                jPanelTextField.add(jRTextExpressionAreaTextFieldExpression,
02624:                        gridBagConstraints);
02625:
02626:                jPanel2.setMinimumSize(new java.awt.Dimension(100, 43));
02627:                jPanel2.setPreferredSize(new java.awt.Dimension(300, 23));
02628:                jPanel2.setLayout(new java.awt.GridBagLayout());
02629:
02630:                jComboBoxPattern.setEditable(true);
02631:                jComboBoxPattern
02632:                        .setMinimumSize(new java.awt.Dimension(150, 20));
02633:                jComboBoxPattern.setPreferredSize(new java.awt.Dimension(300,
02634:                        20));
02635:                jComboBoxPattern
02636:                        .addActionListener(new java.awt.event.ActionListener() {
02637:                            public void actionPerformed(
02638:                                    java.awt.event.ActionEvent evt) {
02639:                                jComboBoxPatternActionPerformed(evt);
02640:                            }
02641:                        });
02642:                jComboBoxPattern
02643:                        .addFocusListener(new java.awt.event.FocusAdapter() {
02644:                            public void focusLost(java.awt.event.FocusEvent evt) {
02645:                                jComboBoxPatternFocusLost(evt);
02646:                            }
02647:                        });
02648:                jComboBoxPattern
02649:                        .addInputMethodListener(new java.awt.event.InputMethodListener() {
02650:                            public void caretPositionChanged(
02651:                                    java.awt.event.InputMethodEvent evt) {
02652:                            }
02653:
02654:                            public void inputMethodTextChanged(
02655:                                    java.awt.event.InputMethodEvent evt) {
02656:                                jComboBoxPatternInputMethodTextChanged(evt);
02657:                            }
02658:                        });
02659:                gridBagConstraints = new java.awt.GridBagConstraints();
02660:                gridBagConstraints.gridx = 0;
02661:                gridBagConstraints.gridy = 0;
02662:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02663:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02664:                gridBagConstraints.weightx = 1.0;
02665:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
02666:                jPanel2.add(jComboBoxPattern, gridBagConstraints);
02667:
02668:                jButtonCreatePattern.setText("Create...");
02669:                jButtonCreatePattern.setMargin(new java.awt.Insets(2, 4, 2, 4));
02670:                jButtonCreatePattern.setMaximumSize(new java.awt.Dimension(300,
02671:                        23));
02672:                jButtonCreatePattern.setMinimumSize(new java.awt.Dimension(80,
02673:                        23));
02674:                jButtonCreatePattern.setPreferredSize(new java.awt.Dimension(
02675:                        80, 23));
02676:                jButtonCreatePattern
02677:                        .addActionListener(new java.awt.event.ActionListener() {
02678:                            public void actionPerformed(
02679:                                    java.awt.event.ActionEvent evt) {
02680:                                jButtonCreatePatternActionPerformed(evt);
02681:                            }
02682:                        });
02683:                gridBagConstraints = new java.awt.GridBagConstraints();
02684:                gridBagConstraints.gridx = 1;
02685:                gridBagConstraints.gridy = 0;
02686:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02687:                jPanel2.add(jButtonCreatePattern, gridBagConstraints);
02688:
02689:                gridBagConstraints = new java.awt.GridBagConstraints();
02690:                gridBagConstraints.gridx = 0;
02691:                gridBagConstraints.gridy = 6;
02692:                gridBagConstraints.gridwidth = 2;
02693:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02694:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 20);
02695:                jPanelTextField.add(jPanel2, gridBagConstraints);
02696:
02697:                jTabbedPane.addTab("Text Field", jPanelTextField);
02698:
02699:                jPanelSubreport1.setLayout(new java.awt.GridBagLayout());
02700:
02701:                jLabel41.setText("Connection / Datasource Expression");
02702:                gridBagConstraints = new java.awt.GridBagConstraints();
02703:                gridBagConstraints.gridx = 0;
02704:                gridBagConstraints.gridy = 2;
02705:                gridBagConstraints.gridwidth = 2;
02706:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02707:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 0);
02708:                jPanelSubreport1.add(jLabel41, gridBagConstraints);
02709:
02710:                jLabel42
02711:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
02712:                jLabel42.setText("Parameters Map Expression");
02713:                gridBagConstraints = new java.awt.GridBagConstraints();
02714:                gridBagConstraints.gridx = 0;
02715:                gridBagConstraints.gridy = 0;
02716:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02717:                gridBagConstraints.insets = new java.awt.Insets(6, 6, 0, 0);
02718:                jPanelSubreport1.add(jLabel42, gridBagConstraints);
02719:
02720:                jRTextExpressionAreaSubreportMapExpression
02721:                        .setBorder(javax.swing.BorderFactory
02722:                                .createEtchedBorder());
02723:                jRTextExpressionAreaSubreportMapExpression.setElectricScroll(0);
02724:                jRTextExpressionAreaSubreportMapExpression
02725:                        .setMinimumSize(new java.awt.Dimension(0, 0));
02726:                jRTextExpressionAreaSubreportMapExpression
02727:                        .setPreferredSize(new java.awt.Dimension(0, 0));
02728:                gridBagConstraints = new java.awt.GridBagConstraints();
02729:                gridBagConstraints.gridx = 0;
02730:                gridBagConstraints.gridy = 1;
02731:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02732:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02733:                gridBagConstraints.weightx = 1.0;
02734:                gridBagConstraints.weighty = 1.0;
02735:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02736:                jPanelSubreport1.add(
02737:                        jRTextExpressionAreaSubreportMapExpression,
02738:                        gridBagConstraints);
02739:
02740:                jComboBoxSubreportConnectionType
02741:                        .setMinimumSize(new java.awt.Dimension(300, 20));
02742:                jComboBoxSubreportConnectionType
02743:                        .setPreferredSize(new java.awt.Dimension(300, 20));
02744:                jComboBoxSubreportConnectionType
02745:                        .addActionListener(new java.awt.event.ActionListener() {
02746:                            public void actionPerformed(
02747:                                    java.awt.event.ActionEvent evt) {
02748:                                jComboBoxSubreportConnectionTypeActionPerformed(evt);
02749:                            }
02750:                        });
02751:                gridBagConstraints = new java.awt.GridBagConstraints();
02752:                gridBagConstraints.gridx = 0;
02753:                gridBagConstraints.gridy = 3;
02754:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02755:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02756:                jPanelSubreport1.add(jComboBoxSubreportConnectionType,
02757:                        gridBagConstraints);
02758:
02759:                jRTextExpressionAreaTextConnectionExpression
02760:                        .setBorder(javax.swing.BorderFactory
02761:                                .createEtchedBorder());
02762:                jRTextExpressionAreaTextConnectionExpression.setEnabled(false);
02763:                jRTextExpressionAreaTextConnectionExpression
02764:                        .setMinimumSize(new java.awt.Dimension(300, 50));
02765:                jRTextExpressionAreaTextConnectionExpression
02766:                        .setPreferredSize(new java.awt.Dimension(300, 50));
02767:                gridBagConstraints = new java.awt.GridBagConstraints();
02768:                gridBagConstraints.gridx = 0;
02769:                gridBagConstraints.gridy = 4;
02770:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02771:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
02772:                gridBagConstraints.weightx = 1.0;
02773:                gridBagConstraints.weighty = 1.0;
02774:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02775:                jPanelSubreport1.add(
02776:                        jRTextExpressionAreaTextConnectionExpression,
02777:                        gridBagConstraints);
02778:
02779:                jCheckBoxSubreportCache.setSelected(true);
02780:                jCheckBoxSubreportCache.setText("Using cache");
02781:                jCheckBoxSubreportCache
02782:                        .addActionListener(new java.awt.event.ActionListener() {
02783:                            public void actionPerformed(
02784:                                    java.awt.event.ActionEvent evt) {
02785:                                jCheckBoxSubreportCacheActionPerformed(evt);
02786:                            }
02787:                        });
02788:                gridBagConstraints = new java.awt.GridBagConstraints();
02789:                gridBagConstraints.gridx = 0;
02790:                gridBagConstraints.gridy = 5;
02791:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02792:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 0);
02793:                jPanelSubreport1.add(jCheckBoxSubreportCache,
02794:                        gridBagConstraints);
02795:
02796:                jTabbedPane.addTab("Subreport", jPanelSubreport1);
02797:
02798:                jPanelSubreport2.setLayout(new java.awt.GridBagLayout());
02799:
02800:                jLabel26
02801:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
02802:                jLabel26.setText("Subreport Expression");
02803:                gridBagConstraints = new java.awt.GridBagConstraints();
02804:                gridBagConstraints.gridx = 0;
02805:                gridBagConstraints.gridy = 2;
02806:                gridBagConstraints.gridwidth = 3;
02807:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02808:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
02809:                jPanelSubreport2.add(jLabel26, gridBagConstraints);
02810:
02811:                jRTextExpressionAreaSubreportExpression
02812:                        .setBorder(javax.swing.BorderFactory
02813:                                .createEtchedBorder());
02814:                jRTextExpressionAreaSubreportExpression.setElectricScroll(0);
02815:                jRTextExpressionAreaSubreportExpression
02816:                        .setMinimumSize(new java.awt.Dimension(0, 0));
02817:                jRTextExpressionAreaSubreportExpression
02818:                        .setPreferredSize(new java.awt.Dimension(300, 50));
02819:                gridBagConstraints = new java.awt.GridBagConstraints();
02820:                gridBagConstraints.gridx = 0;
02821:                gridBagConstraints.gridy = 3;
02822:                gridBagConstraints.gridwidth = 3;
02823:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02824:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02825:                gridBagConstraints.weightx = 1.0;
02826:                gridBagConstraints.weighty = 1.0;
02827:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02828:                jPanelSubreport2.add(jRTextExpressionAreaSubreportExpression,
02829:                        gridBagConstraints);
02830:
02831:                jLabel33.setText("Subreport Expression Class");
02832:                gridBagConstraints = new java.awt.GridBagConstraints();
02833:                gridBagConstraints.gridx = 0;
02834:                gridBagConstraints.gridy = 0;
02835:                gridBagConstraints.gridwidth = 3;
02836:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02837:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
02838:                jPanelSubreport2.add(jLabel33, gridBagConstraints);
02839:
02840:                jComboBoxSubreportExpressionClass
02841:                        .setMinimumSize(new java.awt.Dimension(300, 20));
02842:                jComboBoxSubreportExpressionClass
02843:                        .setPreferredSize(new java.awt.Dimension(300, 20));
02844:                jComboBoxSubreportExpressionClass
02845:                        .addActionListener(new java.awt.event.ActionListener() {
02846:                            public void actionPerformed(
02847:                                    java.awt.event.ActionEvent evt) {
02848:                                jComboBoxSubreportExpressionClassActionPerformed(evt);
02849:                            }
02850:                        });
02851:                gridBagConstraints = new java.awt.GridBagConstraints();
02852:                gridBagConstraints.gridx = 0;
02853:                gridBagConstraints.gridy = 1;
02854:                gridBagConstraints.gridwidth = 3;
02855:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02856:                gridBagConstraints.weightx = 1.0;
02857:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 0);
02858:                jPanelSubreport2.add(jComboBoxSubreportExpressionClass,
02859:                        gridBagConstraints);
02860:
02861:                jPanel16.setLayout(new java.awt.GridBagLayout());
02862:
02863:                jScrollPane2.setMinimumSize(new java.awt.Dimension(300, 50));
02864:                jScrollPane2.setPreferredSize(new java.awt.Dimension(300, 50));
02865:
02866:                jTableSubreportParameters
02867:                        .setModel(new javax.swing.table.DefaultTableModel(
02868:                                new Object[][] {
02869:
02870:                                }, new String[] { "Parameter", "Expression" }) {
02871:                            boolean[] canEdit = new boolean[] { false, false };
02872:
02873:                            public boolean isCellEditable(int rowIndex,
02874:                                    int columnIndex) {
02875:                                return canEdit[columnIndex];
02876:                            }
02877:                        });
02878:                jTableSubreportParameters
02879:                        .addMouseListener(new java.awt.event.MouseAdapter() {
02880:                            public void mouseClicked(
02881:                                    java.awt.event.MouseEvent evt) {
02882:                                jTableSubreportParametersMouseClicked(evt);
02883:                            }
02884:                        });
02885:                jScrollPane2.setViewportView(jTableSubreportParameters);
02886:
02887:                gridBagConstraints = new java.awt.GridBagConstraints();
02888:                gridBagConstraints.gridx = 0;
02889:                gridBagConstraints.gridy = 7;
02890:                gridBagConstraints.gridwidth = 3;
02891:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
02892:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02893:                gridBagConstraints.weightx = 1.0;
02894:                gridBagConstraints.weighty = 1.0;
02895:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
02896:                jPanel16.add(jScrollPane2, gridBagConstraints);
02897:
02898:                jPanel10.setLayout(new java.awt.GridBagLayout());
02899:
02900:                jButtonAddParameter.setText("Add");
02901:                jButtonAddParameter
02902:                        .addActionListener(new java.awt.event.ActionListener() {
02903:                            public void actionPerformed(
02904:                                    java.awt.event.ActionEvent evt) {
02905:                                jButtonAddParameterActionPerformed(evt);
02906:                            }
02907:                        });
02908:                gridBagConstraints = new java.awt.GridBagConstraints();
02909:                gridBagConstraints.gridx = 0;
02910:                gridBagConstraints.gridy = 0;
02911:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02912:                gridBagConstraints.insets = new java.awt.Insets(4, 0, 6, 0);
02913:                jPanel10.add(jButtonAddParameter, gridBagConstraints);
02914:
02915:                jButtonModParameter.setText("Modify");
02916:                jButtonModParameter.setEnabled(false);
02917:                jButtonModParameter
02918:                        .addActionListener(new java.awt.event.ActionListener() {
02919:                            public void actionPerformed(
02920:                                    java.awt.event.ActionEvent evt) {
02921:                                jButtonModParameterActionPerformed(evt);
02922:                            }
02923:                        });
02924:                gridBagConstraints = new java.awt.GridBagConstraints();
02925:                gridBagConstraints.gridx = 1;
02926:                gridBagConstraints.gridy = 0;
02927:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02928:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
02929:                jPanel10.add(jButtonModParameter, gridBagConstraints);
02930:
02931:                jButtonRemParameter.setText("Remove");
02932:                jButtonRemParameter.setEnabled(false);
02933:                jButtonRemParameter
02934:                        .addActionListener(new java.awt.event.ActionListener() {
02935:                            public void actionPerformed(
02936:                                    java.awt.event.ActionEvent evt) {
02937:                                jButtonRemParameterActionPerformed(evt);
02938:                            }
02939:                        });
02940:                gridBagConstraints = new java.awt.GridBagConstraints();
02941:                gridBagConstraints.gridx = 2;
02942:                gridBagConstraints.gridy = 0;
02943:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
02944:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
02945:                jPanel10.add(jButtonRemParameter, gridBagConstraints);
02946:
02947:                jButtonCopyParamsFromMaster.setText("Copy from master");
02948:                jButtonCopyParamsFromMaster
02949:                        .setToolTipText("Pass all the not-builtin parameters to the subreport");
02950:                jButtonCopyParamsFromMaster
02951:                        .addActionListener(new java.awt.event.ActionListener() {
02952:                            public void actionPerformed(
02953:                                    java.awt.event.ActionEvent evt) {
02954:                                jButtonCopyParamsFromMasterActionPerformed(evt);
02955:                            }
02956:                        });
02957:                gridBagConstraints = new java.awt.GridBagConstraints();
02958:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
02959:                jPanel10.add(jButtonCopyParamsFromMaster, gridBagConstraints);
02960:                gridBagConstraints = new java.awt.GridBagConstraints();
02961:                gridBagConstraints.gridx = 4;
02962:                gridBagConstraints.weightx = 1.0;
02963:                jPanel10.add(jPanel13, gridBagConstraints);
02964:
02965:                gridBagConstraints = new java.awt.GridBagConstraints();
02966:                gridBagConstraints.gridy = 9;
02967:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
02968:                gridBagConstraints.weightx = 1.0;
02969:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
02970:                jPanel16.add(jPanel10, gridBagConstraints);
02971:
02972:                jTabbedPane1.addTab("Subreport parameters", jPanel16);
02973:
02974:                jPanelSubreportReturnValues
02975:                        .setLayout(new java.awt.GridBagLayout());
02976:
02977:                jScrollPane3.setMinimumSize(new java.awt.Dimension(300, 50));
02978:                jScrollPane3.setPreferredSize(new java.awt.Dimension(300, 50));
02979:
02980:                jTableSubreportReturnValues
02981:                        .setModel(new javax.swing.table.DefaultTableModel(
02982:                                new Object[][] {
02983:
02984:                                }, new String[] { "Subreport variable",
02985:                                        "Destination variable" }) {
02986:                            boolean[] canEdit = new boolean[] { false, false };
02987:
02988:                            public boolean isCellEditable(int rowIndex,
02989:                                    int columnIndex) {
02990:                                return canEdit[columnIndex];
02991:                            }
02992:                        });
02993:                jTableSubreportReturnValues
02994:                        .addMouseListener(new java.awt.event.MouseAdapter() {
02995:                            public void mouseClicked(
02996:                                    java.awt.event.MouseEvent evt) {
02997:                                jTableSubreportReturnValuesMouseClicked(evt);
02998:                            }
02999:                        });
03000:                jScrollPane3.setViewportView(jTableSubreportReturnValues);
03001:
03002:                gridBagConstraints = new java.awt.GridBagConstraints();
03003:                gridBagConstraints.gridx = 0;
03004:                gridBagConstraints.gridy = 7;
03005:                gridBagConstraints.gridwidth = 3;
03006:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03007:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03008:                gridBagConstraints.weightx = 1.0;
03009:                gridBagConstraints.weighty = 1.0;
03010:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
03011:                jPanelSubreportReturnValues.add(jScrollPane3,
03012:                        gridBagConstraints);
03013:
03014:                jPanel14.setLayout(new java.awt.GridBagLayout());
03015:
03016:                jButtonAddReturnValue.setText("Add");
03017:                jButtonAddReturnValue
03018:                        .addActionListener(new java.awt.event.ActionListener() {
03019:                            public void actionPerformed(
03020:                                    java.awt.event.ActionEvent evt) {
03021:                                jButtonAddReturnValueActionPerformed(evt);
03022:                            }
03023:                        });
03024:                gridBagConstraints = new java.awt.GridBagConstraints();
03025:                gridBagConstraints.gridx = 0;
03026:                gridBagConstraints.gridy = 0;
03027:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03028:                gridBagConstraints.insets = new java.awt.Insets(4, 0, 6, 0);
03029:                jPanel14.add(jButtonAddReturnValue, gridBagConstraints);
03030:
03031:                jButtonModReturnValue.setText("Modify");
03032:                jButtonModReturnValue.setEnabled(false);
03033:                jButtonModReturnValue
03034:                        .addActionListener(new java.awt.event.ActionListener() {
03035:                            public void actionPerformed(
03036:                                    java.awt.event.ActionEvent evt) {
03037:                                jButtonModReturnValueActionPerformed(evt);
03038:                            }
03039:                        });
03040:                gridBagConstraints = new java.awt.GridBagConstraints();
03041:                gridBagConstraints.gridx = 1;
03042:                gridBagConstraints.gridy = 0;
03043:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03044:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
03045:                jPanel14.add(jButtonModReturnValue, gridBagConstraints);
03046:
03047:                jButtonRemReturnValue.setText("Remove");
03048:                jButtonRemReturnValue.setEnabled(false);
03049:                jButtonRemReturnValue
03050:                        .addActionListener(new java.awt.event.ActionListener() {
03051:                            public void actionPerformed(
03052:                                    java.awt.event.ActionEvent evt) {
03053:                                jButtonRemReturnValueActionPerformed(evt);
03054:                            }
03055:                        });
03056:                gridBagConstraints = new java.awt.GridBagConstraints();
03057:                gridBagConstraints.gridx = 2;
03058:                gridBagConstraints.gridy = 0;
03059:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03060:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
03061:                jPanel14.add(jButtonRemReturnValue, gridBagConstraints);
03062:                gridBagConstraints = new java.awt.GridBagConstraints();
03063:                gridBagConstraints.gridx = 4;
03064:                gridBagConstraints.weightx = 1.0;
03065:                jPanel14.add(jPanel15, gridBagConstraints);
03066:
03067:                gridBagConstraints = new java.awt.GridBagConstraints();
03068:                gridBagConstraints.gridy = 9;
03069:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03070:                gridBagConstraints.weightx = 1.0;
03071:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
03072:                jPanelSubreportReturnValues.add(jPanel14, gridBagConstraints);
03073:
03074:                jTabbedPane1.addTab("Subreport return values",
03075:                        jPanelSubreportReturnValues);
03076:
03077:                gridBagConstraints = new java.awt.GridBagConstraints();
03078:                gridBagConstraints.gridx = 0;
03079:                gridBagConstraints.gridy = 99;
03080:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03081:                gridBagConstraints.weightx = 1.0;
03082:                gridBagConstraints.weighty = 1.0;
03083:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 4, 6);
03084:                jPanelSubreport2.add(jTabbedPane1, gridBagConstraints);
03085:
03086:                jTabbedPane.addTab("Subreport (Other)", jPanelSubreport2);
03087:
03088:                jPanelHyperLink.setLayout(new java.awt.GridBagLayout());
03089:
03090:                jRTextExpressionAreaAnchorName
03091:                        .setBorder(javax.swing.BorderFactory
03092:                                .createEtchedBorder());
03093:                jRTextExpressionAreaAnchorName.setElectricScroll(0);
03094:                jRTextExpressionAreaAnchorName
03095:                        .setMinimumSize(new java.awt.Dimension(0, 0));
03096:                jRTextExpressionAreaAnchorName
03097:                        .setPreferredSize(new java.awt.Dimension(0, 0));
03098:                jRTextExpressionAreaAnchorName.setViewScrollbars(false);
03099:                gridBagConstraints = new java.awt.GridBagConstraints();
03100:                gridBagConstraints.gridx = 0;
03101:                gridBagConstraints.gridy = 1;
03102:                gridBagConstraints.gridwidth = 2;
03103:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03104:                gridBagConstraints.ipadx = 300;
03105:                gridBagConstraints.ipady = 46;
03106:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03107:                gridBagConstraints.weightx = 1.0;
03108:                gridBagConstraints.weighty = 0.6;
03109:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
03110:                jPanelHyperLink.add(jRTextExpressionAreaAnchorName,
03111:                        gridBagConstraints);
03112:
03113:                jLabel35
03114:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03115:                jLabel35.setText("Anchor Name Expression");
03116:                gridBagConstraints = new java.awt.GridBagConstraints();
03117:                gridBagConstraints.gridx = 0;
03118:                gridBagConstraints.gridy = 0;
03119:                gridBagConstraints.gridwidth = 2;
03120:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03121:                gridBagConstraints.ipadx = 175;
03122:                gridBagConstraints.insets = new java.awt.Insets(10, 8, 0, 6);
03123:                jPanelHyperLink.add(jLabel35, gridBagConstraints);
03124:                gridBagConstraints = new java.awt.GridBagConstraints();
03125:                gridBagConstraints.gridx = 0;
03126:                gridBagConstraints.gridy = 4;
03127:                gridBagConstraints.gridwidth = 2;
03128:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03129:                gridBagConstraints.ipadx = 300;
03130:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03131:                gridBagConstraints.weightx = 1.0;
03132:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 2);
03133:                jPanelHyperLink.add(jSeparator3, gridBagConstraints);
03134:
03135:                jComboBoxLinkType.setEditable(true);
03136:                jComboBoxLinkType
03137:                        .setMinimumSize(new java.awt.Dimension(180, 20));
03138:                jComboBoxLinkType.setPreferredSize(new java.awt.Dimension(180,
03139:                        20));
03140:                jComboBoxLinkType
03141:                        .addActionListener(new java.awt.event.ActionListener() {
03142:                            public void actionPerformed(
03143:                                    java.awt.event.ActionEvent evt) {
03144:                                jComboBoxLinkTypeActionPerformed(evt);
03145:                            }
03146:                        });
03147:                gridBagConstraints = new java.awt.GridBagConstraints();
03148:                gridBagConstraints.gridx = 1;
03149:                gridBagConstraints.gridy = 8;
03150:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03151:                gridBagConstraints.weightx = 1.0;
03152:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
03153:                jPanelHyperLink.add(jComboBoxLinkType, gridBagConstraints);
03154:
03155:                jLabel36
03156:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
03157:                jLabel36.setText("Hyperlink type");
03158:                jLabel36.setMaximumSize(new java.awt.Dimension(200, 25));
03159:                jLabel36.setMinimumSize(new java.awt.Dimension(100, 20));
03160:                jLabel36.setPreferredSize(new java.awt.Dimension(100, 20));
03161:                gridBagConstraints = new java.awt.GridBagConstraints();
03162:                gridBagConstraints.gridx = 0;
03163:                gridBagConstraints.gridy = 8;
03164:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03165:                gridBagConstraints.ipadx = 22;
03166:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03167:                gridBagConstraints.insets = new java.awt.Insets(0, 8, 5, 0);
03168:                jPanelHyperLink.add(jLabel36, gridBagConstraints);
03169:
03170:                jLabelTarget
03171:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
03172:                jLabelTarget.setText("Hyperlink target");
03173:                jLabelTarget.setMaximumSize(new java.awt.Dimension(200, 25));
03174:                jLabelTarget.setMinimumSize(new java.awt.Dimension(100, 20));
03175:                jLabelTarget.setPreferredSize(new java.awt.Dimension(100, 20));
03176:                gridBagConstraints = new java.awt.GridBagConstraints();
03177:                gridBagConstraints.gridx = 0;
03178:                gridBagConstraints.gridy = 7;
03179:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03180:                gridBagConstraints.ipadx = 22;
03181:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03182:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 5, 0);
03183:                jPanelHyperLink.add(jLabelTarget, gridBagConstraints);
03184:
03185:                jComboBoxLinkTarget.setMinimumSize(new java.awt.Dimension(180,
03186:                        20));
03187:                jComboBoxLinkTarget.setPreferredSize(new java.awt.Dimension(
03188:                        180, 20));
03189:                jComboBoxLinkTarget
03190:                        .addActionListener(new java.awt.event.ActionListener() {
03191:                            public void actionPerformed(
03192:                                    java.awt.event.ActionEvent evt) {
03193:                                jComboBoxLinkTargetActionPerformed(evt);
03194:                            }
03195:                        });
03196:                gridBagConstraints = new java.awt.GridBagConstraints();
03197:                gridBagConstraints.gridx = 1;
03198:                gridBagConstraints.gridy = 7;
03199:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03200:                gridBagConstraints.weightx = 1.0;
03201:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 2);
03202:                jPanelHyperLink.add(jComboBoxLinkTarget, gridBagConstraints);
03203:
03204:                jLabelTarget1
03205:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
03206:                jLabelTarget1.setText("Bookmark level");
03207:                jLabelTarget1.setMaximumSize(new java.awt.Dimension(200, 25));
03208:                jLabelTarget1.setMinimumSize(new java.awt.Dimension(100, 20));
03209:                jLabelTarget1.setPreferredSize(new java.awt.Dimension(100, 20));
03210:                gridBagConstraints = new java.awt.GridBagConstraints();
03211:                gridBagConstraints.gridx = 0;
03212:                gridBagConstraints.gridy = 3;
03213:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03214:                gridBagConstraints.ipadx = 22;
03215:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03216:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 5, 0);
03217:                jPanelHyperLink.add(jLabelTarget1, gridBagConstraints);
03218:
03219:                jSpinnerBookmarkLevel.setFont(new java.awt.Font("Default", 0,
03220:                        11));
03221:                jSpinnerBookmarkLevel.setMinimumSize(new java.awt.Dimension(80,
03222:                        20));
03223:                jSpinnerBookmarkLevel.setPreferredSize(new java.awt.Dimension(
03224:                        80, 20));
03225:                jSpinnerBookmarkLevel.setRequestFocusEnabled(false);
03226:                jSpinnerBookmarkLevel
03227:                        .addChangeListener(new javax.swing.event.ChangeListener() {
03228:                            public void stateChanged(
03229:                                    javax.swing.event.ChangeEvent evt) {
03230:                                jSpinnerBookmarkLevelStateChanged(evt);
03231:                            }
03232:                        });
03233:                gridBagConstraints = new java.awt.GridBagConstraints();
03234:                gridBagConstraints.gridx = 1;
03235:                gridBagConstraints.gridy = 3;
03236:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03237:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 2);
03238:                jPanelHyperLink.add(jSpinnerBookmarkLevel, gridBagConstraints);
03239:
03240:                jPanel24.setMinimumSize(new java.awt.Dimension(457, 163));
03241:                jPanel24.setPreferredSize(new java.awt.Dimension(321, 163));
03242:                jPanel24.setLayout(new java.awt.GridBagLayout());
03243:
03244:                jTabbedPane2.setMinimumSize(new java.awt.Dimension(445, 163));
03245:                jTabbedPane2.setPreferredSize(new java.awt.Dimension(309, 163));
03246:
03247:                jPanelReference.setMinimumSize(new java.awt.Dimension(0, 100));
03248:                jPanelReference.setLayout(new java.awt.GridBagLayout());
03249:
03250:                jRTextExpressionAreaReference
03251:                        .setBorder(javax.swing.BorderFactory
03252:                                .createEtchedBorder());
03253:                jRTextExpressionAreaReference.setEnabled(false);
03254:                jRTextExpressionAreaReference
03255:                        .setMinimumSize(new java.awt.Dimension(300, 50));
03256:                jRTextExpressionAreaReference
03257:                        .setPreferredSize(new java.awt.Dimension(300, 50));
03258:                jRTextExpressionAreaReference.setViewScrollbars(false);
03259:                gridBagConstraints = new java.awt.GridBagConstraints();
03260:                gridBagConstraints.gridx = 0;
03261:                gridBagConstraints.gridy = 11;
03262:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03263:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03264:                gridBagConstraints.weightx = 1.0;
03265:                gridBagConstraints.weighty = 1.0;
03266:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03267:                jPanelReference.add(jRTextExpressionAreaReference,
03268:                        gridBagConstraints);
03269:
03270:                jLabelReference
03271:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03272:                jLabelReference.setText("Hyperlink Reference Expression");
03273:                jLabelReference.setEnabled(false);
03274:                gridBagConstraints = new java.awt.GridBagConstraints();
03275:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03276:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03277:                jPanelReference.add(jLabelReference, gridBagConstraints);
03278:
03279:                jTabbedPane2.addTab("Reference", jPanelReference);
03280:
03281:                jPanelAnchor.setMinimumSize(new java.awt.Dimension(440, 100));
03282:                jPanelAnchor.setLayout(new java.awt.GridBagLayout());
03283:
03284:                jRTextExpressionAreaAnchor.setBorder(javax.swing.BorderFactory
03285:                        .createEtchedBorder());
03286:                jRTextExpressionAreaAnchor.setEnabled(false);
03287:                jRTextExpressionAreaAnchor
03288:                        .setMinimumSize(new java.awt.Dimension(300, 50));
03289:                jRTextExpressionAreaAnchor
03290:                        .setPreferredSize(new java.awt.Dimension(300, 50));
03291:                jRTextExpressionAreaAnchor.setViewScrollbars(false);
03292:                gridBagConstraints = new java.awt.GridBagConstraints();
03293:                gridBagConstraints.gridx = 0;
03294:                gridBagConstraints.gridy = 1;
03295:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03296:                gridBagConstraints.weightx = 1.0;
03297:                gridBagConstraints.weighty = 1.0;
03298:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03299:                jPanelAnchor
03300:                        .add(jRTextExpressionAreaAnchor, gridBagConstraints);
03301:
03302:                jLabelAnchor
03303:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03304:                jLabelAnchor.setText("Hyperlink Anchor Expression");
03305:                jLabelAnchor.setEnabled(false);
03306:                gridBagConstraints = new java.awt.GridBagConstraints();
03307:                gridBagConstraints.gridx = 0;
03308:                gridBagConstraints.gridy = 0;
03309:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03310:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03311:                jPanelAnchor.add(jLabelAnchor, gridBagConstraints);
03312:
03313:                jTabbedPane2.addTab("Anchor", jPanelAnchor);
03314:
03315:                jPanelPage.setMinimumSize(new java.awt.Dimension(428, 100));
03316:                jPanelPage.setLayout(new java.awt.GridBagLayout());
03317:
03318:                jLabelPage
03319:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03320:                jLabelPage.setText("Hyperlink Page Expression");
03321:                jLabelPage.setEnabled(false);
03322:                gridBagConstraints = new java.awt.GridBagConstraints();
03323:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03324:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03325:                jPanelPage.add(jLabelPage, gridBagConstraints);
03326:
03327:                jRTextExpressionAreaPage.setBorder(javax.swing.BorderFactory
03328:                        .createEtchedBorder());
03329:                jRTextExpressionAreaPage.setEnabled(false);
03330:                jRTextExpressionAreaPage.setMinimumSize(new java.awt.Dimension(
03331:                        300, 50));
03332:                jRTextExpressionAreaPage
03333:                        .setPreferredSize(new java.awt.Dimension(300, 50));
03334:                jRTextExpressionAreaPage.setViewScrollbars(false);
03335:                gridBagConstraints = new java.awt.GridBagConstraints();
03336:                gridBagConstraints.gridx = 0;
03337:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03338:                gridBagConstraints.weightx = 1.0;
03339:                gridBagConstraints.weighty = 1.0;
03340:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03341:                jPanelPage.add(jRTextExpressionAreaPage, gridBagConstraints);
03342:
03343:                jTabbedPane2.addTab("Page", jPanelPage);
03344:
03345:                jPanelLinkParams.setLayout(new java.awt.GridBagLayout());
03346:
03347:                jTableLinkParameters
03348:                        .setModel(new javax.swing.table.DefaultTableModel(
03349:                                new Object[][] {
03350:
03351:                                }, new String[] { "Link parameter",
03352:                                        "Expression" }) {
03353:                            boolean[] canEdit = new boolean[] { false, false };
03354:
03355:                            public boolean isCellEditable(int rowIndex,
03356:                                    int columnIndex) {
03357:                                return canEdit[columnIndex];
03358:                            }
03359:                        });
03360:                jTableLinkParameters
03361:                        .addMouseListener(new java.awt.event.MouseAdapter() {
03362:                            public void mouseClicked(
03363:                                    java.awt.event.MouseEvent evt) {
03364:                                jTableLinkParametersMouseClicked(evt);
03365:                            }
03366:                        });
03367:                jScrollPane5.setViewportView(jTableLinkParameters);
03368:
03369:                gridBagConstraints = new java.awt.GridBagConstraints();
03370:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03371:                gridBagConstraints.weightx = 1.0;
03372:                gridBagConstraints.weighty = 1.0;
03373:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
03374:                jPanelLinkParams.add(jScrollPane5, gridBagConstraints);
03375:
03376:                jPanel25.setLayout(new java.awt.GridBagLayout());
03377:
03378:                jButtonAddLinkParameter.setText("Add");
03379:                jButtonAddLinkParameter
03380:                        .addActionListener(new java.awt.event.ActionListener() {
03381:                            public void actionPerformed(
03382:                                    java.awt.event.ActionEvent evt) {
03383:                                jButtonAddLinkParameterActionPerformed(evt);
03384:                            }
03385:                        });
03386:                gridBagConstraints = new java.awt.GridBagConstraints();
03387:                gridBagConstraints.gridx = 0;
03388:                gridBagConstraints.gridy = 0;
03389:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03390:                gridBagConstraints.insets = new java.awt.Insets(4, 0, 6, 0);
03391:                jPanel25.add(jButtonAddLinkParameter, gridBagConstraints);
03392:
03393:                jButtonModLinkParameter.setText("Modify");
03394:                jButtonModLinkParameter.setEnabled(false);
03395:                jButtonModLinkParameter
03396:                        .addActionListener(new java.awt.event.ActionListener() {
03397:                            public void actionPerformed(
03398:                                    java.awt.event.ActionEvent evt) {
03399:                                jButtonModLinkParameterActionPerformed(evt);
03400:                            }
03401:                        });
03402:                gridBagConstraints = new java.awt.GridBagConstraints();
03403:                gridBagConstraints.gridx = 1;
03404:                gridBagConstraints.gridy = 0;
03405:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03406:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
03407:                jPanel25.add(jButtonModLinkParameter, gridBagConstraints);
03408:
03409:                jButtonRemLinkParameter.setText("Remove");
03410:                jButtonRemLinkParameter.setEnabled(false);
03411:                jButtonRemLinkParameter
03412:                        .addActionListener(new java.awt.event.ActionListener() {
03413:                            public void actionPerformed(
03414:                                    java.awt.event.ActionEvent evt) {
03415:                                jButtonRemLinkParameterActionPerformed(evt);
03416:                            }
03417:                        });
03418:                gridBagConstraints = new java.awt.GridBagConstraints();
03419:                gridBagConstraints.gridx = 2;
03420:                gridBagConstraints.gridy = 0;
03421:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03422:                gridBagConstraints.weightx = 1.0;
03423:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
03424:                jPanel25.add(jButtonRemLinkParameter, gridBagConstraints);
03425:
03426:                gridBagConstraints = new java.awt.GridBagConstraints();
03427:                gridBagConstraints.gridx = 0;
03428:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03429:                gridBagConstraints.weightx = 1.0;
03430:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
03431:                jPanelLinkParams.add(jPanel25, gridBagConstraints);
03432:
03433:                jTabbedPane2.addTab("Link parameters", jPanelLinkParams);
03434:
03435:                jPanelTooltip.setLayout(new java.awt.GridBagLayout());
03436:
03437:                jLabelTooltip
03438:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03439:                jLabelTooltip.setText("Hyperlink Tooltip Expression");
03440:                gridBagConstraints = new java.awt.GridBagConstraints();
03441:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03442:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03443:                jPanelTooltip.add(jLabelTooltip, gridBagConstraints);
03444:
03445:                jRTextExpressionAreaTooltip.setBorder(javax.swing.BorderFactory
03446:                        .createEtchedBorder());
03447:                jRTextExpressionAreaTooltip
03448:                        .setMinimumSize(new java.awt.Dimension(300, 50));
03449:                jRTextExpressionAreaTooltip
03450:                        .setPreferredSize(new java.awt.Dimension(300, 50));
03451:                jRTextExpressionAreaTooltip.setViewScrollbars(false);
03452:                gridBagConstraints = new java.awt.GridBagConstraints();
03453:                gridBagConstraints.gridx = 0;
03454:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03455:                gridBagConstraints.weightx = 1.0;
03456:                gridBagConstraints.weighty = 1.0;
03457:                gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
03458:                jPanelTooltip.add(jRTextExpressionAreaTooltip,
03459:                        gridBagConstraints);
03460:
03461:                jTabbedPane2.addTab("Tooltip", jPanelTooltip);
03462:
03463:                gridBagConstraints = new java.awt.GridBagConstraints();
03464:                gridBagConstraints.gridx = 0;
03465:                gridBagConstraints.gridy = 100;
03466:                gridBagConstraints.gridwidth = 2;
03467:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03468:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03469:                gridBagConstraints.weightx = 1.5;
03470:                gridBagConstraints.weighty = 1.5;
03471:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 2, 6);
03472:                jPanel24.add(jTabbedPane2, gridBagConstraints);
03473:
03474:                gridBagConstraints = new java.awt.GridBagConstraints();
03475:                gridBagConstraints.gridx = 0;
03476:                gridBagConstraints.gridy = 100;
03477:                gridBagConstraints.gridwidth = 2;
03478:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03479:                gridBagConstraints.weightx = 1.0;
03480:                gridBagConstraints.weighty = 1.5;
03481:                jPanelHyperLink.add(jPanel24, gridBagConstraints);
03482:
03483:                jTabbedPane.addTab("Hyper Link", jPanelHyperLink);
03484:
03485:                jPanelBarcode.setLayout(new java.awt.GridBagLayout());
03486:
03487:                jLabel47.setText("Type");
03488:                gridBagConstraints = new java.awt.GridBagConstraints();
03489:                gridBagConstraints.gridx = 0;
03490:                gridBagConstraints.gridy = 0;
03491:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03492:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03493:                jPanelBarcode.add(jLabel47, gridBagConstraints);
03494:
03495:                jComboBoxBarcodeType.setMinimumSize(new java.awt.Dimension(100,
03496:                        20));
03497:                jComboBoxBarcodeType.setPreferredSize(new java.awt.Dimension(
03498:                        200, 20));
03499:                jComboBoxBarcodeType
03500:                        .addActionListener(new java.awt.event.ActionListener() {
03501:                            public void actionPerformed(
03502:                                    java.awt.event.ActionEvent evt) {
03503:                                jComboBoxBarcodeTypeActionPerformed(evt);
03504:                            }
03505:                        });
03506:                gridBagConstraints = new java.awt.GridBagConstraints();
03507:                gridBagConstraints.gridx = 0;
03508:                gridBagConstraints.gridy = 1;
03509:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03510:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03511:                jPanelBarcode.add(jComboBoxBarcodeType, gridBagConstraints);
03512:
03513:                jBarcodeExpressionArea.setBorder(javax.swing.BorderFactory
03514:                        .createEtchedBorder());
03515:                jBarcodeExpressionArea.setAutoscrolls(true);
03516:                jBarcodeExpressionArea.setElectricScroll(0);
03517:                jBarcodeExpressionArea.setMinimumSize(new java.awt.Dimension(0,
03518:                        21));
03519:                jBarcodeExpressionArea.setPreferredSize(new java.awt.Dimension(
03520:                        0, 0));
03521:                gridBagConstraints = new java.awt.GridBagConstraints();
03522:                gridBagConstraints.gridx = 0;
03523:                gridBagConstraints.gridy = 3;
03524:                gridBagConstraints.gridwidth = 3;
03525:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03526:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03527:                gridBagConstraints.weightx = 1.0;
03528:                gridBagConstraints.weighty = 1.0;
03529:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 6, 6);
03530:                jPanelBarcode.add(jBarcodeExpressionArea, gridBagConstraints);
03531:
03532:                jLabel48
03533:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03534:                jLabel48.setText("Barcode expression");
03535:                gridBagConstraints = new java.awt.GridBagConstraints();
03536:                gridBagConstraints.gridx = 0;
03537:                gridBagConstraints.gridy = 2;
03538:                gridBagConstraints.gridwidth = 2;
03539:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03540:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03541:                jPanelBarcode.add(jLabel48, gridBagConstraints);
03542:
03543:                jSeparator8.setMinimumSize(new java.awt.Dimension(300, 2));
03544:                jSeparator8.setPreferredSize(new java.awt.Dimension(300, 2));
03545:                gridBagConstraints = new java.awt.GridBagConstraints();
03546:                gridBagConstraints.gridx = 0;
03547:                gridBagConstraints.gridy = 25;
03548:                gridBagConstraints.gridwidth = 3;
03549:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03550:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03551:                gridBagConstraints.insets = new java.awt.Insets(5, 6, 0, 6);
03552:                jPanelBarcode.add(jSeparator8, gridBagConstraints);
03553:
03554:                jComboBoxBarcodeGroup.setMinimumSize(new java.awt.Dimension(
03555:                        150, 20));
03556:                jComboBoxBarcodeGroup.setPreferredSize(new java.awt.Dimension(
03557:                        150, 20));
03558:                jComboBoxBarcodeGroup
03559:                        .addActionListener(new java.awt.event.ActionListener() {
03560:                            public void actionPerformed(
03561:                                    java.awt.event.ActionEvent evt) {
03562:                                jComboBoxBarcodeGroupActionPerformed(evt);
03563:                            }
03564:                        });
03565:                gridBagConstraints = new java.awt.GridBagConstraints();
03566:                gridBagConstraints.gridx = 1;
03567:                gridBagConstraints.gridy = 30;
03568:                gridBagConstraints.gridwidth = 2;
03569:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03570:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03571:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 6);
03572:                jPanelBarcode.add(jComboBoxBarcodeGroup, gridBagConstraints);
03573:
03574:                jLabel43.setText("Evaluation group");
03575:                gridBagConstraints = new java.awt.GridBagConstraints();
03576:                gridBagConstraints.gridx = 1;
03577:                gridBagConstraints.gridy = 29;
03578:                gridBagConstraints.gridwidth = 2;
03579:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03580:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03581:                jPanelBarcode.add(jLabel43, gridBagConstraints);
03582:
03583:                jComboBoxEvaluationTimeBarcode
03584:                        .setMinimumSize(new java.awt.Dimension(150, 20));
03585:                jComboBoxEvaluationTimeBarcode
03586:                        .setPreferredSize(new java.awt.Dimension(150, 20));
03587:                jComboBoxEvaluationTimeBarcode
03588:                        .addActionListener(new java.awt.event.ActionListener() {
03589:                            public void actionPerformed(
03590:                                    java.awt.event.ActionEvent evt) {
03591:                                jComboBoxEvaluationTimeBarcodeActionPerformed(evt);
03592:                            }
03593:                        });
03594:                gridBagConstraints = new java.awt.GridBagConstraints();
03595:                gridBagConstraints.gridx = 0;
03596:                gridBagConstraints.gridy = 30;
03597:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03598:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03599:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 0);
03600:                jPanelBarcode.add(jComboBoxEvaluationTimeBarcode,
03601:                        gridBagConstraints);
03602:
03603:                jLabel50.setText("Evaluation time");
03604:                gridBagConstraints = new java.awt.GridBagConstraints();
03605:                gridBagConstraints.gridx = 0;
03606:                gridBagConstraints.gridy = 29;
03607:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03608:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03609:                jPanelBarcode.add(jLabel50, gridBagConstraints);
03610:
03611:                jLabel54.setText("Scale Barcode Image");
03612:                gridBagConstraints = new java.awt.GridBagConstraints();
03613:                gridBagConstraints.gridx = 0;
03614:                gridBagConstraints.gridy = 17;
03615:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03616:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03617:                jPanelBarcode.add(jLabel54, gridBagConstraints);
03618:
03619:                jLabel55.setText("On error type");
03620:                gridBagConstraints = new java.awt.GridBagConstraints();
03621:                gridBagConstraints.gridx = 1;
03622:                gridBagConstraints.gridy = 17;
03623:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03624:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03625:                jPanelBarcode.add(jLabel55, gridBagConstraints);
03626:
03627:                jComboBoxImageOnError1.setMinimumSize(new java.awt.Dimension(
03628:                        150, 20));
03629:                jComboBoxImageOnError1.setPreferredSize(new java.awt.Dimension(
03630:                        150, 20));
03631:                jComboBoxImageOnError1
03632:                        .addActionListener(new java.awt.event.ActionListener() {
03633:                            public void actionPerformed(
03634:                                    java.awt.event.ActionEvent evt) {
03635:                                jComboBoxImageOnErrorActionPerformed1(evt);
03636:                            }
03637:                        });
03638:                gridBagConstraints = new java.awt.GridBagConstraints();
03639:                gridBagConstraints.gridx = 1;
03640:                gridBagConstraints.gridy = 18;
03641:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03642:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
03643:                jPanelBarcode.add(jComboBoxImageOnError1, gridBagConstraints);
03644:
03645:                jComboBoxScale1.setMinimumSize(new java.awt.Dimension(150, 20));
03646:                jComboBoxScale1
03647:                        .setPreferredSize(new java.awt.Dimension(150, 20));
03648:                jComboBoxScale1
03649:                        .addActionListener(new java.awt.event.ActionListener() {
03650:                            public void actionPerformed(
03651:                                    java.awt.event.ActionEvent evt) {
03652:                                jComboBoxScaleActionPerformed1(evt);
03653:                            }
03654:                        });
03655:                gridBagConstraints = new java.awt.GridBagConstraints();
03656:                gridBagConstraints.gridx = 0;
03657:                gridBagConstraints.gridy = 18;
03658:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03659:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
03660:                jPanelBarcode.add(jComboBoxScale1, gridBagConstraints);
03661:
03662:                jLabel56.setText("Horizontal alignment");
03663:                gridBagConstraints = new java.awt.GridBagConstraints();
03664:                gridBagConstraints.gridx = 1;
03665:                gridBagConstraints.gridy = 19;
03666:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03667:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03668:                jPanelBarcode.add(jLabel56, gridBagConstraints);
03669:
03670:                jLabel57.setText("Vertical alignment");
03671:                gridBagConstraints = new java.awt.GridBagConstraints();
03672:                gridBagConstraints.gridx = 0;
03673:                gridBagConstraints.gridy = 19;
03674:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03675:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03676:                jPanelBarcode.add(jLabel57, gridBagConstraints);
03677:
03678:                jComboBoxVerticalAlignment1
03679:                        .setMinimumSize(new java.awt.Dimension(150, 20));
03680:                jComboBoxVerticalAlignment1
03681:                        .setPreferredSize(new java.awt.Dimension(150, 20));
03682:                jComboBoxVerticalAlignment1
03683:                        .addActionListener(new java.awt.event.ActionListener() {
03684:                            public void actionPerformed(
03685:                                    java.awt.event.ActionEvent evt) {
03686:                                jComboBoxVerticalAlignmentActionPerformed1(evt);
03687:                            }
03688:                        });
03689:                gridBagConstraints = new java.awt.GridBagConstraints();
03690:                gridBagConstraints.gridx = 0;
03691:                gridBagConstraints.gridy = 20;
03692:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03693:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 0);
03694:                jPanelBarcode.add(jComboBoxVerticalAlignment1,
03695:                        gridBagConstraints);
03696:
03697:                jComboBoxHorizontalAlignment1
03698:                        .setMinimumSize(new java.awt.Dimension(150, 20));
03699:                jComboBoxHorizontalAlignment1
03700:                        .setPreferredSize(new java.awt.Dimension(150, 20));
03701:                jComboBoxHorizontalAlignment1
03702:                        .addActionListener(new java.awt.event.ActionListener() {
03703:                            public void actionPerformed(
03704:                                    java.awt.event.ActionEvent evt) {
03705:                                jComboBoxHorizontalAlignmentActionPerformed1(evt);
03706:                            }
03707:                        });
03708:                gridBagConstraints = new java.awt.GridBagConstraints();
03709:                gridBagConstraints.gridx = 1;
03710:                gridBagConstraints.gridy = 20;
03711:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03712:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 0, 6);
03713:                jPanelBarcode.add(jComboBoxHorizontalAlignment1,
03714:                        gridBagConstraints);
03715:
03716:                jSeparator10.setMinimumSize(new java.awt.Dimension(300, 2));
03717:                jSeparator10.setPreferredSize(new java.awt.Dimension(300, 2));
03718:                gridBagConstraints = new java.awt.GridBagConstraints();
03719:                gridBagConstraints.gridx = 0;
03720:                gridBagConstraints.gridy = 16;
03721:                gridBagConstraints.gridwidth = 3;
03722:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03723:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03724:                gridBagConstraints.insets = new java.awt.Insets(5, 6, 0, 6);
03725:                jPanelBarcode.add(jSeparator10, gridBagConstraints);
03726:
03727:                jPanel22.setLayout(new java.awt.GridBagLayout());
03728:
03729:                jLabel58
03730:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
03731:                jLabel58.setText("Bar height");
03732:                gridBagConstraints = new java.awt.GridBagConstraints();
03733:                gridBagConstraints.gridx = 4;
03734:                gridBagConstraints.gridy = 0;
03735:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
03736:                gridBagConstraints.insets = new java.awt.Insets(2, 16, 0, 0);
03737:                jPanel22.add(jLabel58, gridBagConstraints);
03738:
03739:                jLabel60
03740:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03741:                jLabel60.setText("(0 = default)");
03742:                gridBagConstraints = new java.awt.GridBagConstraints();
03743:                gridBagConstraints.gridx = 10;
03744:                gridBagConstraints.gridy = 0;
03745:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03746:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03747:                gridBagConstraints.weightx = 1.0;
03748:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03749:                jPanel22.add(jLabel60, gridBagConstraints);
03750:
03751:                jLabel61
03752:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
03753:                jLabel61.setText("Bar width");
03754:                gridBagConstraints = new java.awt.GridBagConstraints();
03755:                gridBagConstraints.gridx = 0;
03756:                gridBagConstraints.gridy = 0;
03757:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
03758:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03759:                jPanel22.add(jLabel61, gridBagConstraints);
03760:
03761:                jNumberFieldBCWidth
03762:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
03763:                jNumberFieldBCWidth.setText("0");
03764:                jNumberFieldBCWidth
03765:                        .setToolTipText("Sets the desired width for the bars in the barcode (in pixels).");
03766:                try {
03767:                    jNumberFieldBCWidth.setDecimals(0);
03768:                } catch (java.beans.PropertyVetoException e1) {
03769:                    e1.printStackTrace();
03770:                }
03771:                try {
03772:                    jNumberFieldBCWidth.setInteger(true);
03773:                } catch (java.beans.PropertyVetoException e1) {
03774:                    e1.printStackTrace();
03775:                }
03776:                jNumberFieldBCWidth.setMinimumSize(new java.awt.Dimension(45,
03777:                        20));
03778:                jNumberFieldBCWidth.setPreferredSize(new java.awt.Dimension(45,
03779:                        20));
03780:                jNumberFieldBCWidth
03781:                        .addActionListener(new java.awt.event.ActionListener() {
03782:                            public void actionPerformed(
03783:                                    java.awt.event.ActionEvent evt) {
03784:                                jNumberFieldBCHeightjNumberFieldTopActionPerformed1(evt);
03785:                            }
03786:                        });
03787:                gridBagConstraints = new java.awt.GridBagConstraints();
03788:                gridBagConstraints.gridx = 1;
03789:                gridBagConstraints.gridy = 0;
03790:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03791:                gridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 0);
03792:                jPanel22.add(jNumberFieldBCWidth, gridBagConstraints);
03793:
03794:                jNumberFieldBCHeight
03795:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
03796:                jNumberFieldBCHeight.setText("0");
03797:                jNumberFieldBCHeight
03798:                        .setToolTipText("Sets the desired height for the bars in the barcode (in pixels)");
03799:                try {
03800:                    jNumberFieldBCHeight.setDecimals(0);
03801:                } catch (java.beans.PropertyVetoException e1) {
03802:                    e1.printStackTrace();
03803:                }
03804:                try {
03805:                    jNumberFieldBCHeight.setInteger(true);
03806:                } catch (java.beans.PropertyVetoException e1) {
03807:                    e1.printStackTrace();
03808:                }
03809:                jNumberFieldBCHeight.setMinimumSize(new java.awt.Dimension(45,
03810:                        20));
03811:                jNumberFieldBCHeight.setPreferredSize(new java.awt.Dimension(
03812:                        45, 20));
03813:                jNumberFieldBCHeight
03814:                        .addActionListener(new java.awt.event.ActionListener() {
03815:                            public void actionPerformed(
03816:                                    java.awt.event.ActionEvent evt) {
03817:                                jNumberFieldTopActionPerformed1(evt);
03818:                            }
03819:                        });
03820:                gridBagConstraints = new java.awt.GridBagConstraints();
03821:                gridBagConstraints.gridx = 5;
03822:                gridBagConstraints.gridy = 0;
03823:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03824:                gridBagConstraints.insets = new java.awt.Insets(2, 5, 2, 8);
03825:                jPanel22.add(jNumberFieldBCHeight, gridBagConstraints);
03826:
03827:                gridBagConstraints = new java.awt.GridBagConstraints();
03828:                gridBagConstraints.gridy = 10;
03829:                gridBagConstraints.gridwidth = 3;
03830:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
03831:                jPanelBarcode.add(jPanel22, gridBagConstraints);
03832:
03833:                jBarcodeExpressionAreaAppIdentifier
03834:                        .setBorder(javax.swing.BorderFactory
03835:                                .createEtchedBorder());
03836:                jBarcodeExpressionAreaAppIdentifier.setAutoscrolls(true);
03837:                jBarcodeExpressionAreaAppIdentifier.setElectricScroll(0);
03838:                jBarcodeExpressionAreaAppIdentifier
03839:                        .setMinimumSize(new java.awt.Dimension(0, 21));
03840:                jBarcodeExpressionAreaAppIdentifier
03841:                        .setPreferredSize(new java.awt.Dimension(0, 0));
03842:                gridBagConstraints = new java.awt.GridBagConstraints();
03843:                gridBagConstraints.gridx = 0;
03844:                gridBagConstraints.gridy = 12;
03845:                gridBagConstraints.gridwidth = 3;
03846:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03847:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03848:                gridBagConstraints.weightx = 1.0;
03849:                gridBagConstraints.weighty = 0.3;
03850:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 6, 6);
03851:                jPanelBarcode.add(jBarcodeExpressionAreaAppIdentifier,
03852:                        gridBagConstraints);
03853:
03854:                jLabel59
03855:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
03856:                jLabel59.setText("Application identifier");
03857:                gridBagConstraints = new java.awt.GridBagConstraints();
03858:                gridBagConstraints.gridx = 0;
03859:                gridBagConstraints.gridy = 11;
03860:                gridBagConstraints.gridwidth = 2;
03861:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03862:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03863:                jPanelBarcode.add(jLabel59, gridBagConstraints);
03864:
03865:                jPanel23.setLayout(new java.awt.GridBagLayout());
03866:
03867:                jCheckBoxBarcodeCheckSum.setText("Checksum");
03868:                jCheckBoxBarcodeCheckSum
03869:                        .addActionListener(new java.awt.event.ActionListener() {
03870:                            public void actionPerformed(
03871:                                    java.awt.event.ActionEvent evt) {
03872:                                BarcodeActionPerformed(evt);
03873:                            }
03874:                        });
03875:                gridBagConstraints = new java.awt.GridBagConstraints();
03876:                gridBagConstraints.gridx = 1;
03877:                gridBagConstraints.gridy = 1;
03878:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03879:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03880:                jPanel23.add(jCheckBoxBarcodeCheckSum, gridBagConstraints);
03881:
03882:                jCheckBoxBarcodeShowText.setText("Show Text");
03883:                jCheckBoxBarcodeShowText
03884:                        .addActionListener(new java.awt.event.ActionListener() {
03885:                            public void actionPerformed(
03886:                                    java.awt.event.ActionEvent evt) {
03887:                                BarcodeActionPerformed(evt);
03888:                            }
03889:                        });
03890:                gridBagConstraints = new java.awt.GridBagConstraints();
03891:                gridBagConstraints.gridx = 2;
03892:                gridBagConstraints.gridy = 1;
03893:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03894:                gridBagConstraints.insets = new java.awt.Insets(2, 8, 0, 0);
03895:                jPanel23.add(jCheckBoxBarcodeShowText, gridBagConstraints);
03896:
03897:                gridBagConstraints = new java.awt.GridBagConstraints();
03898:                gridBagConstraints.gridx = 1;
03899:                gridBagConstraints.gridy = 1;
03900:                gridBagConstraints.weightx = 0.5;
03901:                jPanelBarcode.add(jPanel23, gridBagConstraints);
03902:
03903:                jTabbedPane.addTab("Barcode", jPanelBarcode);
03904:
03905:                jPanelChart.setLayout(new java.awt.GridBagLayout());
03906:                jPanelChart.add(jSeparator6, new java.awt.GridBagConstraints());
03907:
03908:                jSeparator9.setMinimumSize(new java.awt.Dimension(300, 2));
03909:                jSeparator9.setPreferredSize(new java.awt.Dimension(300, 2));
03910:                gridBagConstraints = new java.awt.GridBagConstraints();
03911:                gridBagConstraints.gridx = 0;
03912:                gridBagConstraints.gridy = 9;
03913:                gridBagConstraints.gridwidth = 2;
03914:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03915:                gridBagConstraints.insets = new java.awt.Insets(5, 6, 0, 6);
03916:                jPanelChart.add(jSeparator9, gridBagConstraints);
03917:
03918:                jLabel44.setText("Evaluation time");
03919:                gridBagConstraints = new java.awt.GridBagConstraints();
03920:                gridBagConstraints.gridx = 0;
03921:                gridBagConstraints.gridy = 10;
03922:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03923:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03924:                jPanelChart.add(jLabel44, gridBagConstraints);
03925:
03926:                jComboBoxEvaluationTime1.setMinimumSize(new java.awt.Dimension(
03927:                        150, 20));
03928:                jComboBoxEvaluationTime1
03929:                        .setPreferredSize(new java.awt.Dimension(150, 20));
03930:                jComboBoxEvaluationTime1
03931:                        .addActionListener(new java.awt.event.ActionListener() {
03932:                            public void actionPerformed(
03933:                                    java.awt.event.ActionEvent evt) {
03934:                                jComboBoxEvaluationTime1ActionPerformed(evt);
03935:                            }
03936:                        });
03937:                gridBagConstraints = new java.awt.GridBagConstraints();
03938:                gridBagConstraints.gridx = 0;
03939:                gridBagConstraints.gridy = 11;
03940:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03941:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 0);
03942:                jPanelChart.add(jComboBoxEvaluationTime1, gridBagConstraints);
03943:
03944:                jLabel45.setText("Evaluation group");
03945:                gridBagConstraints = new java.awt.GridBagConstraints();
03946:                gridBagConstraints.gridx = 1;
03947:                gridBagConstraints.gridy = 10;
03948:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
03949:                gridBagConstraints.insets = new java.awt.Insets(1, 8, 0, 0);
03950:                jPanelChart.add(jLabel45, gridBagConstraints);
03951:
03952:                jComboBoxImageGroup1.setMinimumSize(new java.awt.Dimension(150,
03953:                        20));
03954:                jComboBoxImageGroup1.setPreferredSize(new java.awt.Dimension(
03955:                        150, 20));
03956:                jComboBoxImageGroup1
03957:                        .addActionListener(new java.awt.event.ActionListener() {
03958:                            public void actionPerformed(
03959:                                    java.awt.event.ActionEvent evt) {
03960:                                jComboBoxImageGroup1ActionPerformed(evt);
03961:                            }
03962:                        });
03963:                gridBagConstraints = new java.awt.GridBagConstraints();
03964:                gridBagConstraints.gridx = 1;
03965:                gridBagConstraints.gridy = 11;
03966:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03967:                gridBagConstraints.insets = new java.awt.Insets(1, 6, 6, 6);
03968:                jPanelChart.add(jComboBoxImageGroup1, gridBagConstraints);
03969:                gridBagConstraints = new java.awt.GridBagConstraints();
03970:                gridBagConstraints.gridx = 0;
03971:                gridBagConstraints.gridy = 12;
03972:                gridBagConstraints.gridwidth = 3;
03973:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
03974:                gridBagConstraints.weightx = 1.0;
03975:                gridBagConstraints.weighty = 1.0;
03976:                jPanelChart.add(jPanel9, gridBagConstraints);
03977:
03978:                jButton1.setLabel("Edit chart properties");
03979:                jButton1.addActionListener(new java.awt.event.ActionListener() {
03980:                    public void actionPerformed(java.awt.event.ActionEvent evt) {
03981:                        jButton1ActionPerformed(evt);
03982:                    }
03983:                });
03984:                gridBagConstraints = new java.awt.GridBagConstraints();
03985:                gridBagConstraints.gridx = 0;
03986:                gridBagConstraints.gridy = 0;
03987:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
03988:                gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 0);
03989:                jPanelChart.add(jButton1, gridBagConstraints);
03990:
03991:                jTabbedPane.addTab("Chart", jPanelChart);
03992:
03993:                jPanelBorder.setLayout(new java.awt.GridBagLayout());
03994:                jTabbedPane.addTab("Border", jPanelBorder);
03995:
03996:                jPanelSheet.setLayout(new java.awt.GridBagLayout());
03997:                jTabbedPane.addTab("All", jPanelSheet);
03998:
03999:                jPanelCrosstab.setLayout(new java.awt.GridBagLayout());
04000:
04001:                jLabel51
04002:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
04003:                jLabel51.setText("Parameters Map Expression");
04004:                gridBagConstraints = new java.awt.GridBagConstraints();
04005:                gridBagConstraints.gridx = 0;
04006:                gridBagConstraints.gridy = 11;
04007:                gridBagConstraints.gridwidth = 3;
04008:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04009:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
04010:                jPanelCrosstab.add(jLabel51, gridBagConstraints);
04011:
04012:                jRTextExpressionAreaCrosstabParametersMapExpression
04013:                        .setBorder(javax.swing.BorderFactory
04014:                                .createEtchedBorder());
04015:                jRTextExpressionAreaCrosstabParametersMapExpression
04016:                        .setElectricScroll(0);
04017:                jRTextExpressionAreaCrosstabParametersMapExpression
04018:                        .setMinimumSize(new java.awt.Dimension(0, 0));
04019:                jRTextExpressionAreaCrosstabParametersMapExpression
04020:                        .setPreferredSize(new java.awt.Dimension(300, 50));
04021:                gridBagConstraints = new java.awt.GridBagConstraints();
04022:                gridBagConstraints.gridx = 0;
04023:                gridBagConstraints.gridy = 12;
04024:                gridBagConstraints.gridwidth = 3;
04025:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
04026:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04027:                gridBagConstraints.weightx = 1.0;
04028:                gridBagConstraints.weighty = 0.5;
04029:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 8, 6);
04030:                jPanelCrosstab.add(
04031:                        jRTextExpressionAreaCrosstabParametersMapExpression,
04032:                        gridBagConstraints);
04033:
04034:                jPanel18.setLayout(new java.awt.GridBagLayout());
04035:
04036:                jScrollPane4.setMinimumSize(new java.awt.Dimension(300, 50));
04037:                jScrollPane4.setPreferredSize(new java.awt.Dimension(300, 50));
04038:
04039:                jTableCrosstabParameters
04040:                        .setModel(new javax.swing.table.DefaultTableModel(
04041:                                new Object[][] {
04042:
04043:                                }, new String[] { "Parameter", "Expression" }) {
04044:                            boolean[] canEdit = new boolean[] { false, false };
04045:
04046:                            public boolean isCellEditable(int rowIndex,
04047:                                    int columnIndex) {
04048:                                return canEdit[columnIndex];
04049:                            }
04050:                        });
04051:                jTableCrosstabParameters
04052:                        .addMouseListener(new java.awt.event.MouseAdapter() {
04053:                            public void mouseClicked(
04054:                                    java.awt.event.MouseEvent evt) {
04055:                                jTableCrosstabParametersMouseClicked(evt);
04056:                            }
04057:                        });
04058:                jScrollPane4.setViewportView(jTableCrosstabParameters);
04059:
04060:                gridBagConstraints = new java.awt.GridBagConstraints();
04061:                gridBagConstraints.gridx = 0;
04062:                gridBagConstraints.gridy = 7;
04063:                gridBagConstraints.gridwidth = 3;
04064:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
04065:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04066:                gridBagConstraints.weightx = 1.0;
04067:                gridBagConstraints.weighty = 1.0;
04068:                gridBagConstraints.insets = new java.awt.Insets(2, 6, 0, 6);
04069:                jPanel18.add(jScrollPane4, gridBagConstraints);
04070:
04071:                jPanel19.setLayout(new java.awt.GridBagLayout());
04072:
04073:                jButtonAddCrosstabParameter.setText("Add");
04074:                jButtonAddCrosstabParameter
04075:                        .addActionListener(new java.awt.event.ActionListener() {
04076:                            public void actionPerformed(
04077:                                    java.awt.event.ActionEvent evt) {
04078:                                jButtonAddCrosstabParameterActionPerformed(evt);
04079:                            }
04080:                        });
04081:                gridBagConstraints = new java.awt.GridBagConstraints();
04082:                gridBagConstraints.gridx = 0;
04083:                gridBagConstraints.gridy = 0;
04084:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04085:                gridBagConstraints.insets = new java.awt.Insets(4, 0, 6, 0);
04086:                jPanel19.add(jButtonAddCrosstabParameter, gridBagConstraints);
04087:
04088:                jButtonModCrosstabParameter.setText("Modify");
04089:                jButtonModCrosstabParameter.setEnabled(false);
04090:                jButtonModCrosstabParameter
04091:                        .addActionListener(new java.awt.event.ActionListener() {
04092:                            public void actionPerformed(
04093:                                    java.awt.event.ActionEvent evt) {
04094:                                jButtonModCrosstabParameterActionPerformed(evt);
04095:                            }
04096:                        });
04097:                gridBagConstraints = new java.awt.GridBagConstraints();
04098:                gridBagConstraints.gridx = 1;
04099:                gridBagConstraints.gridy = 0;
04100:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04101:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
04102:                jPanel19.add(jButtonModCrosstabParameter, gridBagConstraints);
04103:
04104:                jButtonRemCrosstabParameter.setText("Remove");
04105:                jButtonRemCrosstabParameter.setEnabled(false);
04106:                jButtonRemCrosstabParameter
04107:                        .addActionListener(new java.awt.event.ActionListener() {
04108:                            public void actionPerformed(
04109:                                    java.awt.event.ActionEvent evt) {
04110:                                jButtonRemCrosstabParameterActionPerformed(evt);
04111:                            }
04112:                        });
04113:                gridBagConstraints = new java.awt.GridBagConstraints();
04114:                gridBagConstraints.gridx = 2;
04115:                gridBagConstraints.gridy = 0;
04116:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04117:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 6, 0);
04118:                jPanel19.add(jButtonRemCrosstabParameter, gridBagConstraints);
04119:                gridBagConstraints = new java.awt.GridBagConstraints();
04120:                gridBagConstraints.gridx = 4;
04121:                gridBagConstraints.weightx = 1.0;
04122:                jPanel19.add(jPanel20, gridBagConstraints);
04123:
04124:                gridBagConstraints = new java.awt.GridBagConstraints();
04125:                gridBagConstraints.gridy = 9;
04126:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
04127:                gridBagConstraints.weightx = 1.0;
04128:                gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 6);
04129:                jPanel18.add(jPanel19, gridBagConstraints);
04130:
04131:                gridBagConstraints = new java.awt.GridBagConstraints();
04132:                gridBagConstraints.gridy = 9;
04133:                gridBagConstraints.gridwidth = 3;
04134:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
04135:                gridBagConstraints.weightx = 1.0;
04136:                gridBagConstraints.weighty = 1.0;
04137:                jPanelCrosstab.add(jPanel18, gridBagConstraints);
04138:
04139:                jLabel52
04140:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
04141:                jLabel52.setText("Crosstab parameters");
04142:                gridBagConstraints = new java.awt.GridBagConstraints();
04143:                gridBagConstraints.gridx = 0;
04144:                gridBagConstraints.gridy = 8;
04145:                gridBagConstraints.gridwidth = 3;
04146:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04147:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
04148:                jPanelCrosstab.add(jLabel52, gridBagConstraints);
04149:
04150:                jCheckBoxRepeatColumnHeaders.setText("Repeat column headers");
04151:                jCheckBoxRepeatColumnHeaders
04152:                        .setBorder(javax.swing.BorderFactory.createEmptyBorder(
04153:                                0, 0, 0, 0));
04154:                jCheckBoxRepeatColumnHeaders.setMargin(new java.awt.Insets(0,
04155:                        0, 0, 0));
04156:                jCheckBoxRepeatColumnHeaders
04157:                        .setMaximumSize(new java.awt.Dimension(300, 15));
04158:                jCheckBoxRepeatColumnHeaders
04159:                        .setMinimumSize(new java.awt.Dimension(150, 15));
04160:                jCheckBoxRepeatColumnHeaders
04161:                        .setPreferredSize(new java.awt.Dimension(150, 15));
04162:                jCheckBoxRepeatColumnHeaders
04163:                        .addActionListener(new java.awt.event.ActionListener() {
04164:                            public void actionPerformed(
04165:                                    java.awt.event.ActionEvent evt) {
04166:                                jCheckBoxRepeatColumnHeadersActionPerformed(evt);
04167:                            }
04168:                        });
04169:                gridBagConstraints = new java.awt.GridBagConstraints();
04170:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
04171:                gridBagConstraints.insets = new java.awt.Insets(8, 6, 0, 0);
04172:                jPanelCrosstab.add(jCheckBoxRepeatColumnHeaders,
04173:                        gridBagConstraints);
04174:
04175:                jCheckBoxRepeatRowHeaders.setText("Repeat row headers");
04176:                jCheckBoxRepeatRowHeaders.setBorder(javax.swing.BorderFactory
04177:                        .createEmptyBorder(0, 0, 0, 0));
04178:                jCheckBoxRepeatRowHeaders.setMargin(new java.awt.Insets(0, 0,
04179:                        0, 0));
04180:                jCheckBoxRepeatRowHeaders
04181:                        .setMaximumSize(new java.awt.Dimension(150, 15));
04182:                jCheckBoxRepeatRowHeaders
04183:                        .setMinimumSize(new java.awt.Dimension(150, 15));
04184:                jCheckBoxRepeatRowHeaders
04185:                        .setPreferredSize(new java.awt.Dimension(150, 15));
04186:                jCheckBoxRepeatRowHeaders
04187:                        .addActionListener(new java.awt.event.ActionListener() {
04188:                            public void actionPerformed(
04189:                                    java.awt.event.ActionEvent evt) {
04190:                                jCheckBoxRepeatRowHeadersActionPerformed(evt);
04191:                            }
04192:                        });
04193:                gridBagConstraints = new java.awt.GridBagConstraints();
04194:                gridBagConstraints.gridy = 2;
04195:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
04196:                gridBagConstraints.insets = new java.awt.Insets(4, 6, 0, 0);
04197:                jPanelCrosstab.add(jCheckBoxRepeatRowHeaders,
04198:                        gridBagConstraints);
04199:
04200:                jButton2.setText("Edit crosstab properties");
04201:                jButton2.addActionListener(new java.awt.event.ActionListener() {
04202:                    public void actionPerformed(java.awt.event.ActionEvent evt) {
04203:                        jButton2ActionPerformed(evt);
04204:                    }
04205:                });
04206:                gridBagConstraints = new java.awt.GridBagConstraints();
04207:                gridBagConstraints.gridx = 1;
04208:                gridBagConstraints.gridy = 2;
04209:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
04210:                gridBagConstraints.insets = new java.awt.Insets(4, 20, 0, 6);
04211:                jPanelCrosstab.add(jButton2, gridBagConstraints);
04212:
04213:                jPanel21.setLayout(new java.awt.GridBagLayout());
04214:
04215:                jNumberFieldColumnBreakOffset
04216:                        .setHorizontalAlignment(javax.swing.JTextField.RIGHT);
04217:                jNumberFieldColumnBreakOffset.setText("0");
04218:                try {
04219:                    jNumberFieldColumnBreakOffset.setDecimals(0);
04220:                } catch (java.beans.PropertyVetoException e1) {
04221:                    e1.printStackTrace();
04222:                }
04223:                try {
04224:                    jNumberFieldColumnBreakOffset.setInteger(true);
04225:                } catch (java.beans.PropertyVetoException e1) {
04226:                    e1.printStackTrace();
04227:                }
04228:                jNumberFieldColumnBreakOffset
04229:                        .setMinimumSize(new java.awt.Dimension(45, 20));
04230:                jNumberFieldColumnBreakOffset
04231:                        .setPreferredSize(new java.awt.Dimension(45, 20));
04232:                jNumberFieldColumnBreakOffset
04233:                        .addActionListener(new java.awt.event.ActionListener() {
04234:                            public void actionPerformed(
04235:                                    java.awt.event.ActionEvent evt) {
04236:                                jNumberFieldColumnBreakOffsetActionPerformed(evt);
04237:                            }
04238:                        });
04239:                gridBagConstraints = new java.awt.GridBagConstraints();
04240:                gridBagConstraints.gridx = 2;
04241:                gridBagConstraints.gridy = 0;
04242:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
04243:                gridBagConstraints.weightx = 1.0;
04244:                gridBagConstraints.insets = new java.awt.Insets(8, 5, 0, 6);
04245:                jPanel21.add(jNumberFieldColumnBreakOffset, gridBagConstraints);
04246:
04247:                jLabel53
04248:                        .setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
04249:                jLabel53.setText("Column break offset");
04250:                jLabel53.setMaximumSize(new java.awt.Dimension(200, 15));
04251:                jLabel53.setMinimumSize(new java.awt.Dimension(110, 15));
04252:                jLabel53.setPreferredSize(new java.awt.Dimension(130, 15));
04253:                gridBagConstraints = new java.awt.GridBagConstraints();
04254:                gridBagConstraints.gridx = 1;
04255:                gridBagConstraints.gridy = 0;
04256:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
04257:                gridBagConstraints.insets = new java.awt.Insets(8, 20, 0, 0);
04258:                jPanel21.add(jLabel53, gridBagConstraints);
04259:
04260:                jPanelCrosstab.add(jPanel21, new java.awt.GridBagConstraints());
04261:
04262:                jTabbedPane.addTab("Crosstab", jPanelCrosstab);
04263:
04264:                getContentPane().add(jTabbedPane, java.awt.BorderLayout.CENTER);
04265:
04266:                java.awt.Dimension screenSize = java.awt.Toolkit
04267:                        .getDefaultToolkit().getScreenSize();
04268:                setBounds((screenSize.width - 442) / 2,
04269:                        (screenSize.height - 441) / 2, 442, 441);
04270:            }// </editor-fold>//GEN-END:initComponents
04271:
04272:            private void jTableLinkParametersMouseClicked(
04273:                    java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableLinkParametersMouseClicked
04274:                if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
04275:                    if (jTableLinkParameters.getSelectedRowCount() > 0) {
04276:                        jButtonModLinkParameterActionPerformed(null);
04277:                    }
04278:                }
04279:            }//GEN-LAST:event_jTableLinkParametersMouseClicked
04280:
04281:            private void jButtonRemLinkParameterActionPerformed(
04282:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemLinkParameterActionPerformed
04283:                if (this .isInit())
04284:                    return;
04285:
04286:                if (jrf == null || getElementSelection().size() == 0)
04287:                    return;
04288:
04289:                Enumeration e = getElementSelection().elements();
04290:                HyperLinkableReportElement element = (HyperLinkableReportElement) e
04291:                        .nextElement();
04292:
04293:                javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableLinkParameters
04294:                        .getModel();
04295:                int[] rows = jTableLinkParameters.getSelectedRows();
04296:                for (int i = rows.length - 1; i >= 0; --i) {
04297:                    element.getLinkParameters().remove(
04298:                            jTableLinkParameters.getValueAt(rows[i], 0));
04299:                    dtm.removeRow(rows[i]);
04300:                }
04301:
04302:            }//GEN-LAST:event_jButtonRemLinkParameterActionPerformed
04303:
04304:            private void jButtonModLinkParameterActionPerformed(
04305:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModLinkParameterActionPerformed
04306:                if (this .isInit())
04307:                    return;
04308:
04309:                if (jrf == null || getElementSelection().size() == 0)
04310:                    return;
04311:
04312:                modifyLinkParameter(JRLinkParameterDialog.COMPONENT_NONE);
04313:            }//GEN-LAST:event_jButtonModLinkParameterActionPerformed
04314:
04315:            private void jButtonAddLinkParameterActionPerformed(
04316:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddLinkParameterActionPerformed
04317:                if (this .isInit())
04318:                    return;
04319:
04320:                if (jrf == null || getElementSelection().size() == 0)
04321:                    return;
04322:                // Set the new value for all selected elements...
04323:                Enumeration e = getElementSelection().elements();
04324:                HyperLinkableReportElement element = (HyperLinkableReportElement) e
04325:                        .nextElement();
04326:
04327:                JRLinkParameterDialog jrpd = new JRLinkParameterDialog(this ,
04328:                        true);
04329:                jrpd.setVisible(true);
04330:
04331:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
04332:                    it.businesslogic.ireport.JRLinkParameter parameter = jrpd
04333:                            .getParameter();
04334:                    element.getLinkParameters().add(parameter);
04335:                    javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableLinkParameters
04336:                            .getModel();
04337:                    dtm.addRow(new Object[] { parameter,
04338:                            parameter.getExpression() });
04339:                }
04340:            }//GEN-LAST:event_jButtonAddLinkParameterActionPerformed
04341:
04342:            private void jButtonCopyParamsFromMasterActionPerformed(
04343:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCopyParamsFromMasterActionPerformed
04344:                if (this .isInit())
04345:                    return;
04346:
04347:                if (jrf == null || getElementSelection().size() == 0)
04348:                    return;
04349:                // Set the new value for all selected elements...
04350:                Enumeration e = getElementSelection().elements();
04351:                SubReportElement element = (SubReportElement) e.nextElement();
04352:
04353:                javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportParameters
04354:                        .getModel();
04355:
04356:                Vector parameters = jrf.getReport().getParameters();
04357:
04358:                for (int i = 0; i < parameters.size(); ++i) {
04359:                    JRParameter jrParameter = (JRParameter) parameters.get(i);
04360:                    if (jrParameter.isBuiltin())
04361:                        continue;
04362:
04363:                    // Check if a similar parameter already exists...
04364:                    boolean found = false;
04365:                    for (int k = 0; k < element.getSubreportParameters().size(); ++k) {
04366:                        JRSubreportParameter sp = (JRSubreportParameter) element
04367:                                .getSubreportParameters().get(k);
04368:                        if (sp.getName().equals(jrParameter.getName())) {
04369:                            found = true;
04370:                            break;
04371:                        }
04372:                    }
04373:
04374:                    if (!found) {
04375:                        JRSubreportParameter parameter = new JRSubreportParameter(
04376:                                jrParameter.getName(), "$P{"
04377:                                        + jrParameter.getName() + "}");
04378:                        element.getSubreportParameters().addElement(parameter);
04379:                        dtm.addRow(new Object[] { parameter,
04380:                                parameter.getExpression() });
04381:                    }
04382:
04383:                }
04384:
04385:            }//GEN-LAST:event_jButtonCopyParamsFromMasterActionPerformed
04386:
04387:            private void jNumberFieldBCHeightjNumberFieldTopActionPerformed1(
04388:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldBCHeightjNumberFieldTopActionPerformed1
04389:                if (jrf == null || getElementSelection().size() == 0)
04390:                    return;
04391:                // Set the new value for all selected elements...
04392:                Enumeration e = getElementSelection().elements();
04393:                while (e.hasMoreElements()) {
04394:                    BarcodeReportElement element = (BarcodeReportElement) e
04395:                            .nextElement();
04396:                    // 1. Set element properties...
04397:                    // For each panel, search
04398:                    element.setImageWidth((int) jNumberFieldBCWidth.getValue());
04399:                }
04400:                repaintEditor();
04401:
04402:                jrf
04403:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04404:                                jrf, getElementSelection(),
04405:                                ReportElementChangedEvent.CHANGED));
04406:
04407:            }//GEN-LAST:event_jNumberFieldBCHeightjNumberFieldTopActionPerformed1
04408:
04409:            private void jNumberFieldTopActionPerformed1(
04410:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldTopActionPerformed1
04411:                if (jrf == null || getElementSelection().size() == 0)
04412:                    return;
04413:                // Set the new value for all selected elements...
04414:                Enumeration e = getElementSelection().elements();
04415:                while (e.hasMoreElements()) {
04416:                    BarcodeReportElement element = (BarcodeReportElement) e
04417:                            .nextElement();
04418:                    // 1. Set element properties...
04419:                    // For each panel, search
04420:                    element.setImageHeight((int) jNumberFieldBCHeight
04421:                            .getValue());
04422:                }
04423:                repaintEditor();
04424:
04425:                jrf
04426:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04427:                                jrf, getElementSelection(),
04428:                                ReportElementChangedEvent.CHANGED));
04429:
04430:            }//GEN-LAST:event_jNumberFieldTopActionPerformed1
04431:
04432:            private void jComboBoxHorizontalAlignmentActionPerformed1(
04433:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxHorizontalAlignmentActionPerformed1
04434:                if (this .isInit())
04435:                    return;
04436:
04437:                // Set band to all....
04438:                if (jrf == null
04439:                        || getElementSelection().size() == 0
04440:                        || Misc
04441:                                .getComboboxSelectedValue(jComboBoxHorizontalAlignment1) == null
04442:                        || (Misc
04443:                                .getComboboxSelectedValue(jComboBoxHorizontalAlignment1) + "")
04444:                                .equals(""))
04445:                    return;
04446:                // Set the new value for all selected elements...
04447:                Enumeration e = getElementSelection().elements();
04448:                while (e.hasMoreElements()) {
04449:                    ImageReportElement element = (ImageReportElement) e
04450:                            .nextElement();
04451:                    element
04452:                            .setHorizontalAlignment(""
04453:                                    + Misc
04454:                                            .getComboboxSelectedValue(jComboBoxHorizontalAlignment1));
04455:                }
04456:
04457:                this .jComboBoxHorizontalAlignment1.removeItem("");
04458:                repaintEditor();
04459:
04460:                jrf
04461:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04462:                                jrf, getElementSelection(),
04463:                                ReportElementChangedEvent.CHANGED));
04464:
04465:            }//GEN-LAST:event_jComboBoxHorizontalAlignmentActionPerformed1
04466:
04467:            private void jComboBoxVerticalAlignmentActionPerformed1(
04468:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxVerticalAlignmentActionPerformed1
04469:                if (this .isInit())
04470:                    return;
04471:
04472:                // Set band to all....
04473:                if (jrf == null
04474:                        || getElementSelection().size() == 0
04475:                        || Misc
04476:                                .getComboboxSelectedValue(jComboBoxVerticalAlignment1) == null
04477:                        || (Misc
04478:                                .getComboboxSelectedValue(jComboBoxVerticalAlignment1) + "")
04479:                                .equals(""))
04480:                    return;
04481:                // Set the new value for all selected elements...
04482:                Enumeration e = getElementSelection().elements();
04483:                while (e.hasMoreElements()) {
04484:                    ImageReportElement element = (ImageReportElement) e
04485:                            .nextElement();
04486:                    element
04487:                            .setVerticalAlignment(""
04488:                                    + Misc
04489:                                            .getComboboxSelectedValue(jComboBoxVerticalAlignment1));
04490:                }
04491:
04492:                this .jComboBoxVerticalAlignment1.removeItem("");
04493:                repaintEditor();
04494:
04495:                jrf
04496:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04497:                                jrf, getElementSelection(),
04498:                                ReportElementChangedEvent.CHANGED));
04499:
04500:            }//GEN-LAST:event_jComboBoxVerticalAlignmentActionPerformed1
04501:
04502:            private void jComboBoxScaleActionPerformed1(
04503:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxScaleActionPerformed1
04504:                if (this .isInit())
04505:                    return;
04506:
04507:                // Set band to all....
04508:                if (jrf == null
04509:                        || getElementSelection().size() == 0
04510:                        || Misc.getComboboxSelectedValue(jComboBoxScale1) == null
04511:                        || (Misc.getComboboxSelectedValue(jComboBoxScale1) + "")
04512:                                .equals(""))
04513:                    return;
04514:                // Set the new value for all selected elements...
04515:                Enumeration e = getElementSelection().elements();
04516:                while (e.hasMoreElements()) {
04517:                    ImageReportElement element = (ImageReportElement) e
04518:                            .nextElement();
04519:                    element.setScaleImage(""
04520:                            + Misc.getComboboxSelectedValue(jComboBoxScale1));
04521:                }
04522:
04523:                this .jComboBoxScale1.removeItem("");
04524:                repaintEditor();
04525:
04526:                jrf
04527:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04528:                                jrf, getElementSelection(),
04529:                                ReportElementChangedEvent.CHANGED));
04530:
04531:            }//GEN-LAST:event_jComboBoxScaleActionPerformed1
04532:
04533:            private void jComboBoxImageOnErrorActionPerformed1(
04534:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxImageOnErrorActionPerformed1
04535:                if (this .isInit())
04536:                    return;
04537:
04538:                // Set band to all....
04539:                if (jrf == null
04540:                        || getElementSelection().size() == 0
04541:                        || Misc
04542:                                .getComboboxSelectedValue(jComboBoxImageOnError1) == null
04543:                        || (Misc
04544:                                .getComboboxSelectedValue(jComboBoxImageOnError1) + "")
04545:                                .equals(""))
04546:                    return;
04547:                // Set the new value for all selected elements...
04548:                Enumeration e = getElementSelection().elements();
04549:                while (e.hasMoreElements()) {
04550:                    ImageReportElement element = (ImageReportElement) e
04551:                            .nextElement();
04552:                    element
04553:                            .setOnErrorType(""
04554:                                    + Misc
04555:                                            .getComboboxSelectedValue(jComboBoxImageOnError1));
04556:                }
04557:
04558:                this .jComboBoxImageOnError1.removeItem("");
04559:
04560:                jrf
04561:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04562:                                jrf, getElementSelection(),
04563:                                ReportElementChangedEvent.CHANGED));
04564:
04565:            }//GEN-LAST:event_jComboBoxImageOnErrorActionPerformed1
04566:
04567:            private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
04568:
04569:                if (this .isInit())
04570:                    return;
04571:
04572:                if (jrf == null || getElementSelection().size() == 0)
04573:                    return;
04574:                if (getElementSelection().size() > 0) {
04575:                    ReportElement re = (ReportElement) getElementSelection()
04576:                            .elementAt(0);
04577:
04578:                    if (re instanceof  CrosstabReportElement) {
04579:                        it.businesslogic.ireport.crosstab.gui.CrosstabPropertiesDialog cpd = new it.businesslogic.ireport.crosstab.gui.CrosstabPropertiesDialog(
04580:                                MainFrame.getMainInstance(), true);
04581:                        cpd
04582:                                .setCurrentCrosstabReportElement((CrosstabReportElement) re);
04583:                        cpd.setVisible(true);
04584:                    }
04585:                }
04586:
04587:            }//GEN-LAST:event_jButton2ActionPerformed
04588:
04589:            private void jTableCrosstabParametersMouseClicked(
04590:                    java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCrosstabParametersMouseClicked
04591:                if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
04592:                    if (jTableCrosstabParameters.getSelectedRowCount() > 0) {
04593:                        jButtonModCrosstabParameterActionPerformed(null);
04594:                    }
04595:                }
04596:            }//GEN-LAST:event_jTableCrosstabParametersMouseClicked
04597:
04598:            private void jButtonRemCrosstabParameterActionPerformed(
04599:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemCrosstabParameterActionPerformed
04600:                if (this .isInit())
04601:                    return;
04602:
04603:                if (jrf == null || getElementSelection().size() == 0)
04604:                    return;
04605:
04606:                Enumeration e = getElementSelection().elements();
04607:                CrosstabReportElement element = (CrosstabReportElement) e
04608:                        .nextElement();
04609:
04610:                jTableCrosstabParameters.getSelectedRows();
04611:                int[] rows = jTableCrosstabParameters.getSelectedRows();
04612:                while (jTableCrosstabParameters.getSelectedRowCount() > 0) {
04613:                    int i = jTableCrosstabParameters.getSelectedRow();
04614:                    element.getCrosstabParameters().removeElement(
04615:                            jTableCrosstabParameters.getValueAt(i, 0));
04616:                    ((javax.swing.table.DefaultTableModel) jTableCrosstabParameters
04617:                            .getModel()).removeRow(i);
04618:
04619:                }
04620:                jTableCrosstabParameters.updateUI();
04621:                jrf
04622:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04623:                                jrf, getElementSelection(),
04624:                                ReportElementChangedEvent.CHANGED));
04625:
04626:            }//GEN-LAST:event_jButtonRemCrosstabParameterActionPerformed
04627:
04628:            private void jButtonModCrosstabParameterActionPerformed(
04629:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModCrosstabParameterActionPerformed
04630:                if (this .isInit())
04631:                    return;
04632:
04633:                if (jrf == null || getElementSelection().size() == 0)
04634:                    return;
04635:
04636:                modifyCrosstabParameter(CrosstabParameterDialog.COMPONENT_NONE);
04637:
04638:            }//GEN-LAST:event_jButtonModCrosstabParameterActionPerformed
04639:
04640:            private void jButtonAddCrosstabParameterActionPerformed(
04641:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddCrosstabParameterActionPerformed
04642:                if (this .isInit())
04643:                    return;
04644:
04645:                if (jrf == null || getElementSelection().size() == 0)
04646:                    return;
04647:                // Set the new value for all selected elements...
04648:                Enumeration e = getElementSelection().elements();
04649:                CrosstabReportElement element = (CrosstabReportElement) e
04650:                        .nextElement();
04651:
04652:                it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog jrpd = new it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog(
04653:                        this , true);
04654:                jrpd.setVisible(true);
04655:
04656:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
04657:                    it.businesslogic.ireport.crosstab.CrosstabParameter parameter = jrpd
04658:                            .getParameter();
04659:                    element.getCrosstabParameters().addElement(parameter);
04660:                    javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableCrosstabParameters
04661:                            .getModel();
04662:                    dtm.addRow(new Object[] { parameter,
04663:                            parameter.getParameterValueExpression() });
04664:                    jTableCrosstabParameters.updateUI();
04665:
04666:                    jrf
04667:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04668:                                    jrf, getElementSelection(),
04669:                                    ReportElementChangedEvent.CHANGED));
04670:
04671:                }
04672:            }//GEN-LAST:event_jButtonAddCrosstabParameterActionPerformed
04673:
04674:            private void jNumberFieldColumnBreakOffsetActionPerformed(
04675:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldColumnBreakOffsetActionPerformed
04676:                if (jrf == null || getElementSelection().size() == 0)
04677:                    return;
04678:                // Set the new value for all selected elements...
04679:                Enumeration e = getElementSelection().elements();
04680:
04681:                while (e.hasMoreElements()) {
04682:                    CrosstabReportElement element = (CrosstabReportElement) e
04683:                            .nextElement();
04684:                    element
04685:                            .setColumnBreakOffset((int) jNumberFieldColumnBreakOffset
04686:                                    .getValue());
04687:
04688:                }
04689:
04690:                jrf
04691:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04692:                                jrf, getElementSelection(),
04693:                                ReportElementChangedEvent.CHANGED));
04694:
04695:            }//GEN-LAST:event_jNumberFieldColumnBreakOffsetActionPerformed
04696:
04697:            private void jCheckBoxRepeatRowHeadersActionPerformed(
04698:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxRepeatRowHeadersActionPerformed
04699:                if (this .isInit())
04700:                    return;
04701:
04702:                // Set band to all....
04703:                if (jrf == null || getElementSelection().size() == 0)
04704:                    return;
04705:                // Set the new value for all selected elements...
04706:                Enumeration e = getElementSelection().elements();
04707:                while (e.hasMoreElements()) {
04708:                    CrosstabReportElement element = (CrosstabReportElement) e
04709:                            .nextElement();
04710:                    element.setRepeatRowHeaders(jCheckBoxRepeatRowHeaders
04711:                            .isSelected());
04712:                }
04713:
04714:                jrf
04715:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04716:                                jrf, getElementSelection(),
04717:                                ReportElementChangedEvent.CHANGED));
04718:
04719:            }//GEN-LAST:event_jCheckBoxRepeatRowHeadersActionPerformed
04720:
04721:            private void jCheckBoxRepeatColumnHeadersActionPerformed(
04722:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxRepeatColumnHeadersActionPerformed
04723:                if (this .isInit())
04724:                    return;
04725:
04726:                // Set band to all....
04727:                if (jrf == null || getElementSelection().size() == 0)
04728:                    return;
04729:                // Set the new value for all selected elements...
04730:                Enumeration e = getElementSelection().elements();
04731:                while (e.hasMoreElements()) {
04732:                    CrosstabReportElement element = (CrosstabReportElement) e
04733:                            .nextElement();
04734:                    element.setRepeatColumnHeaders(jCheckBoxRepeatColumnHeaders
04735:                            .isSelected());
04736:                }
04737:
04738:                jrf
04739:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04740:                                jrf, getElementSelection(),
04741:                                ReportElementChangedEvent.CHANGED));
04742:
04743:            }//GEN-LAST:event_jCheckBoxRepeatColumnHeadersActionPerformed
04744:
04745:            private void jComboBoxStyleActionPerformed(
04746:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxStyleActionPerformed
04747:
04748:                if (this .isInit())
04749:                    return;
04750:
04751:                // Set the new value for all selected elements...
04752:                Style s = null;
04753:                if (jComboBoxStyle.getSelectedIndex() <= 0) {
04754:                    s = null;
04755:                } else {
04756:                    s = (Style) jComboBoxStyle.getSelectedItem();
04757:                }
04758:
04759:                Enumeration e = getElementSelection().elements();
04760:                while (e.hasMoreElements()) {
04761:                    ReportElement element = (ReportElement) e.nextElement();
04762:                    element.setStyle(s);
04763:
04764:                }
04765:
04766:                jrf
04767:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04768:                                jrf, getElementSelection(),
04769:                                ReportElementChangedEvent.CHANGED));
04770:                // Update coords...
04771:                repaintEditor();
04772:
04773:            }//GEN-LAST:event_jComboBoxStyleActionPerformed
04774:
04775:            private void jTableSubreportReturnValuesMouseClicked(
04776:                    java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableSubreportReturnValuesMouseClicked
04777:
04778:                if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
04779:                    if (jTableSubreportReturnValues.getSelectedRowCount() > 0) {
04780:                        jButtonModReturnValueActionPerformed(null);
04781:                    }
04782:                }
04783:
04784:            }//GEN-LAST:event_jTableSubreportReturnValuesMouseClicked
04785:
04786:            private void jTableSubreportParametersMouseClicked(
04787:                    java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableSubreportParametersMouseClicked
04788:                if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
04789:                    if (jTableSubreportParameters.getSelectedRowCount() > 0) {
04790:                        jButtonModParameterActionPerformed(null);
04791:                    }
04792:                }
04793:            }//GEN-LAST:event_jTableSubreportParametersMouseClicked
04794:
04795:            private void jComboBoxImageOnErrorActionPerformed(
04796:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxImageOnErrorActionPerformed
04797:                if (this .isInit())
04798:                    return;
04799:
04800:                // Set band to all....
04801:                if (jrf == null
04802:                        || getElementSelection().size() == 0
04803:                        || Misc.getComboboxSelectedValue(jComboBoxImageOnError) == null
04804:                        || (Misc
04805:                                .getComboboxSelectedValue(jComboBoxImageOnError) + "")
04806:                                .equals(""))
04807:                    return;
04808:                // Set the new value for all selected elements...
04809:                Enumeration e = getElementSelection().elements();
04810:                while (e.hasMoreElements()) {
04811:                    ImageReportElement element = (ImageReportElement) e
04812:                            .nextElement();
04813:                    element
04814:                            .setOnErrorType(""
04815:                                    + Misc
04816:                                            .getComboboxSelectedValue(jComboBoxImageOnError));
04817:                }
04818:
04819:                this .jComboBoxImageOnError.removeItem("");
04820:                jrf
04821:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04822:                                jrf, getElementSelection(),
04823:                                ReportElementChangedEvent.CHANGED));
04824:
04825:            }//GEN-LAST:event_jComboBoxImageOnErrorActionPerformed
04826:
04827:            private void jSpinnerBookmarkLevelStateChanged(
04828:                    javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jSpinnerBookmarkLevelStateChanged
04829:                if (this .isInit())
04830:                    return;
04831:
04832:                if (jrf == null
04833:                        || getElementSelection().size() == 0
04834:                        || jComboBoxLinkTarget.getSelectedItem() == null
04835:                        || (jComboBoxLinkTarget.getSelectedItem() + "")
04836:                                .equals(""))
04837:                    return;
04838:                Enumeration e = getElementSelection().elements();
04839:                while (e.hasMoreElements()) {
04840:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
04841:                            .nextElement();
04842:                    element.setBookmarkLevel(((Integer) jSpinnerBookmarkLevel
04843:                            .getValue()).intValue());
04844:                }
04845:                jrf
04846:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04847:                                jrf, getElementSelection(),
04848:                                ReportElementChangedEvent.CHANGED));
04849:
04850:            }//GEN-LAST:event_jSpinnerBookmarkLevelStateChanged
04851:
04852:            private void jButtonRemReturnValueActionPerformed(
04853:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemReturnValueActionPerformed
04854:                if (this .isInit())
04855:                    return;
04856:
04857:                if (jrf == null || getElementSelection().size() == 0)
04858:                    return;
04859:
04860:                Enumeration e = getElementSelection().elements();
04861:                SubReportElement element = (SubReportElement) e.nextElement();
04862:
04863:                //jTableSubreportReturnValues.getSelectedRows();
04864:                //int[]  rows= jTableSubreportReturnValues.getSelectedRows();
04865:                //for (int i=rows.length-1; i>=0; --i) {
04866:
04867:                javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportReturnValues
04868:                        .getModel();
04869:                while (jTableSubreportReturnValues.getSelectedRow() >= 0) {
04870:                    element.getReturnValues().removeElement(
04871:                            jTableSubreportReturnValues.getValueAt(
04872:                                    jTableSubreportReturnValues
04873:                                            .getSelectedRow(), 0));
04874:                    dtm.removeRow(jTableSubreportReturnValues.getSelectedRow());
04875:                }
04876:                jrf
04877:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04878:                                jrf, getElementSelection(),
04879:                                ReportElementChangedEvent.CHANGED));
04880:
04881:            }//GEN-LAST:event_jButtonRemReturnValueActionPerformed
04882:
04883:            private void jButtonModReturnValueActionPerformed(
04884:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModReturnValueActionPerformed
04885:                if (this .isInit())
04886:                    return;
04887:
04888:                if (jrf == null || getElementSelection().size() == 0)
04889:                    return;
04890:
04891:                Enumeration e = getElementSelection().elements();
04892:                SubReportElement element = (SubReportElement) e.nextElement();
04893:
04894:                JRSubreportReturnValue returnValue = (JRSubreportReturnValue) jTableSubreportReturnValues
04895:                        .getValueAt(jTableSubreportReturnValues
04896:                                .getSelectedRow(), 0);
04897:
04898:                JRSubreportReturnValueDialog jrpd = new JRSubreportReturnValueDialog(
04899:                        this , true);
04900:                jrpd.setSubreportReturnValue(returnValue);
04901:                jrpd.setVisible(true);
04902:
04903:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
04904:                    returnValue.setSubreportVariable(jrpd
04905:                            .getSubreportReturnValue().getSubreportVariable());
04906:                    returnValue.setToVariable(jrpd.getSubreportReturnValue()
04907:                            .getToVariable());
04908:                    returnValue.setCalculation(jrpd.getSubreportReturnValue()
04909:                            .getCalculation());
04910:                    returnValue.setIncrementFactoryClass(jrpd
04911:                            .getSubreportReturnValue()
04912:                            .getIncrementFactoryClass());
04913:
04914:                    javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportReturnValues
04915:                            .getModel();
04916:                    dtm.setValueAt(returnValue, jTableSubreportReturnValues
04917:                            .getSelectedRow(), 0);
04918:                    dtm.setValueAt(returnValue.getToVariable(),
04919:                            jTableSubreportReturnValues.getSelectedRow(), 1);
04920:
04921:                    jrf
04922:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04923:                                    jrf, getElementSelection(),
04924:                                    ReportElementChangedEvent.CHANGED));
04925:
04926:                }
04927:            }//GEN-LAST:event_jButtonModReturnValueActionPerformed
04928:
04929:            private void jButtonAddReturnValueActionPerformed(
04930:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddReturnValueActionPerformed
04931:                if (this .isInit())
04932:                    return;
04933:
04934:                if (jrf == null || getElementSelection().size() == 0)
04935:                    return;
04936:                // Set the new value for all selected elements...
04937:                Enumeration e = getElementSelection().elements();
04938:                SubReportElement element = (SubReportElement) e.nextElement();
04939:
04940:                Vector variables = it.businesslogic.ireport.gui.MainFrame
04941:                        .getMainInstance().getActiveReportFrame().getReport()
04942:                        .getVariables();
04943:                int var_count = 0;
04944:                for (int i = 0; i < variables.size(); ++i) {
04945:                    JRVariable var = (JRVariable) variables.elementAt(i);
04946:                    if (!var.isBuiltin()) {
04947:                        var_count++;
04948:                    }
04949:                }
04950:
04951:                if (var_count == 0) {
04952:                    javax.swing.JOptionPane
04953:                            .showMessageDialog(
04954:                                    this ,
04955:                                    I18n
04956:                                            .getString(
04957:                                                    "messages.elementPropertiesDialgo.noVariableAvailable",
04958:                                                    "No variables are available in this report to store a return value.\nPlease define a variable first."),
04959:                                    I18n
04960:                                            .getString(
04961:                                                    "messages.elementPropertiesDialgo.noVariableAvailableCaption",
04962:                                                    "No variables"),
04963:                                    javax.swing.JOptionPane.WARNING_MESSAGE);
04964:                    return;
04965:                }
04966:
04967:                JRSubreportReturnValueDialog jrpd = new JRSubreportReturnValueDialog(
04968:                        this , true);
04969:                jrpd.setVisible(true);
04970:
04971:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
04972:                    it.businesslogic.ireport.JRSubreportReturnValue returnValue = jrpd
04973:                            .getSubreportReturnValue();
04974:                    element.getReturnValues().addElement(returnValue);
04975:                    javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportReturnValues
04976:                            .getModel();
04977:                    dtm.addRow(new Object[] { returnValue,
04978:                            returnValue.getToVariable() });
04979:                    jrf
04980:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
04981:                                    jrf, getElementSelection(),
04982:                                    ReportElementChangedEvent.CHANGED));
04983:
04984:                }
04985:            }//GEN-LAST:event_jButtonAddReturnValueActionPerformed
04986:
04987:            private void jCheckBoxImageIsLazyActionPerformed(
04988:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxImageIsLazyActionPerformed
04989:                if (jrf == null || getElementSelection().size() == 0)
04990:                    return;
04991:                // Set the new value for all selected elements...
04992:                Enumeration e = getElementSelection().elements();
04993:                while (e.hasMoreElements()) {
04994:                    ImageReportElement element = (ImageReportElement) e
04995:                            .nextElement();
04996:                    element.setIsLazy(jCheckBoxImageIsLazy.isSelected());
04997:                }
04998:                jrf
04999:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05000:                                jrf, getElementSelection(),
05001:                                ReportElementChangedEvent.CHANGED));
05002:
05003:            }//GEN-LAST:event_jCheckBoxImageIsLazyActionPerformed
05004:
05005:            private void jComboBoxPatternFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jComboBoxPatternFocusLost
05006:                //jComboBoxPatternActionPerformed(new java.awt.event.ActionEvent(evt.getSource(),0,""));
05007:            }//GEN-LAST:event_jComboBoxPatternFocusLost
05008:
05009:            private void jComboBoxLinkTargetActionPerformed(
05010:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLinkTargetActionPerformed
05011:                if (this .isInit())
05012:                    return;
05013:
05014:                if (jrf == null
05015:                        || getElementSelection().size() == 0
05016:                        || jComboBoxLinkTarget.getSelectedItem() == null
05017:                        || (jComboBoxLinkTarget.getSelectedItem() + "")
05018:                                .equals(""))
05019:                    return;
05020:                Enumeration e = getElementSelection().elements();
05021:                while (e.hasMoreElements()) {
05022:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
05023:                            .nextElement();
05024:                    element.setHyperlinkTarget(""
05025:                            + jComboBoxLinkTarget.getSelectedItem());
05026:                }
05027:                jComboBoxLinkTarget.removeItem("");
05028:                jrf
05029:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05030:                                jrf, getElementSelection(),
05031:                                ReportElementChangedEvent.CHANGED));
05032:
05033:            }//GEN-LAST:event_jComboBoxLinkTargetActionPerformed
05034:
05035:            private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
05036:
05037:                if (getElementSelection().elementAt(0) instanceof  ChartReportElement) {
05038:                    it.businesslogic.ireport.chart.gui.IReportChartDialog icd = new it.businesslogic.ireport.chart.gui.IReportChartDialog(
05039:                            this , true);
05040:                    icd.setJReportFrame(jrf);
05041:                    ChartReportElement cre = (ChartReportElement) getElementSelection()
05042:                            .elementAt(0);
05043:                    icd.setProperties(cre.getProps());
05044:                    icd.setVisible(true);
05045:                    if (icd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
05046:                        // Integrate properties...
05047:                        Properties props = icd.getProperties();
05048:                        Iterator keys = props.keySet().iterator();
05049:                        while (keys.hasNext()) {
05050:                            String key = "" + keys.next();
05051:                            String val = props.getProperty(key);
05052:                            cre.getProps().setProperty(key, val);
05053:
05054:                        }
05055:
05056:                        cre.updateChartImage();
05057:                        jrf
05058:                                .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05059:                                        jrf, getElementSelection(),
05060:                                        ReportElementChangedEvent.CHANGED));
05061:
05062:                        //setImg( it.businesslogic.ireport.chart.AvailableCharts.getChartIcon( props.getProperty("chartName")).getImage());
05063:                        repaintEditor();
05064:                    }
05065:                } else if (getElementSelection().elementAt(0) instanceof  ChartReportElement2) {
05066:                    ChartReportElement2 cre = (ChartReportElement2) getElementSelection()
05067:                            .elementAt(0);
05068:                    it.businesslogic.ireport.chart.gui.ChartPropertiesDialog cpd = new it.businesslogic.ireport.chart.gui.ChartPropertiesDialog(
05069:                            this , true);
05070:
05071:                    try {
05072:                        cpd.setJReportFrame(jrf);
05073:                        cpd.setChartElement(cre);
05074:                        cpd.setVisible(true);
05075:                    } catch (Exception ex) {
05076:                        ex.printStackTrace();
05077:                    }
05078:                    if (cpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
05079:                        //repaintEditor();
05080:                    }
05081:                }
05082:
05083:            }//GEN-LAST:event_jButton1ActionPerformed
05084:
05085:            private void jComboBoxImageGroup1ActionPerformed(
05086:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxImageGroup1ActionPerformed
05087:                if (this .isInit())
05088:                    return;
05089:
05090:                // Set band to all....
05091:                if (jrf == null
05092:                        || getElementSelection().size() == 0
05093:                        || jComboBoxImageGroup1.getSelectedItem() == null
05094:                        || (jComboBoxImageGroup1.getSelectedItem() + "")
05095:                                .equals(""))
05096:                    return;
05097:                // Set the new value for all selected elements...
05098:                Enumeration e = getElementSelection().elements();
05099:                while (e.hasMoreElements()) {
05100:                    ReportElement element = (ReportElement) e.nextElement();
05101:                    if (element instanceof  ImageReportElement) {
05102:                        ((ImageReportElement) element).setEvaluationGroup(""
05103:                                + jComboBoxImageGroup1.getSelectedItem());
05104:                    } else if (element instanceof  ChartReportElement2) {
05105:                        ((ChartReportElement2) element).setEvaluationGroup(""
05106:                                + jComboBoxImageGroup1.getSelectedItem());
05107:                    }
05108:                }
05109:                jrf
05110:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05111:                                jrf, getElementSelection(),
05112:                                ReportElementChangedEvent.CHANGED));
05113:
05114:                this .jComboBoxImageGroup1.removeItem("");
05115:            }//GEN-LAST:event_jComboBoxImageGroup1ActionPerformed
05116:
05117:            private void jComboBoxEvaluationTime1ActionPerformed(
05118:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxEvaluationTime1ActionPerformed
05119:                if (this .isInit())
05120:                    return;
05121:
05122:                // Set band to all....
05123:                if (jrf == null
05124:                        || getElementSelection().size() == 0
05125:                        || Misc
05126:                                .getComboboxSelectedValue(jComboBoxEvaluationTime1) == null
05127:                        || (Misc
05128:                                .getComboboxSelectedValue(jComboBoxEvaluationTime1) + "")
05129:                                .equals(""))
05130:                    return;
05131:                // Set the new value for all selected elements...
05132:                Enumeration e = getElementSelection().elements();
05133:                while (e.hasMoreElements()) {
05134:                    ReportElement element = (ReportElement) e.nextElement();
05135:                    if (element instanceof  ImageReportElement) {
05136:                        ((ImageReportElement) element)
05137:                                .setEvaluationTime(""
05138:                                        + Misc
05139:                                                .getComboboxSelectedValue(jComboBoxEvaluationTime1));
05140:                    } else if (element instanceof  ChartReportElement2) {
05141:
05142:                        ((ChartReportElement2) element)
05143:                                .setEvaluationTime(""
05144:                                        + Misc
05145:                                                .getComboboxSelectedValue(jComboBoxEvaluationTime1));
05146:                    }
05147:                }
05148:                jrf
05149:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05150:                                jrf, getElementSelection(),
05151:                                ReportElementChangedEvent.CHANGED));
05152:
05153:                this .jComboBoxEvaluationTime1.removeItem("");
05154:            }//GEN-LAST:event_jComboBoxEvaluationTime1ActionPerformed
05155:
05156:            private void jButtonCreatePatternActionPerformed(
05157:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCreatePatternActionPerformed
05158:
05159:                FieldPatternDialog fpd = new FieldPatternDialog(MainFrame
05160:                        .getMainInstance(), true);
05161:                fpd.setVisible(true);
05162:                if (fpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
05163:                    jComboBoxPattern.setSelectedItem(fpd.getPattern());
05164:                }
05165:
05166:            }//GEN-LAST:event_jButtonCreatePatternActionPerformed
05167:
05168:            private void jComboBoxBarcodeGroupActionPerformed(
05169:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxBarcodeGroupActionPerformed
05170:                if (this .isInit())
05171:                    return;
05172:
05173:                // Set band to all....
05174:                if (jrf == null
05175:                        || getElementSelection().size() == 0
05176:                        || jComboBoxBarcodeGroup.getSelectedItem() == null
05177:                        || (jComboBoxBarcodeGroup.getSelectedItem() + "")
05178:                                .equals(""))
05179:                    return;
05180:                // Set the new value for all selected elements...
05181:                Enumeration e = getElementSelection().elements();
05182:                while (e.hasMoreElements()) {
05183:                    ImageReportElement element = (ImageReportElement) e
05184:                            .nextElement();
05185:                    element.setEvaluationGroup(""
05186:                            + jComboBoxBarcodeGroup.getSelectedItem());
05187:                }
05188:                jrf
05189:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05190:                                jrf, getElementSelection(),
05191:                                ReportElementChangedEvent.CHANGED));
05192:
05193:                this .jComboBoxBarcodeGroup.removeItem("");
05194:            }//GEN-LAST:event_jComboBoxBarcodeGroupActionPerformed
05195:
05196:            private void jComboBoxEvaluationTimeBarcodeActionPerformed(
05197:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxEvaluationTimeBarcodeActionPerformed
05198:                if (this .isInit())
05199:                    return;
05200:
05201:                // Set band to all....
05202:                if (jrf == null
05203:                        || getElementSelection().size() == 0
05204:                        || Misc
05205:                                .getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode) == null
05206:                        || (Misc
05207:                                .getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode) + "")
05208:                                .equals(""))
05209:                    return;
05210:                // Set the new value for all selected elements...
05211:                Enumeration e = getElementSelection().elements();
05212:                while (e.hasMoreElements()) {
05213:                    ImageReportElement element = (ImageReportElement) e
05214:                            .nextElement();
05215:                    element
05216:                            .setEvaluationTime(""
05217:                                    + Misc
05218:                                            .getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode));
05219:                }
05220:                jrf
05221:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05222:                                jrf, getElementSelection(),
05223:                                ReportElementChangedEvent.CHANGED));
05224:
05225:                this .jComboBoxEvaluationTimeBarcode.removeItem("");
05226:            }//GEN-LAST:event_jComboBoxEvaluationTimeBarcodeActionPerformed
05227:
05228:            private void jCheckBoxStyledTextActionPerformed(
05229:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxStyledTextActionPerformed
05230:                if (this .isInit())
05231:                    return;
05232:
05233:                // Set band to all....
05234:                if (jrf == null || getElementSelection().size() == 0)
05235:                    return;
05236:                // Set the new value for all selected elements...
05237:                Enumeration e = getElementSelection().elements();
05238:                while (e.hasMoreElements()) {
05239:                    TextReportElement element = (TextReportElement) e
05240:                            .nextElement();
05241:                    element.setIsStyledText(jCheckBoxStyledText.isSelected());
05242:                    element.setFont(null);
05243:                    /* Adjust PDF font...*/
05244:                }
05245:                fireReportElementsChangedEvent("styledText", ""
05246:                        + jCheckBoxStyledText.isSelected());
05247:                repaintEditor();
05248:            }//GEN-LAST:event_jCheckBoxStyledTextActionPerformed
05249:
05250:            private void jComboBoxRotationActionPerformed(
05251:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxRotationActionPerformed
05252:                if (this .isInit())
05253:                    return;
05254:
05255:                // Set band to all....
05256:                if (jrf == null
05257:                        || getElementSelection().size() == 0
05258:                        || Misc.getComboboxSelectedValue(jComboBoxRotation) == null
05259:                        || (Misc.getComboboxSelectedValue(jComboBoxRotation) + "")
05260:                                .equals(""))
05261:                    return;
05262:                // Set the new value for all selected elements...
05263:                Enumeration e = getElementSelection().elements();
05264:                while (e.hasMoreElements()) {
05265:                    TextReportElement element = (TextReportElement) e
05266:                            .nextElement();
05267:                    element.setRotate(""
05268:                            + Misc.getComboboxSelectedValue(jComboBoxRotation));
05269:                }
05270:                fireReportElementsChangedEvent("rotate", ""
05271:                        + Misc.getComboboxSelectedValue(jComboBoxRotation));
05272:                this .jComboBoxRotation.removeItem("");
05273:                repaintEditor();
05274:            }//GEN-LAST:event_jComboBoxRotationActionPerformed
05275:
05276:            private void BarcodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BarcodeActionPerformed
05277:                if (this .isInit())
05278:                    return;
05279:
05280:                // Set band to all....
05281:                if (jrf == null || getElementSelection().size() == 0)
05282:                    return;
05283:                // Set the new value for all selected elements...
05284:                Enumeration e = getElementSelection().elements();
05285:                while (e.hasMoreElements()) {
05286:                    BarcodeReportElement element = (BarcodeReportElement) e
05287:                            .nextElement();
05288:
05289:                    if (jComboBoxBarcodeType.getSelectedItem() != null
05290:                            && jComboBoxBarcodeType.getSelectedItem() instanceof  Tag) {
05291:                        element
05292:                                .setType(Integer.parseInt(""
05293:                                        + ((Tag) jComboBoxBarcodeType
05294:                                                .getSelectedItem()).getValue()));
05295:                    }
05296:
05297:                    element.setText(jBarcodeExpressionArea.getText());
05298:                    element.setShowText(jCheckBoxBarcodeShowText.isSelected());
05299:                    element.setCheckSum(jCheckBoxBarcodeCheckSum.isSelected());
05300:                    repaintEditor();
05301:
05302:                    //show last error in console
05303:                    if (element.getLastError() != null) {
05304:                        jrf.getMainFrame().logOnConsole(
05305:                                "Error BarcodeReportElement("
05306:                                        + element.getName() + "): "
05307:                                        + element.getLastError() + "\n");
05308:                    }
05309:                }
05310:            }//GEN-LAST:event_BarcodeActionPerformed
05311:
05312:            private void jComboBoxBarcodeTypeActionPerformed(
05313:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxBarcodeTypeActionPerformed
05314:                BarcodeActionPerformed(evt);
05315:            }//GEN-LAST:event_jComboBoxBarcodeTypeActionPerformed
05316:
05317:            private void jNumberFieldLeftActionPerformed(
05318:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldLeftActionPerformed
05319:                if (jrf == null || getElementSelection().size() == 0)
05320:                    return;
05321:                // Set the new value for all selected elements...
05322:                Enumeration e = getElementSelection().elements();
05323:                while (e.hasMoreElements()) {
05324:                    ReportElement element = (ReportElement) e.nextElement();
05325:                    if (element instanceof  BreakReportElement)
05326:                        continue;
05327:                    int normalization = 0;
05328:                    if (element.getParentElement() != null) {
05329:                        normalization = (int) (element.getParentElement()
05330:                                .getPosition().getX()) - 10;
05331:                    } else if (element.getCell() != null) {
05332:                        normalization = element.getCell().getLeft();
05333:                    } else {
05334:                        normalization = jrf.getReport().getLeftMargin();
05335:                    }
05336:
05337:                    element
05338:                            .trasform(
05339:                                    new Point(
05340:                                            (int) jNumberFieldLeft.getValue()
05341:                                                    - (element.getPosition().x - 10 - normalization),
05342:                                            0),
05343:                                    TransformationType.TRANSFORMATION_MOVE);
05344:                    jrf
05345:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05346:                                    jrf, element,
05347:                                    ReportElementChangedEvent.CHANGED));
05348:                }
05349:                repaintEditor();
05350:            }//GEN-LAST:event_jNumberFieldLeftActionPerformed
05351:
05352:            private void jNumberFieldTopActionPerformed(
05353:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldTopActionPerformed
05354:                if (jrf == null || getElementSelection().size() == 0)
05355:                    return;
05356:                // Set the new value for all selected elements...
05357:                Enumeration e = getElementSelection().elements();
05358:                Band last_band = null;
05359:                int y_location = 0;
05360:                while (e.hasMoreElements()) {
05361:                    ReportElement element = (ReportElement) e.nextElement();
05362:                    // 1. Set element properties...
05363:                    // For each panel, search
05364:                    if (element.getBand() != null
05365:                            && (last_band == null || last_band != element
05366:                                    .getBand())) {
05367:                        y_location = this .jrf.getReport().getBandYLocation(
05368:                                element.getBand());
05369:                        last_band = element.getBand();
05370:                    }
05371:
05372:                    if (element.getBand() == null && element.getCell() != null) {
05373:                        y_location = element.getCell().getTop();
05374:                    }
05375:
05376:                    if (element.getParentElement() != null) {
05377:                        y_location = (int) (element.getParentElement()
05378:                                .getPosition().getY()) - 10;
05379:                    }
05380:
05381:                    element.trasform(new Point(0, (int) jNumberFieldTop
05382:                            .getValue()
05383:                            - (element.getPosition().y - 10 - y_location)),
05384:                            TransformationType.TRANSFORMATION_MOVE);
05385:                    jrf
05386:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05387:                                    jrf, element,
05388:                                    ReportElementChangedEvent.CHANGED));
05389:
05390:                }
05391:                repaintEditor();
05392:            }//GEN-LAST:event_jNumberFieldTopActionPerformed
05393:
05394:            private void jComboBoxBandActionPerformed(
05395:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxBandActionPerformed
05396:                if (this .isInit())
05397:                    return;
05398:
05399:                // Set band to all....
05400:                if (jrf == null
05401:                        || getElementSelection().size() == 0
05402:                        || jComboBoxBand.getSelectedItem() == null
05403:                        || (jComboBoxBand.getSelectedIndex() == 0 && (jComboBoxBand
05404:                                .getSelectedItem() + "").trim().equals("")))
05405:                    return;
05406:                // Set the new value for all selected elements...
05407:                Enumeration e = getElementSelection().elements();
05408:                while (e.hasMoreElements()) {
05409:                    ReportElement element = (ReportElement) e.nextElement();
05410:
05411:                    if (jrf.getSelectedCrosstabEditorPanel() == null) {
05412:                        element.setBand((Band) jComboBoxBand.getSelectedItem());
05413:                    } else {
05414:                        element.setCell((CrosstabCell) jComboBoxBand
05415:                                .getSelectedItem());
05416:                        element.setRelativePosition(new Point(element
05417:                                .getPosition().x
05418:                                - element.getCell().getLeft() - 10, element
05419:                                .getPosition().y
05420:                                - element.getCell().getTop() - 10));
05421:                    }
05422:
05423:                }
05424:                jrf
05425:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05426:                                jrf, getElementSelection(),
05427:                                ReportElementChangedEvent.CHANGED));
05428:
05429:                // Update coords...
05430:                repaintEditor();
05431:
05432:                e = getElementSelection().elements();
05433:                boolean isTheFirstElement = true;
05434:                if (jrf.getSelectedCrosstabEditorPanel() == null) {
05435:                    Band last_band = null;
05436:                    int y_location = 0;
05437:                    while (e.hasMoreElements()) {
05438:                        ReportElement re = (ReportElement) e.nextElement();
05439:                        // 1. Set element properties...
05440:                        // For each panel, search
05441:                        if (last_band == null || last_band != re.getBand()) {
05442:                            y_location = this .jrf.getReport().getBandYLocation(
05443:                                    re.getBand());
05444:                            last_band = re.getBand();
05445:                        }
05446:
05447:                        this .setElementNumber(isTheFirstElement, re.getWidth(),
05448:                                jNumberFieldWidth);
05449:                        this .setElementNumber(isTheFirstElement,
05450:                                re.getHeight(), jNumberFieldHeight);
05451:                        this .setElementNumber(isTheFirstElement, re
05452:                                .getPosition().x
05453:                                - 10 - this .jrf.getReport().getLeftMargin(),
05454:                                jNumberFieldLeft);
05455:                        this .setElementNumber(isTheFirstElement, re
05456:                                .getPosition().y
05457:                                - y_location - 10, jNumberFieldTop);
05458:
05459:                        this .setCheckBox(isTheFirstElement, re.getTransparent()
05460:                                .equals("Transparent"), jCheckBoxTransparent);
05461:                        isTheFirstElement = false;
05462:                    }
05463:                } else {
05464:                    CrosstabCell cell = null;
05465:                    while (e.hasMoreElements()) {
05466:                        ReportElement re = (ReportElement) e.nextElement();
05467:                        cell = re.getCell();
05468:                        if (cell != null) {
05469:                            this .setElementNumber(isTheFirstElement, re
05470:                                    .getPosition().x
05471:                                    - 10 - cell.getLeft(), jNumberFieldLeft);
05472:                            this .setElementNumber(isTheFirstElement, re
05473:                                    .getPosition().y
05474:                                    - 10 - cell.getTop(), jNumberFieldTop);
05475:                            isTheFirstElement = false;
05476:                        }
05477:                    }
05478:                }
05479:
05480:                if (!("" + this .jComboBoxBand.getSelectedItem()).equals("")) {
05481:                    this .jComboBoxBand.removeItem("");
05482:                }
05483:            }//GEN-LAST:event_jComboBoxBandActionPerformed
05484:
05485:            private void jNumberFieldHeightActionPerformed(
05486:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldHeightActionPerformed
05487:                if (jrf == null || getElementSelection().size() == 0)
05488:                    return;
05489:                // Set the new value for all selected elements...
05490:                Enumeration e = getElementSelection().elements();
05491:                while (e.hasMoreElements()) {
05492:                    ReportElement element = (ReportElement) e.nextElement();
05493:                    if (element instanceof  BreakReportElement)
05494:                        continue;
05495:                    element.trasform(new Point(0, (int) jNumberFieldHeight
05496:                            .getValue()
05497:                            - element.getHeight()),
05498:                            TransformationType.TRANSFORMATION_RESIZE_S);
05499:                    jrf
05500:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05501:                                    jrf, element,
05502:                                    ReportElementChangedEvent.CHANGED));
05503:                }
05504:                repaintEditor();
05505:            }//GEN-LAST:event_jNumberFieldHeightActionPerformed
05506:
05507:            private void jNumberFieldWidthActionPerformed(
05508:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldWidthActionPerformed
05509:                if (jrf == null || getElementSelection().size() == 0)
05510:                    return;
05511:                // Set the new value for all selected elements...
05512:                Enumeration e = getElementSelection().elements();
05513:                while (e.hasMoreElements()) {
05514:                    ReportElement element = (ReportElement) e.nextElement();
05515:                    if (element instanceof  BreakReportElement)
05516:                        continue;
05517:                    element.trasform(new Point((int) jNumberFieldWidth
05518:                            .getValue()
05519:                            - element.getWidth(), 0),
05520:                            TransformationType.TRANSFORMATION_RESIZE_E);
05521:                    jrf
05522:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05523:                                    jrf, element,
05524:                                    ReportElementChangedEvent.CHANGED));
05525:                }
05526:
05527:                repaintEditor();
05528:            }//GEN-LAST:event_jNumberFieldWidthActionPerformed
05529:
05530:            private void jButtonForegroundActionPerformed(
05531:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonForegroundActionPerformed
05532:                java.awt.Color color = HexColorChooserPanel.showDialog(this ,
05533:                        "Select foreground color...", this .jButtonForeground
05534:                                .getBackground());
05535:                if (color != null) {
05536:                    this .jButtonForeground.setBackground(color);
05537:
05538:                    if (jrf == null || getElementSelection().size() == 0)
05539:                        return;
05540:                    // Set the new value for all selected elements...
05541:                    Enumeration e = getElementSelection().elements();
05542:                    while (e.hasMoreElements()) {
05543:                        ReportElement element = (ReportElement) e.nextElement();
05544:                        element.setFgcolor(color);
05545:                    }
05546:                    jrf
05547:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05548:                                    jrf, getElementSelection(),
05549:                                    ReportElementChangedEvent.CHANGED));
05550:                    repaintEditor();
05551:                }
05552:            }//GEN-LAST:event_jButtonForegroundActionPerformed
05553:
05554:            private void jButtonBackgroundActionPerformed(
05555:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBackgroundActionPerformed
05556:
05557:                java.awt.Color color = HexColorChooserPanel.showDialog(null,
05558:                        "Select background color...", this .jButtonBackground
05559:                                .getBackground());
05560:
05561:                if (color != null) {
05562:                    this .jButtonBackground.setBackground(color);
05563:                    if (jrf == null || getElementSelection().size() == 0)
05564:                        return;
05565:                    // Set the new value for all selected elements...
05566:                    Enumeration e = getElementSelection().elements();
05567:                    while (e.hasMoreElements()) {
05568:                        ReportElement element = (ReportElement) e.nextElement();
05569:                        element.setBgcolor(color);
05570:
05571:                        // Adaptation by Robert Lamping
05572:                        // RFE: 704101 [B]
05573:                        // setting a background color, resets transparency to false.
05574:                        if (!element.getTransparent().equals("Opaque")) {
05575:                            element.setTransparent("Opaque");
05576:                        }
05577:                        // end of adaptation
05578:                    }
05579:                    jrf
05580:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
05581:                                    jrf, getElementSelection(),
05582:                                    ReportElementChangedEvent.CHANGED));
05583:                    // Adaptation by Robert Lamping
05584:                    // RFE: 704101 [B]
05585:                    // setting a background color, resets transparency to false.
05586:                    setInit(true);
05587:                    this .jCheckBoxTransparent.setSelected(false);
05588:                    setInit(false);
05589:                    jrf.getMainFrame().logOnConsole(
05590:                            "Transparency switched off! \n");
05591:                    // End of adaptation
05592:
05593:                    repaintEditor();
05594:                }
05595:
05596:            }//GEN-LAST:event_jButtonBackgroundActionPerformed
05597:
05598:            private void jComboBoxReportFontActionPerformed(
05599:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxReportFontActionPerformed
05600:                if (this .isInit())
05601:                    return;
05602:
05603:                // Set band to all....
05604:                if (jrf == null || getElementSelection().size() == 0
05605:                        || jComboBoxReportFont.getSelectedItem() == null)
05606:                    return;
05607:
05608:                // Set the new value for all selected elements...
05609:                // Looking for the selected report font...
05610:                Enumeration fonts = jrf.getReport().getFonts().elements();
05611:                IReportFont font = null;
05612:                while (fonts.hasMoreElements()) {
05613:                    font = (IReportFont) fonts.nextElement();
05614:                    if (font != null
05615:                            && font.getReportFont().equals(
05616:                                    "" + jComboBoxReportFont.getSelectedItem())) {
05617:                        break;
05618:                    } else
05619:                        font = null;
05620:                }
05621:
05622:                String reportFontName = "";
05623:                if (font == null)
05624:                    reportFontName = "";
05625:                else
05626:                    reportFontName = font.getReportFont();
05627:
05628:                Enumeration e = getElementSelection().elements();
05629:                while (e.hasMoreElements()) {
05630:                    TextReportElement element = (TextReportElement) e
05631:                            .nextElement();
05632:                    element.setReportFont(reportFontName);
05633:                    if (font != null) {
05634:                        element.setFontName(font.getFontName());
05635:                        element.setBold(font.isBold());
05636:                        element.setItalic(font.isItalic());
05637:                        element.setUnderline(font.isUnderline());
05638:                        element.setStrikeTrought(font.isStrikeTrought());
05639:                        element.setPDFFontName(font.getPDFFontName());
05640:                        element.setPdfEmbedded(font.isPdfEmbedded());
05641:                        element.setPdfEncoding(font.getPdfEncoding());
05642:                        element.setTTFFont(font.getTTFFont());
05643:                        element.setFontSize(font.getFontSize());
05644:                    }
05645:                }
05646:
05647:                this .updateSelection();
05648:                this .jrf.getReportPanel().repaint();
05649:
05650:                this .jComboBoxFontName.removeItem("");
05651:                repaintEditor();
05652:            }//GEN-LAST:event_jComboBoxReportFontActionPerformed
05653:
05654:            private void jComboBoxLinkTypeActionPerformed(
05655:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLinkTypeActionPerformed
05656:                if (this .isInit())
05657:                    return;
05658:
05659:                if (jrf == null
05660:                        || getElementSelection().size() == 0
05661:                        || jComboBoxLinkType.getSelectedItem() == null
05662:                        || (jComboBoxLinkType.getSelectedItem() + "")
05663:                                .equals(""))
05664:                    return;
05665:                Enumeration e = getElementSelection().elements();
05666:
05667:                jTabbedPane2.removeAll();
05668:
05669:                if (((String) this .jComboBoxLinkType.getSelectedItem())
05670:                        .equals("None")) {
05671:                    // Set to blank all link fields...
05672:                    while (e.hasMoreElements()) {
05673:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05674:                                .nextElement();
05675:                        element.setHyperlinkType(""
05676:                                + jComboBoxLinkType.getSelectedItem());
05677:                        element.setHyperlinkReferenceExpression("");
05678:                        element.setHyperlinkAnchorExpression("");
05679:                        element.setHyperlinkPageExpression("");
05680:                        element.getLinkParameters().clear();
05681:                        this .jRTextExpressionAreaAnchor.setText("");
05682:                        this .jRTextExpressionAreaAnchor.setEnabled(false);
05683:                        this .jLabelAnchor.setEnabled(false);
05684:                        this .jRTextExpressionAreaPage.setText("");
05685:                        this .jRTextExpressionAreaPage.setEnabled(false);
05686:                        this .jLabelPage.setEnabled(false);
05687:                        this .jRTextExpressionAreaReference.setText("");
05688:                        this .jRTextExpressionAreaReference.setEnabled(false);
05689:                        this .jLabelReference.setEnabled(false);
05690:                        //this.jPanelAnchor.setVisible(false);
05691:                        //this.jPanelPage.setVisible(false);
05692:                        //this.jPanelReference.setVisible(false);
05693:                    }
05694:                } else if (((String) this .jComboBoxLinkType.getSelectedItem())
05695:                        .equals("Reference")) {
05696:                    // Set to blank all link fields...
05697:                    while (e.hasMoreElements()) {
05698:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05699:                                .nextElement();
05700:                        element.setHyperlinkType(""
05701:                                + jComboBoxLinkType.getSelectedItem());
05702:                        element.setHyperlinkReferenceExpression("");
05703:                        element.setHyperlinkAnchorExpression("");
05704:                        element.setHyperlinkPageExpression("");
05705:                        this .jRTextExpressionAreaAnchor.setText("");
05706:                        this .jRTextExpressionAreaAnchor.setEnabled(false);
05707:                        this .jLabelAnchor.setEnabled(false);
05708:                        this .jRTextExpressionAreaPage.setText("");
05709:                        this .jRTextExpressionAreaPage.setEnabled(false);
05710:                        this .jLabelPage.setEnabled(false);
05711:                        this .jRTextExpressionAreaReference.setText("");
05712:                        this .jRTextExpressionAreaReference.setEnabled(true);
05713:                        this .jLabelReference.setEnabled(true);
05714:
05715:                        //this.jPanelAnchor.setVisible(false);
05716:                        //this.jPanelPage.setVisible(false);
05717:
05718:                    }
05719:                    jTabbedPane2.addTab(I18n.getString(
05720:                            "sectionItemHyperlinkPanel.tab.Reference",
05721:                            "Reference"), this .jPanelReference);
05722:                    if (getElementSelection().size() == 1)
05723:                        jTabbedPane2.addTab(I18n.getString(
05724:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05725:                                "Link parameters"), this .jPanelLinkParams);
05726:                    jTabbedPane2.addTab(
05727:                            I18n.getString(
05728:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05729:                                    "Tooltip"), this .jPanelTooltip);
05730:                } else if (((String) this .jComboBoxLinkType.getSelectedItem())
05731:                        .equals("LocalAnchor")) {
05732:                    // Set to blank all link fields...
05733:                    while (e.hasMoreElements()) {
05734:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05735:                                .nextElement();
05736:                        element.setHyperlinkType(""
05737:                                + jComboBoxLinkType.getSelectedItem());
05738:                        element.setHyperlinkReferenceExpression("");
05739:                        element.setHyperlinkAnchorExpression("");
05740:                        element.setHyperlinkPageExpression("");
05741:                        this .jRTextExpressionAreaAnchor.setText("");
05742:                        this .jRTextExpressionAreaAnchor.setEnabled(true);
05743:                        this .jLabelAnchor.setEnabled(true);
05744:                        this .jRTextExpressionAreaPage.setText("");
05745:                        this .jRTextExpressionAreaPage.setEnabled(false);
05746:                        this .jLabelPage.setEnabled(false);
05747:                        this .jRTextExpressionAreaReference.setText("");
05748:                        this .jRTextExpressionAreaReference.setEnabled(false);
05749:                        this .jLabelReference.setEnabled(false);
05750:
05751:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
05752:
05753:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
05754:                    }
05755:                    jTabbedPane2.addTab(I18n.getString(
05756:                            "sectionItemHyperlinkPanel.tab.Anchor", "Anchor"),
05757:                            this .jPanelAnchor);
05758:                    if (getElementSelection().size() == 1)
05759:                        jTabbedPane2.addTab(I18n.getString(
05760:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05761:                                "Link parameters"), this .jPanelLinkParams);
05762:                    jTabbedPane2.addTab(
05763:                            I18n.getString(
05764:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05765:                                    "Tooltip"), this .jPanelTooltip);
05766:                } else if (((String) this .jComboBoxLinkType.getSelectedItem())
05767:                        .equals("LocalPage")) {
05768:                    // Set to blank all link fields...
05769:                    while (e.hasMoreElements()) {
05770:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05771:                                .nextElement();
05772:                        element.setHyperlinkType(""
05773:                                + jComboBoxLinkType.getSelectedItem());
05774:                        element.setHyperlinkReferenceExpression("");
05775:                        element.setHyperlinkAnchorExpression("");
05776:                        element.setHyperlinkPageExpression("");
05777:                        this .jRTextExpressionAreaAnchor.setText("");
05778:                        this .jRTextExpressionAreaAnchor.setEnabled(false);
05779:                        this .jLabelAnchor.setEnabled(false);
05780:                        this .jRTextExpressionAreaPage.setText("");
05781:                        this .jRTextExpressionAreaPage.setEnabled(true);
05782:                        this .jLabelPage.setEnabled(true);
05783:                        this .jRTextExpressionAreaReference.setText("");
05784:                        this .jRTextExpressionAreaReference.setEnabled(false);
05785:                        this .jLabelReference.setEnabled(false);
05786:
05787:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
05788:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
05789:
05790:                    }
05791:                    jTabbedPane2.addTab(I18n.getString(
05792:                            "sectionItemHyperlinkPanel.tab.Page", "Page"),
05793:                            this .jPanelPage);
05794:                    if (getElementSelection().size() == 1)
05795:                        jTabbedPane2.addTab(I18n.getString(
05796:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05797:                                "Link parameters"), this .jPanelLinkParams);
05798:                    jTabbedPane2.addTab(
05799:                            I18n.getString(
05800:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05801:                                    "Tooltip"), this .jPanelTooltip);
05802:
05803:                }
05804:
05805:                else if (((String) this .jComboBoxLinkType.getSelectedItem())
05806:                        .equals("RemoteAnchor")) {
05807:                    // Set to blank all link fields...
05808:                    while (e.hasMoreElements()) {
05809:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05810:                                .nextElement();
05811:                        element.setHyperlinkType(""
05812:                                + jComboBoxLinkType.getSelectedItem());
05813:                        element.setHyperlinkReferenceExpression("");
05814:                        element.setHyperlinkAnchorExpression("");
05815:                        element.setHyperlinkPageExpression("");
05816:                        this .jRTextExpressionAreaAnchor.setText("");
05817:                        this .jRTextExpressionAreaAnchor.setEnabled(true);
05818:                        this .jLabelAnchor.setEnabled(true);
05819:                        this .jRTextExpressionAreaPage.setText("");
05820:                        this .jRTextExpressionAreaPage.setEnabled(false);
05821:                        this .jLabelPage.setEnabled(false);
05822:                        this .jRTextExpressionAreaReference.setText("");
05823:                        this .jRTextExpressionAreaReference.setEnabled(true);
05824:                        this .jLabelReference.setEnabled(true);
05825:
05826:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
05827:                    }
05828:                    jTabbedPane2.addTab(I18n.getString(
05829:                            "sectionItemHyperlinkPanel.tab.Reference",
05830:                            "Reference"), this .jPanelReference);
05831:                    jTabbedPane2.addTab(I18n.getString(
05832:                            "sectionItemHyperlinkPanel.tab.Anchor", "Anchor"),
05833:                            this .jPanelAnchor);
05834:                    if (getElementSelection().size() == 1)
05835:                        jTabbedPane2.addTab(I18n.getString(
05836:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05837:                                "Link parameters"), this .jPanelLinkParams);
05838:                    jTabbedPane2.addTab(
05839:                            I18n.getString(
05840:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05841:                                    "Tooltip"), this .jPanelTooltip);
05842:                } else if (((String) this .jComboBoxLinkType.getSelectedItem())
05843:                        .equals("RemotePage")) {
05844:                    // Set to blank all link fields...
05845:                    while (e.hasMoreElements()) {
05846:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05847:                                .nextElement();
05848:                        element.setHyperlinkType(""
05849:                                + jComboBoxLinkType.getSelectedItem());
05850:                        element.setHyperlinkReferenceExpression("");
05851:                        element.setHyperlinkAnchorExpression("");
05852:                        element.setHyperlinkPageExpression("");
05853:                        this .jRTextExpressionAreaAnchor.setText("");
05854:                        this .jRTextExpressionAreaAnchor.setEnabled(false);
05855:                        this .jLabelAnchor.setEnabled(false);
05856:                        this .jRTextExpressionAreaPage.setText("");
05857:                        this .jRTextExpressionAreaPage.setEnabled(true);
05858:                        this .jLabelPage.setEnabled(true);
05859:                        this .jRTextExpressionAreaReference.setText("");
05860:                        this .jRTextExpressionAreaReference.setEnabled(true);
05861:                        this .jLabelReference.setEnabled(true);
05862:
05863:                        //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
05864:
05865:                    }
05866:                    jTabbedPane2.addTab(I18n.getString(
05867:                            "sectionItemHyperlinkPanel.tab.Reference",
05868:                            "Reference"), this .jPanelReference);
05869:                    jTabbedPane2.addTab(I18n.getString(
05870:                            "sectionItemHyperlinkPanel.tab.Page", "Page"),
05871:                            this .jPanelPage);
05872:                    if (getElementSelection().size() == 1)
05873:                        jTabbedPane2.addTab(I18n.getString(
05874:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05875:                                "Link parameters"), this .jPanelLinkParams);
05876:                    jTabbedPane2.addTab(
05877:                            I18n.getString(
05878:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05879:                                    "Tooltip"), this .jPanelTooltip);
05880:                } else {
05881:                    // Set to blank all link fields...
05882:                    while (e.hasMoreElements()) {
05883:                        HyperLinkableReportElement element = (HyperLinkableReportElement) e
05884:                                .nextElement();
05885:                        element.setHyperlinkType(""
05886:                                + jComboBoxLinkType.getSelectedItem());
05887:                        //element.setHyperlinkReferenceExpression("");
05888:                        //element.setHyperlinkAnchorExpression("");
05889:                        //element.setHyperlinkPageExpression("");
05890:                        //this.jRTextExpressionAreaAnchor.setText("");
05891:                        this .jRTextExpressionAreaAnchor.setEnabled(true);
05892:                        this .jLabelAnchor.setEnabled(true);
05893:                        //this.jRTextExpressionAreaPage.setText("");
05894:                        this .jRTextExpressionAreaPage.setEnabled(true);
05895:                        this .jLabelPage.setEnabled(true);
05896:                        //this.jRTextExpressionAreaReference.setText("");
05897:                        this .jRTextExpressionAreaReference.setEnabled(true);
05898:                        this .jLabelReference.setEnabled(true);
05899:
05900:                    }
05901:                    jTabbedPane2.addTab(I18n.getString(
05902:                            "sectionItemHyperlinkPanel.tab.Reference",
05903:                            "Reference"), this .jPanelReference);
05904:                    jTabbedPane2.addTab(I18n.getString(
05905:                            "sectionItemHyperlinkPanel.tab.Anchor", "Anchor"),
05906:                            this .jPanelAnchor);
05907:                    jTabbedPane2.addTab(I18n.getString(
05908:                            "sectionItemHyperlinkPanel.tab.Page", "Page"),
05909:                            this .jPanelPage);
05910:                    if (getElementSelection().size() == 1)
05911:                        jTabbedPane2.addTab(I18n.getString(
05912:                                "sectionItemHyperlinkPanel.tab.LinkParameters",
05913:                                "Link parameters"), this .jPanelLinkParams);
05914:                    jTabbedPane2.addTab(
05915:                            I18n.getString(
05916:                                    "sectionItemHyperlinkPanel.tab.tooltip",
05917:                                    "Tooltip"), this .jPanelTooltip);
05918:                }
05919:
05920:                jComboBoxLinkType.removeItem("");
05921:            }//GEN-LAST:event_jComboBoxLinkTypeActionPerformed
05922:
05923:            private void jButtonRemParameterActionPerformed(
05924:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRemParameterActionPerformed
05925:                if (this .isInit())
05926:                    return;
05927:
05928:                if (jrf == null || getElementSelection().size() == 0)
05929:                    return;
05930:
05931:                Enumeration e = getElementSelection().elements();
05932:                SubReportElement element = (SubReportElement) e.nextElement();
05933:
05934:                jTableSubreportParameters.getSelectedRows();
05935:                int[] rows = jTableSubreportParameters.getSelectedRows();
05936:                for (int i = rows.length - 1; i >= 0; --i) {
05937:                    element.getSubreportParameters().removeElement(
05938:                            jTableSubreportParameters.getValueAt(rows[i], 0));
05939:                    //this.jTableParameters.removeRowSelectionInterval( rows[i],rows[i]);
05940:                }
05941:
05942:                javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportParameters
05943:                        .getModel();
05944:                dtm.setRowCount(0);
05945:
05946:                java.util.Enumeration enum_parameters = element
05947:                        .getSubreportParameters().elements();
05948:                while (enum_parameters.hasMoreElements()) {
05949:                    it.businesslogic.ireport.JRSubreportParameter parameter = (it.businesslogic.ireport.JRSubreportParameter) enum_parameters
05950:                            .nextElement();
05951:                    Vector row = new Vector();
05952:                    row.addElement(parameter);
05953:                    row.addElement(parameter.getExpression());
05954:                    dtm.addRow(row);
05955:                }
05956:            }//GEN-LAST:event_jButtonRemParameterActionPerformed
05957:
05958:            private void jButtonModParameterActionPerformed(
05959:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModParameterActionPerformed
05960:                if (this .isInit())
05961:                    return;
05962:
05963:                if (jrf == null || getElementSelection().size() == 0)
05964:                    return;
05965:
05966:                modifySubreportParameter(JRSubreportParameterDialog.COMPONENT_NONE);
05967:            }//GEN-LAST:event_jButtonModParameterActionPerformed
05968:
05969:            private void jButtonAddParameterActionPerformed(
05970:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddParameterActionPerformed
05971:
05972:                if (this .isInit())
05973:                    return;
05974:
05975:                if (jrf == null || getElementSelection().size() == 0)
05976:                    return;
05977:                // Set the new value for all selected elements...
05978:                Enumeration e = getElementSelection().elements();
05979:                SubReportElement element = (SubReportElement) e.nextElement();
05980:
05981:                JRSubreportParameterDialog jrpd = new JRSubreportParameterDialog(
05982:                        this , true);
05983:                jrpd.setVisible(true);
05984:
05985:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
05986:                    it.businesslogic.ireport.JRSubreportParameter parameter = jrpd
05987:                            .getParameter();
05988:                    element.getSubreportParameters().addElement(parameter);
05989:                    javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportParameters
05990:                            .getModel();
05991:                    dtm.addRow(new Object[] { parameter,
05992:                            parameter.getExpression() });
05993:                }
05994:            }//GEN-LAST:event_jButtonAddParameterActionPerformed
05995:
05996:            private void jComboBoxSubreportExpressionClassActionPerformed(
05997:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxSubreportExpressionClassActionPerformed
05998:                if (this .isInit())
05999:                    return;
06000:
06001:                // Set band to all....
06002:                if (jrf == null
06003:                        || getElementSelection().size() == 0
06004:                        || jComboBoxSubreportExpressionClass.getSelectedItem() == null
06005:                        || (jComboBoxSubreportExpressionClass.getSelectedItem() + "")
06006:                                .equals(""))
06007:                    return;
06008:                // Set the new value for all selected elements...
06009:                Enumeration e = getElementSelection().elements();
06010:                while (e.hasMoreElements()) {
06011:                    SubReportElement element = (SubReportElement) e
06012:                            .nextElement();
06013:                    element.setSubreportExpressionClass(""
06014:                            + jComboBoxSubreportExpressionClass
06015:                                    .getSelectedItem());
06016:                }
06017:
06018:                this .jComboBoxSubreportExpressionClass.removeItem("");
06019:            }//GEN-LAST:event_jComboBoxSubreportExpressionClassActionPerformed
06020:
06021:            private void jCheckBoxSubreportCacheActionPerformed(
06022:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxSubreportCacheActionPerformed
06023:                if (this .isInit())
06024:                    return;
06025:
06026:                // Set band to all....
06027:                if (jrf == null || getElementSelection().size() == 0)
06028:                    return;
06029:                // Set the new value for all selected elements...
06030:                Enumeration e = getElementSelection().elements();
06031:                while (e.hasMoreElements()) {
06032:                    SubReportElement element = (SubReportElement) e
06033:                            .nextElement();
06034:                    element.setIsUsingCache(jCheckBoxSubreportCache
06035:                            .isSelected());
06036:                }
06037:            }//GEN-LAST:event_jCheckBoxSubreportCacheActionPerformed
06038:
06039:            private void jComboBoxSubreportConnectionTypeActionPerformed(
06040:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxSubreportConnectionTypeActionPerformed
06041:                if (this .isInit())
06042:                    return;
06043:
06044:                if (jrf == null || getElementSelection().size() == 0)
06045:                    return;
06046:                // Set the new value for all selected elements...
06047:                Enumeration e = getElementSelection().elements();
06048:                SubReportElement element = (SubReportElement) e.nextElement();
06049:
06050:                if (jComboBoxSubreportConnectionType.getSelectedIndex() == 0) {
06051:                    element.setUseConnection(false);
06052:                    element.setConnectionExpression("");
06053:                    element.setDataSourceExpression("");
06054:                    jRTextExpressionAreaTextConnectionExpression.setText("");
06055:                    jRTextExpressionAreaTextConnectionExpression
06056:                            .setEnabled(false);
06057:                    jRTextExpressionAreaTextConnectionExpression
06058:                            .setBackground(Color.LIGHT_GRAY);
06059:                } else if (jComboBoxSubreportConnectionType.getSelectedIndex() == 1) {
06060:                    element.setUseConnection(true);
06061:                    element.setDataSourceExpression("");
06062:                    element.setConnectionExpression("$P{REPORT_CONNECTION}");
06063:                    jRTextExpressionAreaTextConnectionExpression
06064:                            .setText("$P{REPORT_CONNECTION}");
06065:                    jRTextExpressionAreaTextConnectionExpression
06066:                            .setEnabled(true);
06067:                    jRTextExpressionAreaTextConnectionExpression
06068:                            .setBackground(Color.WHITE);
06069:                } else if (jComboBoxSubreportConnectionType.getSelectedIndex() == 2) {
06070:                    element.setUseConnection(false);
06071:                    element.setDataSourceExpression("$P{MyDatasource}");
06072:                    element.setConnectionExpression("");
06073:                    jRTextExpressionAreaTextConnectionExpression
06074:                            .setText("$P{MyDatasource}");
06075:                    jRTextExpressionAreaTextConnectionExpression
06076:                            .setEnabled(true);
06077:                    jRTextExpressionAreaTextConnectionExpression
06078:                            .setBackground(Color.WHITE);
06079:                }
06080:
06081:            }//GEN-LAST:event_jComboBoxSubreportConnectionTypeActionPerformed
06082:
06083:            private void jComboBoxPatternInputMethodTextChanged(
06084:                    java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jComboBoxPatternInputMethodTextChanged
06085:
06086:            }//GEN-LAST:event_jComboBoxPatternInputMethodTextChanged
06087:
06088:            private void jComboBoxPatternActionPerformed(
06089:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPatternActionPerformed
06090:                if (this .isInit())
06091:                    return;
06092:
06093:                // Set band to all....
06094:                if (jrf == null
06095:                        || ((getElementSelection().size() == 0
06096:                                || jComboBoxPdfEncoding.getSelectedItem() == null || (jComboBoxPdfEncoding
06097:                                .getSelectedItem() + "").equals("")) && ((javax.swing.JTextField) jComboBoxPattern
06098:                                .getEditor().getEditorComponent()).getText()
06099:                                .trim().length() == 0))
06100:                    return;
06101:                // Set the new value for all selected elements...
06102:                Enumeration e = getElementSelection().elements();
06103:
06104:                Object pattern = jComboBoxPattern.getSelectedItem();
06105:                if (pattern == null || pattern.equals("")) {
06106:                    pattern = ((javax.swing.JTextField) jComboBoxPattern
06107:                            .getEditor().getEditorComponent()).getText().trim();
06108:                } else if (pattern instanceof  PdfEncoding) {
06109:                    pattern = "" + ((PdfEncoding) pattern).getEncoding();
06110:                    jComboBoxPattern.setSelectedItem(pattern);
06111:                } else
06112:                    pattern = "" + pattern + "";
06113:
06114:                while (e.hasMoreElements()) {
06115:                    TextFieldReportElement element = (TextFieldReportElement) e
06116:                            .nextElement();
06117:                    element.setPattern("" + pattern + "");
06118:                }
06119:                fireReportElementsChangedEvent("pattern", "" + pattern);
06120:            }//GEN-LAST:event_jComboBoxPatternActionPerformed
06121:
06122:            private void jCheckBoxBlankWhenNullActionPerformed(
06123:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxBlankWhenNullActionPerformed
06124:                if (this .isInit())
06125:                    return;
06126:
06127:                // Set band to all....
06128:                if (jrf == null || getElementSelection().size() == 0)
06129:                    return;
06130:                // Set the new value for all selected elements...
06131:                Enumeration e = getElementSelection().elements();
06132:                while (e.hasMoreElements()) {
06133:                    TextFieldReportElement element = (TextFieldReportElement) e
06134:                            .nextElement();
06135:                    element.setBlankWhenNull(jCheckBoxBlankWhenNull
06136:                            .isSelected());
06137:                }
06138:                fireReportElementsChangedEvent("blankWhenNull", ""
06139:                        + jCheckBoxStretchWithOverflow.isSelected());
06140:            }//GEN-LAST:event_jCheckBoxBlankWhenNullActionPerformed
06141:
06142:            private void jCheckBoxStretchWithOverflowActionPerformed(
06143:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxStretchWithOverflowActionPerformed
06144:                if (this .isInit())
06145:                    return;
06146:
06147:                // Set band to all....
06148:                if (jrf == null || getElementSelection().size() == 0)
06149:                    return;
06150:                // Set the new value for all selected elements...
06151:                Enumeration e = getElementSelection().elements();
06152:                while (e.hasMoreElements()) {
06153:                    TextFieldReportElement element = (TextFieldReportElement) e
06154:                            .nextElement();
06155:                    element.setStretchWithOverflow(jCheckBoxStretchWithOverflow
06156:                            .isSelected());
06157:                }
06158:                fireReportElementsChangedEvent("stretchWithOverflow", ""
06159:                        + jCheckBoxStretchWithOverflow.isSelected());
06160:            }//GEN-LAST:event_jCheckBoxStretchWithOverflowActionPerformed
06161:
06162:            private void jComboBoxTextFieldGroupActionPerformed(
06163:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxTextFieldGroupActionPerformed
06164:                if (this .isInit())
06165:                    return;
06166:
06167:                // Set band to all....
06168:                if (jrf == null
06169:                        || getElementSelection().size() == 0
06170:                        || jComboBoxTextFieldGroup.getSelectedItem() == null
06171:                        || (jComboBoxTextFieldGroup.getSelectedItem() + "")
06172:                                .equals(""))
06173:                    return;
06174:                // Set the new value for all selected elements...
06175:                Enumeration e = getElementSelection().elements();
06176:                while (e.hasMoreElements()) {
06177:                    TextFieldReportElement element = (TextFieldReportElement) e
06178:                            .nextElement();
06179:                    element.setGroup(""
06180:                            + jComboBoxTextFieldGroup.getSelectedItem());
06181:                }
06182:                fireReportElementsChangedEvent("textfieldEvaluationGroup", ""
06183:                        + jComboBoxTextFieldGroup.getSelectedItem());
06184:                this .jComboBoxTextFieldGroup.removeItem("");
06185:            }//GEN-LAST:event_jComboBoxTextFieldGroupActionPerformed
06186:
06187:            private void jComboBoxTextFieldEvaluationTimeActionPerformed(
06188:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxTextFieldEvaluationTimeActionPerformed
06189:                if (this .isInit())
06190:                    return;
06191:
06192:                // Set band to all....
06193:                if (jrf == null
06194:                        || getElementSelection().size() == 0
06195:                        || Misc
06196:                                .getComboboxSelectedValue(jComboBoxTextFieldEvaluationTime) == null
06197:                        || (Misc
06198:                                .getComboboxSelectedValue(jComboBoxTextFieldEvaluationTime) + "")
06199:                                .equals(""))
06200:                    return;
06201:                // Set the new value for all selected elements...
06202:                Enumeration e = getElementSelection().elements();
06203:                while (e.hasMoreElements()) {
06204:                    TextFieldReportElement element = (TextFieldReportElement) e
06205:                            .nextElement();
06206:                    element
06207:                            .setEvaluationTime(""
06208:                                    + Misc
06209:                                            .getComboboxSelectedValue(jComboBoxTextFieldEvaluationTime));
06210:                    if (element.getEvaluationTime().equals("Group")) {
06211:                        jComboBoxTextFieldGroup.setEnabled(true);
06212:                    } else {
06213:                        element.setGroup("");
06214:                        jComboBoxTextFieldGroup.setEnabled(false);
06215:                    }
06216:                }
06217:                fireReportElementsChangedEvent(
06218:                        "textfieldEvaluationTime",
06219:                        ""
06220:                                + Misc
06221:                                        .getComboboxSelectedValue(jComboBoxTextFieldEvaluationTime));
06222:                this .jComboBoxTextFieldEvaluationTime.removeItem("");
06223:            }//GEN-LAST:event_jComboBoxTextFieldEvaluationTimeActionPerformed
06224:
06225:            private void jComboBoxTextFieldExpressionClassActionPerformed(
06226:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxTextFieldExpressionClassActionPerformed
06227:                if (this .isInit())
06228:                    return;
06229:
06230:                // Set band to all....
06231:                if (jrf == null
06232:                        || getElementSelection().size() == 0
06233:                        || jComboBoxTextFieldExpressionClass.getSelectedItem() == null
06234:                        || (jComboBoxTextFieldExpressionClass.getSelectedItem() + "")
06235:                                .equals(""))
06236:                    return;
06237:                // Set the new value for all selected elements...
06238:                Enumeration e = getElementSelection().elements();
06239:                while (e.hasMoreElements()) {
06240:                    TextFieldReportElement element = (TextFieldReportElement) e
06241:                            .nextElement();
06242:                    element.setClassExpression(""
06243:                            + jComboBoxTextFieldExpressionClass
06244:                                    .getSelectedItem());
06245:                }
06246:                fireReportElementsChangedEvent("textfieldExpressionClass", ""
06247:                        + jComboBoxTextFieldExpressionClass.getSelectedItem());
06248:                this .jComboBoxTextFieldExpressionClass.removeItem("");
06249:            }//GEN-LAST:event_jComboBoxTextFieldExpressionClassActionPerformed
06250:
06251:            private void jCheckBoxPDFEmbeddedActionPerformed(
06252:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxPDFEmbeddedActionPerformed
06253:                if (this .isInit())
06254:                    return;
06255:
06256:                // Set band to all....
06257:                if (jrf == null || getElementSelection().size() == 0)
06258:                    return;
06259:                // Set the new value for all selected elements...
06260:                Enumeration e = getElementSelection().elements();
06261:                while (e.hasMoreElements()) {
06262:                    TextReportElement element = (TextReportElement) e
06263:                            .nextElement();
06264:                    element.setPdfEmbedded(jCheckBoxPDFEmbedded.isSelected());
06265:                }
06266:                fireReportElementsChangedEvent("pdfEmbedded", ""
06267:                        + jCheckBoxPDFEmbedded.isSelected());
06268:            }//GEN-LAST:event_jCheckBoxPDFEmbeddedActionPerformed
06269:
06270:            private void jComboBoxPdfEncodingActionPerformed(
06271:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPdfEncodingActionPerformed
06272:                if (this .isInit())
06273:                    return;
06274:
06275:                // Set band to all....
06276:                if (jrf == null
06277:                        || getElementSelection().size() == 0
06278:                        || jComboBoxPdfEncoding.getSelectedItem() == null
06279:                        || (jComboBoxPdfEncoding.getSelectedItem() + "")
06280:                                .equals(""))
06281:                    return;
06282:                // Set the new value for all selected elements...
06283:                Enumeration e = getElementSelection().elements();
06284:                String newValue = null;
06285:                Object encoding = jComboBoxPdfEncoding.getSelectedItem();
06286:                if (encoding instanceof  PdfEncoding) {
06287:                    newValue = "" + ((PdfEncoding) encoding).getEncoding();
06288:                } else {
06289:                    newValue = encoding + "";
06290:                }
06291:                while (e.hasMoreElements()) {
06292:                    TextReportElement element = (TextReportElement) e
06293:                            .nextElement();
06294:                    element.setPdfEncoding(newValue);
06295:                }
06296:                fireReportElementsChangedEvent("pdfEncoding", newValue);
06297:            }//GEN-LAST:event_jComboBoxPdfEncodingActionPerformed
06298:
06299:            private void jComboBoxVAlignActionPerformed(
06300:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxVAlignActionPerformed
06301:                if (this .isInit())
06302:                    return;
06303:
06304:                // Set band to all....
06305:                if (jrf == null
06306:                        || getElementSelection().size() == 0
06307:                        || Misc.getComboboxSelectedValue(jComboBoxVAlign) == null
06308:                        || (Misc.getComboboxSelectedValue(jComboBoxVAlign) + "")
06309:                                .equals(""))
06310:                    return;
06311:                // Set the new value for all selected elements...
06312:                Enumeration e = getElementSelection().elements();
06313:                while (e.hasMoreElements()) {
06314:                    TextReportElement element = (TextReportElement) e
06315:                            .nextElement();
06316:                    element.setVerticalAlign(""
06317:                            + Misc.getComboboxSelectedValue(jComboBoxVAlign));
06318:                }
06319:                fireReportElementsChangedEvent("vAlign", ""
06320:                        + Misc.getComboboxSelectedValue(jComboBoxVAlign));
06321:                this .jComboBoxVAlign.removeItem("");
06322:                repaintEditor();
06323:            }//GEN-LAST:event_jComboBoxVAlignActionPerformed
06324:
06325:            private void jComboBoxHAlignActionPerformed(
06326:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxHAlignActionPerformed
06327:                if (this .isInit())
06328:                    return;
06329:
06330:                // Set band to all....
06331:                if (jrf == null
06332:                        || getElementSelection().size() == 0
06333:                        || Misc.getComboboxSelectedValue(jComboBoxHAlign) == null
06334:                        || (Misc.getComboboxSelectedValue(jComboBoxHAlign) + "")
06335:                                .equals(""))
06336:                    return;
06337:                // Set the new value for all selected elements...
06338:                Enumeration e = getElementSelection().elements();
06339:                while (e.hasMoreElements()) {
06340:                    TextReportElement element = (TextReportElement) e
06341:                            .nextElement();
06342:                    element.setAlign(""
06343:                            + Misc.getComboboxSelectedValue(jComboBoxHAlign));
06344:                }
06345:                fireReportElementsChangedEvent("hAlign", ""
06346:                        + Misc.getComboboxSelectedValue(jComboBoxHAlign));
06347:                this .jComboBoxHAlign.removeItem("");
06348:                repaintEditor();
06349:            }//GEN-LAST:event_jComboBoxHAlignActionPerformed
06350:
06351:            private void jComboBoxLineSpacingActionPerformed(
06352:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLineSpacingActionPerformed
06353:                if (this .isInit())
06354:                    return;
06355:
06356:                // Set band to all....
06357:                if (jrf == null
06358:                        || getElementSelection().size() == 0
06359:                        || Misc.getComboboxSelectedValue(jComboBoxLineSpacing) == null
06360:                        || (Misc.getComboboxSelectedValue(jComboBoxLineSpacing) + "")
06361:                                .equals(""))
06362:                    return;
06363:                // Set the new value for all selected elements...
06364:                Enumeration e = getElementSelection().elements();
06365:                while (e.hasMoreElements()) {
06366:                    TextReportElement element = (TextReportElement) e
06367:                            .nextElement();
06368:                    element
06369:                            .setLineSpacing(""
06370:                                    + Misc
06371:                                            .getComboboxSelectedValue(jComboBoxLineSpacing));
06372:                }
06373:
06374:                fireReportElementsChangedEvent("lineSpacing", ""
06375:                        + Misc.getComboboxSelectedValue(jComboBoxLineSpacing));
06376:                this .jComboBoxLineSpacing.removeItem("");
06377:                repaintEditor();
06378:            }//GEN-LAST:event_jComboBoxLineSpacingActionPerformed
06379:
06380:            private void jCheckBoxStrokeTroughActionPerformed(
06381:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxStrokeTroughActionPerformed
06382:                if (this .isInit())
06383:                    return;
06384:
06385:                // Set band to all....
06386:                if (jrf == null || getElementSelection().size() == 0)
06387:                    return;
06388:                // Set the new value for all selected elements...
06389:                Enumeration e = getElementSelection().elements();
06390:                while (e.hasMoreElements()) {
06391:                    TextReportElement element = (TextReportElement) e
06392:                            .nextElement();
06393:                    element
06394:                            .setStrikeTrought(jCheckBoxStrokeTrough
06395:                                    .isSelected());
06396:                    element.setFont(null);
06397:                    /* Adjust PDF font...*/
06398:                }
06399:                fireReportElementsChangedEvent("strikethrough", ""
06400:                        + jCheckBoxStrokeTrough.isSelected());
06401:                repaintEditor();
06402:            }//GEN-LAST:event_jCheckBoxStrokeTroughActionPerformed
06403:
06404:            private void jCheckBoxUnderlineActionPerformed(
06405:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxUnderlineActionPerformed
06406:                if (this .isInit())
06407:                    return;
06408:
06409:                // Set band to all....
06410:                if (jrf == null || getElementSelection().size() == 0)
06411:                    return;
06412:                // Set the new value for all selected elements...
06413:                Enumeration e = getElementSelection().elements();
06414:                while (e.hasMoreElements()) {
06415:                    TextReportElement element = (TextReportElement) e
06416:                            .nextElement();
06417:                    element.setUnderline(jCheckBoxUnderline.isSelected());
06418:                    element.setFont(null);
06419:                    /* Adjust PDF font...*/
06420:                }
06421:                fireReportElementsChangedEvent("underline", ""
06422:                        + jCheckBoxUnderline.isSelected());
06423:                repaintEditor();
06424:            }//GEN-LAST:event_jCheckBoxUnderlineActionPerformed
06425:
06426:            private void jCheckBoxItalicActionPerformed(
06427:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxItalicActionPerformed
06428:                if (this .isInit())
06429:                    return;
06430:
06431:                // Set band to all....
06432:                if (jrf == null || getElementSelection().size() == 0)
06433:                    return;
06434:                // Set the new value for all selected elements...
06435:                Enumeration e = getElementSelection().elements();
06436:                boolean adjusted = false;
06437:                while (e.hasMoreElements()) {
06438:                    TextReportElement element = (TextReportElement) e
06439:                            .nextElement();
06440:                    element.setItalic(jCheckBoxItalic.isSelected());
06441:                    element.setFont(null);
06442:                    /* Adjust PDF font...*/
06443:                    if (IReportFont.adjustPdfFontName(element)) {
06444:                        adjusted = true;
06445:                    }
06446:                }
06447:                if (adjusted)
06448:                    pdfFontUpdated();
06449:                fireReportElementsChangedEvent(null, null);
06450:                repaintEditor();
06451:            }//GEN-LAST:event_jCheckBoxItalicActionPerformed
06452:
06453:            private void jCheckBoxBoldActionPerformed(
06454:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxBoldActionPerformed
06455:                if (this .isInit())
06456:                    return;
06457:
06458:                // Set band to all....
06459:                if (jrf == null || getElementSelection().size() == 0)
06460:                    return;
06461:                // Set the new value for all selected elements...
06462:                Enumeration e = getElementSelection().elements();
06463:                boolean adjusted = false;
06464:                while (e.hasMoreElements()) {
06465:                    TextReportElement element = (TextReportElement) e
06466:                            .nextElement();
06467:                    element.setBold(jCheckBoxBold.isSelected());
06468:                    element.setFont(null);
06469:                    /* Adjust PDF font...*/
06470:
06471:                    if (IReportFont.adjustPdfFontName(element)) {
06472:                        adjusted = true;
06473:                    }
06474:                }
06475:                if (adjusted)
06476:                    pdfFontUpdated();
06477:                fireReportElementsChangedEvent(null, null);
06478:                repaintEditor();
06479:            }//GEN-LAST:event_jCheckBoxBoldActionPerformed
06480:
06481:            public void pdfFontUpdated() {
06482:                if (this .isInit())
06483:                    return;
06484:                if (jrf == null || getElementSelection().size() == 0)
06485:                    return;
06486:
06487:                boolean samePDFFontName = true;
06488:                boolean sameTTFFont = true;
06489:
06490:                boolean isTheFirstElement = true;
06491:
06492:                Enumeration e = getElementSelection().elements();
06493:                boolean adjusted = false;
06494:                while (e.hasMoreElements()) {
06495:                    TextReportElement tre = (TextReportElement) e.nextElement();
06496:
06497:                    if (samePDFFontName) {
06498:                        if (tre.getPDFFontName().toUpperCase().endsWith(".TTF")
06499:                                || tre.getPDFFontName().toUpperCase().indexOf(
06500:                                        ".TTC,") >= 0)
06501:                            samePDFFontName = this .setComboBoxText(
06502:                                    isTheFirstElement, "External TTF font...",
06503:                                    jComboBoxPDFFontName);
06504:                        else
06505:                            samePDFFontName = this .setComboBoxText(
06506:                                    isTheFirstElement, tre.getPDFFontName(),
06507:                                    jComboBoxPDFFontName);
06508:                    }
06509:
06510:                    isTheFirstElement = false;
06511:                }
06512:
06513:            }
06514:
06515:            private void jNumberComboBoxSizeItemStateChanged(
06516:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jNumberComboBoxSizeItemStateChanged
06517:                jNumberComboBoxSizeActionPerformed(new java.awt.event.ActionEvent(
06518:                        jNumberComboBoxSize, 0, ""));
06519:            }//GEN-LAST:event_jNumberComboBoxSizeItemStateChanged
06520:
06521:            private void jTextAreaTextInputMethodTextChanged(
06522:                    java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jTextAreaTextInputMethodTextChanged
06523:
06524:            }//GEN-LAST:event_jTextAreaTextInputMethodTextChanged
06525:
06526:            private void jComboBoxFontNameActionPerformed(
06527:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxFontNameActionPerformed
06528:                if (this .isInit())
06529:                    return;
06530:
06531:                // Set band to all....
06532:                if (jrf == null
06533:                        || getElementSelection().size() == 0
06534:                        || jComboBoxFontName.getSelectedItem() == null
06535:                        || (jComboBoxFontName.getSelectedItem() + "")
06536:                                .equals(""))
06537:                    return;
06538:                // Set the new value for all selected elements...
06539:                Enumeration e = getElementSelection().elements();
06540:                while (e.hasMoreElements()) {
06541:                    TextReportElement element = (TextReportElement) e
06542:                            .nextElement();
06543:                    element.setFontName(""
06544:                            + jComboBoxFontName.getSelectedItem());
06545:                }
06546:                fireReportElementsChangedEvent("fontName", ""
06547:                        + jComboBoxFontName.getSelectedItem());
06548:                this .jComboBoxFontName.removeItem("");
06549:                repaintEditor();
06550:            }//GEN-LAST:event_jComboBoxFontNameActionPerformed
06551:
06552:            private void jNumberComboBoxSizeActionPerformed(
06553:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberComboBoxSizeActionPerformed
06554:                if (this .isInit())
06555:                    return;
06556:
06557:                // Set band to all....
06558:                if (jrf == null || getElementSelection().size() == 0
06559:                        || jNumberComboBoxSize.getValue() == 0)
06560:                    return;
06561:                // Set the new value for all selected elements...
06562:                Enumeration e = getElementSelection().elements();
06563:                while (e.hasMoreElements()) {
06564:                    TextReportElement element = (TextReportElement) e
06565:                            .nextElement();
06566:                    element.setFontSize((int) jNumberComboBoxSize.getValue());
06567:                }
06568:                fireReportElementsChangedEvent("fontSize", ""
06569:                        + (int) jNumberComboBoxSize.getValue());
06570:                repaintEditor();
06571:            }//GEN-LAST:event_jNumberComboBoxSizeActionPerformed
06572:
06573:            private void jComboBoxPDFFontNameActionPerformed(
06574:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPDFFontNameActionPerformed
06575:                if (this .isInit())
06576:                    return;
06577:
06578:                // Set band to all....
06579:                if (jrf == null
06580:                        || getElementSelection().size() == 0
06581:                        || jComboBoxPDFFontName.getSelectedItem() == null
06582:                        || (jComboBoxPDFFontName.getSelectedItem() + "")
06583:                                .equals(""))
06584:                    return;
06585:                // Set the new value for all selected elements...
06586:                Object obj = jComboBoxPDFFontName.getSelectedItem();
06587:                String fontName = "" + obj;
06588:                if (obj instanceof  Tag) {
06589:                    fontName = "" + ((Tag) obj).getValue();
06590:                } else {
06591:                    fontName = "" + obj;
06592:                }
06593:
06594:                Enumeration e = getElementSelection().elements();
06595:                while (e.hasMoreElements()) {
06596:                    TextReportElement element = (TextReportElement) e
06597:                            .nextElement();
06598:                    element.getIReportFont().setPropertyValue(
06599:                            IReportFont.PDF_FONT_NAME,
06600:                            (fontName.length() > 0) ? fontName : null);
06601:                }
06602:                fireReportElementsChangedEvent(null, null);
06603:                //repaintEditor();
06604:            }//GEN-LAST:event_jComboBoxPDFFontNameActionPerformed
06605:
06606:            private void jButtonFindImageActionPerformed(
06607:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFindImageActionPerformed
06608:                String fileName = "";
06609:                javax.swing.JFileChooser jfc = new javax.swing.JFileChooser(
06610:                        this .jrf.getMainFrame().getCurrentDirectory());
06611:                jfc.setDialogTitle("Load XML jasperreports file....");
06612:                jfc.setFileFilter(new javax.swing.filechooser.FileFilter() {
06613:                    public boolean accept(java.io.File file) {
06614:                        String filename = file.getName();
06615:                        return (filename.endsWith(".jpg")
06616:                                || filename.endsWith(".jpeg")
06617:                                || filename.endsWith(".gif") || file
06618:                                .isDirectory());
06619:                    }
06620:
06621:                    public String getDescription() {
06622:                        return "Image *.gif|*.jpg";
06623:                    }
06624:                });
06625:
06626:                jfc.setMultiSelectionEnabled(false);
06627:                jfc.setDialogType(javax.swing.JFileChooser.OPEN_DIALOG);
06628:                if (jfc.showOpenDialog(null) == javax.swing.JOptionPane.OK_OPTION) {
06629:                    this .jRTextExpressionAreaImageExpression.setText("\""
06630:                            + Misc.string_replace("\\\\", "\\", jfc
06631:                                    .getSelectedFile().getPath()
06632:                                    + "\""));
06633:                    this .jrf.getMainFrame().setCurrentDirectory(
06634:                            jfc.getSelectedFile(), true);
06635:                }
06636:            }//GEN-LAST:event_jButtonFindImageActionPerformed
06637:
06638:            private void jCheckBoxImageCacheActionPerformed(
06639:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxImageCacheActionPerformed
06640:                if (jrf == null || getElementSelection().size() == 0)
06641:                    return;
06642:                // Set the new value for all selected elements...
06643:                Enumeration e = getElementSelection().elements();
06644:                while (e.hasMoreElements()) {
06645:                    ImageReportElement element = (ImageReportElement) e
06646:                            .nextElement();
06647:                    element.setIsUsingCache(jCheckBoxImageCache.isSelected());
06648:                }
06649:            }//GEN-LAST:event_jCheckBoxImageCacheActionPerformed
06650:
06651:            private void jComboBoxImageGroupActionPerformed(
06652:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxImageGroupActionPerformed
06653:                if (this .isInit())
06654:                    return;
06655:
06656:                // Set band to all....
06657:                if (jrf == null
06658:                        || getElementSelection().size() == 0
06659:                        || jComboBoxImageGroup.getSelectedItem() == null
06660:                        || (jComboBoxImageGroup.getSelectedItem() + "")
06661:                                .equals(""))
06662:                    return;
06663:                // Set the new value for all selected elements...
06664:                Enumeration e = getElementSelection().elements();
06665:                while (e.hasMoreElements()) {
06666:                    ImageReportElement element = (ImageReportElement) e
06667:                            .nextElement();
06668:                    element.setEvaluationGroup(""
06669:                            + jComboBoxImageGroup.getSelectedItem());
06670:                }
06671:
06672:                this .jComboBoxImageGroup.removeItem("");
06673:            }//GEN-LAST:event_jComboBoxImageGroupActionPerformed
06674:
06675:            private void jComboBoxEvaluationTimeActionPerformed(
06676:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxEvaluationTimeActionPerformed
06677:                if (this .isInit())
06678:                    return;
06679:
06680:                // Set band to all....
06681:                if (jrf == null
06682:                        || getElementSelection().size() == 0
06683:                        || Misc
06684:                                .getComboboxSelectedValue(jComboBoxEvaluationTime) == null
06685:                        || (Misc
06686:                                .getComboboxSelectedValue(jComboBoxEvaluationTime) + "")
06687:                                .equals(""))
06688:                    return;
06689:                // Set the new value for all selected elements...
06690:                Enumeration e = getElementSelection().elements();
06691:                while (e.hasMoreElements()) {
06692:                    ImageReportElement element = (ImageReportElement) e
06693:                            .nextElement();
06694:                    element
06695:                            .setEvaluationTime(""
06696:                                    + Misc
06697:                                            .getComboboxSelectedValue(jComboBoxEvaluationTime));
06698:                }
06699:
06700:                this .jComboBoxEvaluationTime.removeItem("");
06701:            }//GEN-LAST:event_jComboBoxEvaluationTimeActionPerformed
06702:
06703:            private void jComboBoxImageExpressionClassActionPerformed(
06704:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxImageExpressionClassActionPerformed
06705:                if (this .isInit())
06706:                    return;
06707:
06708:                // Set band to all....
06709:                if (jrf == null
06710:                        || getElementSelection().size() == 0
06711:                        || jComboBoxImageExpressionClass.getSelectedItem() == null
06712:                        || (jComboBoxImageExpressionClass.getSelectedItem() + "")
06713:                                .equals(""))
06714:                    return;
06715:                // Set the new value for all selected elements...
06716:                Enumeration e = getElementSelection().elements();
06717:                while (e.hasMoreElements()) {
06718:                    ImageReportElement element = (ImageReportElement) e
06719:                            .nextElement();
06720:                    element.setImageClass(""
06721:                            + jComboBoxImageExpressionClass.getSelectedItem());
06722:                }
06723:
06724:                this .jComboBoxImageExpressionClass.removeItem("");
06725:            }//GEN-LAST:event_jComboBoxImageExpressionClassActionPerformed
06726:
06727:            private void jComboBoxHorizontalAlignmentActionPerformed(
06728:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxHorizontalAlignmentActionPerformed
06729:                if (this .isInit())
06730:                    return;
06731:
06732:                // Set band to all....
06733:                if (jrf == null
06734:                        || getElementSelection().size() == 0
06735:                        || Misc
06736:                                .getComboboxSelectedValue(jComboBoxHorizontalAlignment) == null
06737:                        || (Misc
06738:                                .getComboboxSelectedValue(jComboBoxHorizontalAlignment) + "")
06739:                                .equals(""))
06740:                    return;
06741:                // Set the new value for all selected elements...
06742:                Enumeration e = getElementSelection().elements();
06743:                while (e.hasMoreElements()) {
06744:                    ImageReportElement element = (ImageReportElement) e
06745:                            .nextElement();
06746:                    element
06747:                            .setHorizontalAlignment(""
06748:                                    + Misc
06749:                                            .getComboboxSelectedValue(jComboBoxHorizontalAlignment));
06750:                }
06751:
06752:                this .jComboBoxHorizontalAlignment.removeItem("");
06753:                repaintEditor();
06754:            }//GEN-LAST:event_jComboBoxHorizontalAlignmentActionPerformed
06755:
06756:            private void jComboBoxVerticalAlignmentActionPerformed(
06757:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxVerticalAlignmentActionPerformed
06758:                if (this .isInit())
06759:                    return;
06760:
06761:                // Set band to all....
06762:                if (jrf == null
06763:                        || getElementSelection().size() == 0
06764:                        || Misc
06765:                                .getComboboxSelectedValue(jComboBoxVerticalAlignment) == null
06766:                        || (Misc
06767:                                .getComboboxSelectedValue(jComboBoxVerticalAlignment) + "")
06768:                                .equals(""))
06769:                    return;
06770:                // Set the new value for all selected elements...
06771:                Enumeration e = getElementSelection().elements();
06772:                while (e.hasMoreElements()) {
06773:                    ImageReportElement element = (ImageReportElement) e
06774:                            .nextElement();
06775:                    element
06776:                            .setVerticalAlignment(""
06777:                                    + Misc
06778:                                            .getComboboxSelectedValue(jComboBoxVerticalAlignment));
06779:                }
06780:
06781:                this .jComboBoxVerticalAlignment.removeItem("");
06782:                repaintEditor();
06783:            }//GEN-LAST:event_jComboBoxVerticalAlignmentActionPerformed
06784:
06785:            private void jComboBoxScaleActionPerformed(
06786:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxScaleActionPerformed
06787:                if (this .isInit())
06788:                    return;
06789:
06790:                // Set band to all....
06791:                if (jrf == null
06792:                        || getElementSelection().size() == 0
06793:                        || Misc.getComboboxSelectedValue(jComboBoxScale) == null
06794:                        || (Misc.getComboboxSelectedValue(jComboBoxScale) + "")
06795:                                .equals(""))
06796:                    return;
06797:                // Set the new value for all selected elements...
06798:                Enumeration e = getElementSelection().elements();
06799:                while (e.hasMoreElements()) {
06800:                    ImageReportElement element = (ImageReportElement) e
06801:                            .nextElement();
06802:                    element.setScaleImage(""
06803:                            + Misc.getComboboxSelectedValue(jComboBoxScale));
06804:                }
06805:
06806:                this .jComboBoxScale.removeItem("");
06807:                repaintEditor();
06808:            }//GEN-LAST:event_jComboBoxScaleActionPerformed
06809:
06810:            private void jComboBoxLineDirectionActionPerformed(
06811:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLineDirectionActionPerformed
06812:                if (this .isInit())
06813:                    return;
06814:
06815:                // Set band to all....
06816:                if (jrf == null
06817:                        || getElementSelection().size() == 0
06818:                        || Misc
06819:                                .getComboboxSelectedValue(jComboBoxLineDirection) == null
06820:                        || (Misc
06821:                                .getComboboxSelectedValue(jComboBoxLineDirection) + "")
06822:                                .equals(""))
06823:                    return;
06824:                // Set the new value for all selected elements...
06825:                Enumeration e = getElementSelection().elements();
06826:                while (e.hasMoreElements()) {
06827:                    LineReportElement element = (LineReportElement) e
06828:                            .nextElement();
06829:                    element.direction = ""
06830:                            + Misc
06831:                                    .getComboboxSelectedValue(jComboBoxLineDirection);
06832:                }
06833:                fireReportElementsChangedEvent("direction", ""
06834:                        + Misc.getComboboxSelectedValue(jComboBoxLineDirection));
06835:                this .jComboBoxLineDirection.removeItem("");
06836:                repaintEditor();
06837:            }//GEN-LAST:event_jComboBoxLineDirectionActionPerformed
06838:
06839:            private void jNumberFieldRadiusActionPerformed(
06840:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumberFieldRadiusActionPerformed
06841:                if (jrf == null || getElementSelection().size() == 0)
06842:                    return;
06843:                // Set the new value for all selected elements...
06844:                Enumeration e = getElementSelection().elements();
06845:                while (e.hasMoreElements()) {
06846:                    RectangleReportElement element = (RectangleReportElement) e
06847:                            .nextElement();
06848:                    element.setRadius((int) jNumberFieldRadius.getValue());
06849:                }
06850:                fireReportElementsChangedEvent("radius", ""
06851:                        + (int) jNumberFieldRadius.getValue());
06852:                repaintEditor();
06853:            }//GEN-LAST:event_jNumberFieldRadiusActionPerformed
06854:
06855:            private void jTabbedPaneStateChanged(
06856:                    javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPaneStateChanged
06857:                if (this .isInit())
06858:                    return;
06859:
06860:                if (jTabbedPane.getSelectedComponent() == jPanelSheet) {
06861:                    sheetPanel.updateSelection(this .jrf);
06862:                }
06863:
06864:                if (jTabbedPane.getSelectedComponent() != null) {
06865:                    lastSelectedPanel = (javax.swing.JPanel) jTabbedPane
06866:                            .getSelectedComponent();
06867:                    //lastSelectedPaneName = jTabbedPane.getTitleAt(jTabbedPane.getSelectedIndex());
06868:                }
06869:            }//GEN-LAST:event_jTabbedPaneStateChanged
06870:
06871:            private void jComboBoxFillActionPerformed(
06872:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxFillActionPerformed
06873:                if (this .isInit())
06874:                    return;
06875:
06876:                // Set band to all....
06877:                if (jrf == null
06878:                        || getElementSelection().size() == 0
06879:                        || Misc.getComboboxSelectedValue(jComboBoxFill) == null
06880:                        || (Misc.getComboboxSelectedValue(jComboBoxFill) + "")
06881:                                .equals(""))
06882:                    return;
06883:                // Set the new value for all selected elements...
06884:                Enumeration e = getElementSelection().elements();
06885:                while (e.hasMoreElements()) {
06886:                    GraphicReportElement element = (GraphicReportElement) e
06887:                            .nextElement();
06888:                    element.setFill(""
06889:                            + Misc.getComboboxSelectedValue(jComboBoxFill));
06890:                }
06891:                fireReportElementsChangedEvent("fill", ""
06892:                        + Misc.getComboboxSelectedValue(jComboBoxFill));
06893:                this .jComboBoxFill.removeItem("");
06894:            }//GEN-LAST:event_jComboBoxFillActionPerformed
06895:
06896:            private void jComboBoxStretchTypeActionPerformed(
06897:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxStretchTypeActionPerformed
06898:                if (this .isInit())
06899:                    return;
06900:
06901:                // Set band to all....
06902:                if (jrf == null
06903:                        || getElementSelection().size() == 0
06904:                        || Misc.getComboboxSelectedValue(jComboBoxStretchType) == null
06905:                        || (Misc.getComboboxSelectedValue(jComboBoxStretchType) + "")
06906:                                .equals(""))
06907:                    return;
06908:                // Set the new value for all selected elements...
06909:                Enumeration e = getElementSelection().elements();
06910:                while (e.hasMoreElements()) {
06911:                    ReportElement element = (ReportElement) e.nextElement();
06912:                    element
06913:                            .setStretchType(""
06914:                                    + Misc
06915:                                            .getComboboxSelectedValue(jComboBoxStretchType));
06916:                }
06917:                String value = ""
06918:                        + Misc.getComboboxSelectedValue(jComboBoxStretchType);
06919:                if (value.length() == 0)
06920:                    value = null;
06921:                fireReportElementsChangedEvent("stretchType", value);
06922:                this .jComboBoxStretchType.removeItem("");
06923:            }//GEN-LAST:event_jComboBoxStretchTypeActionPerformed
06924:
06925:            private void jComboBoxPenActionPerformed(
06926:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPenActionPerformed
06927:                if (this .isInit())
06928:                    return;
06929:
06930:                // Set band to all....
06931:                if (jrf == null
06932:                        || getElementSelection().size() == 0
06933:                        || Misc.getComboboxSelectedValue(jComboBoxPen) == null
06934:                        || (Misc.getComboboxSelectedValue(jComboBoxPen) + "")
06935:                                .equals(""))
06936:                    return;
06937:                // Set the new value for all selected elements...
06938:                Enumeration e = getElementSelection().elements();
06939:                while (e.hasMoreElements()) {
06940:                    GraphicReportElement element = (GraphicReportElement) e
06941:                            .nextElement();
06942:                    element.setGraphicElementPen(""
06943:                            + Misc.getComboboxSelectedValue(jComboBoxPen));
06944:                }
06945:                fireReportElementsChangedEvent("pen", ""
06946:                        + Misc.getComboboxSelectedValue(jComboBoxPen));
06947:                this .jComboBoxPen.removeItem("");
06948:                repaintEditor();
06949:
06950:            }//GEN-LAST:event_jComboBoxPenActionPerformed
06951:
06952:            private void jComboBoxGroupsActionPerformed(
06953:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxGroupsActionPerformed
06954:                if (this .isInit())
06955:                    return;
06956:
06957:                // Set band to all....
06958:                if (jrf == null || getElementSelection().size() == 0)
06959:                    return;
06960:                // Set the new value for all selected elements...
06961:                Enumeration e = getElementSelection().elements();
06962:                while (e.hasMoreElements()) {
06963:                    ReportElement element = (ReportElement) e.nextElement();
06964:                    element.printWhenGroupChanges = ""
06965:                            + jComboBoxGroups.getSelectedItem();
06966:                }
06967:
06968:                fireReportElementsChangedEvent("printWhenGroupChanges", ""
06969:                        + jComboBoxGroups.getSelectedItem());
06970:            }//GEN-LAST:event_jComboBoxGroupsActionPerformed
06971:
06972:            private void jRTextExpressionAreaPrintWhenExpressionInputMethodTextChanged(
06973:                    java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jRTextExpressionAreaPrintWhenExpressionInputMethodTextChanged
06974:
06975:            }//GEN-LAST:event_jRTextExpressionAreaPrintWhenExpressionInputMethodTextChanged
06976:
06977:            private void jComboBoxPositionTypeActionPerformed(
06978:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxPositionTypeActionPerformed
06979:                if (this .isInit())
06980:                    return;
06981:
06982:                // Set band to all....
06983:                if (jrf == null
06984:                        || getElementSelection().size() == 0
06985:                        || Misc.getComboboxSelectedValue(jComboBoxPositionType) == null
06986:                        || (Misc
06987:                                .getComboboxSelectedValue(jComboBoxPositionType) + "")
06988:                                .equals(""))
06989:                    return;
06990:                // Set the new value for all selected elements...
06991:                Enumeration e = getElementSelection().elements();
06992:                while (e.hasMoreElements()) {
06993:                    ReportElement element = (ReportElement) e.nextElement();
06994:                    element
06995:                            .setPositionType(""
06996:                                    + Misc
06997:                                            .getComboboxSelectedValue(jComboBoxPositionType));
06998:                }
06999:
07000:                fireReportElementsChangedEvent("positionType", ""
07001:                        + Misc.getComboboxSelectedValue(jComboBoxPositionType));
07002:                this .jComboBoxPositionType.removeItem("");
07003:            }//GEN-LAST:event_jComboBoxPositionTypeActionPerformed
07004:
07005:            private void jCheckBoxPrintRepeatedValuesActionPerformed(
07006:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxPrintRepeatedValuesActionPerformed
07007:                if (jrf == null || getElementSelection().size() == 0)
07008:                    return;
07009:                // Set the new value for all selected elements...
07010:                Enumeration e = getElementSelection().elements();
07011:                while (e.hasMoreElements()) {
07012:                    ReportElement element = (ReportElement) e.nextElement();
07013:                    element
07014:                            .setIsPrintRepeatedValues(jCheckBoxPrintRepeatedValues
07015:                                    .isSelected());
07016:                }
07017:
07018:                ReportElementChangedEvent rece = new ReportElementChangedEvent(
07019:                        jrf, getElementSelection(),
07020:                        ReportElementChangedEvent.CHANGED);
07021:                rece.setNewValue(new Boolean(jCheckBoxPrintRepeatedValues
07022:                        .isSelected()));
07023:                rece.setPropertyChanged("printRepeatedValues");
07024:                jrf.fireReportListenerReportElementsChanged(rece);
07025:            }//GEN-LAST:event_jCheckBoxPrintRepeatedValuesActionPerformed
07026:
07027:            private void jCheckBoxPrintWhenDetailOverflowsActionPerformed(
07028:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxPrintWhenDetailOverflowsActionPerformed
07029:                if (jrf == null || getElementSelection().size() == 0)
07030:                    return;
07031:                // Set the new value for all selected elements...
07032:                Enumeration e = getElementSelection().elements();
07033:                while (e.hasMoreElements()) {
07034:                    ReportElement element = (ReportElement) e.nextElement();
07035:                    element
07036:                            .setIsPrintWhenDetailOverflows(jCheckBoxPrintWhenDetailOverflows
07037:                                    .isSelected());
07038:                }
07039:                ReportElementChangedEvent rece = new ReportElementChangedEvent(
07040:                        jrf, getElementSelection(),
07041:                        ReportElementChangedEvent.CHANGED);
07042:                rece.setNewValue(new Boolean(jCheckBoxPrintWhenDetailOverflows
07043:                        .isSelected()));
07044:                rece.setPropertyChanged("printWhenDetailOverflows");
07045:                jrf.fireReportListenerReportElementsChanged(rece);
07046:            }//GEN-LAST:event_jCheckBoxPrintWhenDetailOverflowsActionPerformed
07047:
07048:            private void jCheckBoxPrintInFirstWholeBandActionPerformed(
07049:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxPrintInFirstWholeBandActionPerformed
07050:                if (jrf == null || getElementSelection().size() == 0)
07051:                    return;
07052:                // Set the new value for all selected elements...
07053:                Enumeration e = getElementSelection().elements();
07054:                while (e.hasMoreElements()) {
07055:                    ReportElement element = (ReportElement) e.nextElement();
07056:                    element
07057:                            .setIsPrintInFirstWholeBand(jCheckBoxPrintInFirstWholeBand
07058:                                    .isSelected());
07059:                }
07060:                ReportElementChangedEvent rece = new ReportElementChangedEvent(
07061:                        jrf, getElementSelection(),
07062:                        ReportElementChangedEvent.CHANGED);
07063:                rece.setNewValue(new Boolean(jCheckBoxPrintInFirstWholeBand
07064:                        .isSelected()));
07065:                rece.setPropertyChanged("printInFirstWholeBand");
07066:                jrf.fireReportListenerReportElementsChanged(rece);
07067:            }//GEN-LAST:event_jCheckBoxPrintInFirstWholeBandActionPerformed
07068:
07069:            private void jCheckBoxRemoveLineWhenBlankActionPerformed(
07070:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxRemoveLineWhenBlankActionPerformed
07071:                if (jrf == null || getElementSelection().size() == 0)
07072:                    return;
07073:                // Set the new value for all selected elements...
07074:                Enumeration e = getElementSelection().elements();
07075:                while (e.hasMoreElements()) {
07076:                    ReportElement element = (ReportElement) e.nextElement();
07077:                    element
07078:                            .setIsRemoveLineWhenBlank(jCheckBoxRemoveLineWhenBlank
07079:                                    .isSelected());
07080:                }
07081:                ReportElementChangedEvent rece = new ReportElementChangedEvent(
07082:                        jrf, getElementSelection(),
07083:                        ReportElementChangedEvent.CHANGED);
07084:                rece.setNewValue(new Boolean(jCheckBoxRemoveLineWhenBlank
07085:                        .isSelected()));
07086:                rece.setPropertyChanged("removeLineWhenBlank");
07087:                jrf.fireReportListenerReportElementsChanged(rece);
07088:                //repaintEditor();
07089:            }//GEN-LAST:event_jCheckBoxRemoveLineWhenBlankActionPerformed
07090:
07091:            private void jCheckBoxTransparentActionPerformed(
07092:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxTransparentActionPerformed
07093:                if (jrf == null || getElementSelection().size() == 0)
07094:                    return;
07095:                // Set the new value for all selected elements...
07096:                Enumeration e = getElementSelection().elements();
07097:                while (e.hasMoreElements()) {
07098:                    ReportElement element = (ReportElement) e.nextElement();
07099:                    element
07100:                            .setTransparent(((jCheckBoxTransparent.isSelected()) ? "Transparent"
07101:                                    : "Opaque"));
07102:                }
07103:                ReportElementChangedEvent rece = new ReportElementChangedEvent(
07104:                        jrf, getElementSelection(),
07105:                        ReportElementChangedEvent.CHANGED);
07106:                rece
07107:                        .setNewValue((jCheckBoxTransparent.isSelected()) ? "Transparent"
07108:                                : "Opaque");
07109:                rece.setPropertyChanged("mode");
07110:                jrf.fireReportListenerReportElementsChanged(rece);
07111:                repaintEditor();
07112:            }//GEN-LAST:event_jCheckBoxTransparentActionPerformed
07113:
07114:            /** Closes the dialog */
07115:            private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
07116:                setVisible(false);
07117:            }//GEN-LAST:event_closeDialog
07118:
07119:            private void jComboBoxMarkupActionPerformed(
07120:                    java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxMarkupActionPerformed
07121:
07122:                if (this .isInit())
07123:                    return;
07124:
07125:                // Set band to all....
07126:                if (jrf == null
07127:                        || getElementSelection().size() == 0
07128:                        || Misc.getComboboxSelectedValue(jComboBoxMarkup) == null
07129:                        || (Misc.getComboboxSelectedValue(jComboBoxMarkup) + "")
07130:                                .equals(""))
07131:                    return;
07132:                // Set the new value for all selected elements...
07133:                String s = (String) Misc
07134:                        .getComboboxSelectedValue(jComboBoxMarkup);
07135:                if (s.equals("None"))
07136:                    s = "";
07137:
07138:                Enumeration e = getElementSelection().elements();
07139:                while (e.hasMoreElements()) {
07140:                    TextReportElement element = (TextReportElement) e
07141:                            .nextElement();
07142:                    element.setMarkup(s);
07143:                }
07144:                fireReportElementsChangedEvent("markup", s);
07145:                this .jComboBoxMarkup.removeItem("");
07146:                repaintEditor();
07147:
07148:            }//GEN-LAST:event_jComboBoxMarkupActionPerformed
07149:
07150:            /**
07151:             * @param args the command line arguments
07152:             */
07153:            public static void main(String args[]) {
07154:                new ElementPropertiesDialog(new javax.swing.JFrame(), true)
07155:                        .setVisible(true);
07156:            }
07157:
07158:            // Variables declaration - do not modify//GEN-BEGIN:variables
07159:            private javax.swing.ButtonGroup buttonGroupCharts;
07160:            private it.businesslogic.ireport.gui.JRTextExpressionArea jBarcodeExpressionArea;
07161:            private it.businesslogic.ireport.gui.JRTextExpressionArea jBarcodeExpressionAreaAppIdentifier;
07162:            private javax.swing.JButton jButton1;
07163:            private javax.swing.JButton jButton2;
07164:            private javax.swing.JButton jButtonAddCrosstabParameter;
07165:            private javax.swing.JButton jButtonAddLinkParameter;
07166:            private javax.swing.JButton jButtonAddParameter;
07167:            private javax.swing.JButton jButtonAddReturnValue;
07168:            private javax.swing.JButton jButtonBackground;
07169:            private javax.swing.JButton jButtonCopyParamsFromMaster;
07170:            private javax.swing.JButton jButtonCreatePattern;
07171:            private javax.swing.JButton jButtonFindImage;
07172:            private javax.swing.JButton jButtonForeground;
07173:            private javax.swing.JButton jButtonModCrosstabParameter;
07174:            private javax.swing.JButton jButtonModLinkParameter;
07175:            private javax.swing.JButton jButtonModParameter;
07176:            private javax.swing.JButton jButtonModReturnValue;
07177:            private javax.swing.JButton jButtonRemCrosstabParameter;
07178:            private javax.swing.JButton jButtonRemLinkParameter;
07179:            private javax.swing.JButton jButtonRemParameter;
07180:            private javax.swing.JButton jButtonRemReturnValue;
07181:            private javax.swing.JCheckBox jCheckBoxBarcodeCheckSum;
07182:            private javax.swing.JCheckBox jCheckBoxBarcodeShowText;
07183:            private javax.swing.JCheckBox jCheckBoxBlankWhenNull;
07184:            private javax.swing.JCheckBox jCheckBoxBold;
07185:            private javax.swing.JCheckBox jCheckBoxImageCache;
07186:            private javax.swing.JCheckBox jCheckBoxImageIsLazy;
07187:            private javax.swing.JCheckBox jCheckBoxItalic;
07188:            private javax.swing.JCheckBox jCheckBoxPDFEmbedded;
07189:            private javax.swing.JCheckBox jCheckBoxPrintInFirstWholeBand;
07190:            private javax.swing.JCheckBox jCheckBoxPrintRepeatedValues;
07191:            private javax.swing.JCheckBox jCheckBoxPrintWhenDetailOverflows;
07192:            private javax.swing.JCheckBox jCheckBoxRemoveLineWhenBlank;
07193:            private javax.swing.JCheckBox jCheckBoxRepeatColumnHeaders;
07194:            private javax.swing.JCheckBox jCheckBoxRepeatRowHeaders;
07195:            private javax.swing.JCheckBox jCheckBoxStretchWithOverflow;
07196:            private javax.swing.JCheckBox jCheckBoxStrokeTrough;
07197:            private javax.swing.JCheckBox jCheckBoxStyledText;
07198:            private javax.swing.JCheckBox jCheckBoxSubreportCache;
07199:            private javax.swing.JCheckBox jCheckBoxTransparent;
07200:            private javax.swing.JCheckBox jCheckBoxUnderline;
07201:            private javax.swing.JComboBox jComboBoxBand;
07202:            private javax.swing.JComboBox jComboBoxBarcodeGroup;
07203:            private javax.swing.JComboBox jComboBoxBarcodeType;
07204:            private javax.swing.JComboBox jComboBoxEvaluationTime;
07205:            private javax.swing.JComboBox jComboBoxEvaluationTime1;
07206:            private javax.swing.JComboBox jComboBoxEvaluationTimeBarcode;
07207:            private javax.swing.JComboBox jComboBoxFill;
07208:            private javax.swing.JComboBox jComboBoxFontName;
07209:            private javax.swing.JComboBox jComboBoxGroups;
07210:            private javax.swing.JComboBox jComboBoxHAlign;
07211:            private javax.swing.JComboBox jComboBoxHorizontalAlignment;
07212:            private javax.swing.JComboBox jComboBoxHorizontalAlignment1;
07213:            private javax.swing.JComboBox jComboBoxImageExpressionClass;
07214:            private javax.swing.JComboBox jComboBoxImageGroup;
07215:            private javax.swing.JComboBox jComboBoxImageGroup1;
07216:            private javax.swing.JComboBox jComboBoxImageOnError;
07217:            private javax.swing.JComboBox jComboBoxImageOnError1;
07218:            private javax.swing.JComboBox jComboBoxLineDirection;
07219:            private javax.swing.JComboBox jComboBoxLineSpacing;
07220:            private javax.swing.JComboBox jComboBoxLinkTarget;
07221:            private javax.swing.JComboBox jComboBoxLinkType;
07222:            private javax.swing.JComboBox jComboBoxMarkup;
07223:            private javax.swing.JComboBox jComboBoxPDFFontName;
07224:            private javax.swing.JComboBox jComboBoxPattern;
07225:            private javax.swing.JComboBox jComboBoxPdfEncoding;
07226:            private javax.swing.JComboBox jComboBoxPen;
07227:            private javax.swing.JComboBox jComboBoxPositionType;
07228:            private javax.swing.JComboBox jComboBoxReportFont;
07229:            private javax.swing.JComboBox jComboBoxRotation;
07230:            private javax.swing.JComboBox jComboBoxScale;
07231:            private javax.swing.JComboBox jComboBoxScale1;
07232:            private javax.swing.JComboBox jComboBoxStretchType;
07233:            private javax.swing.JComboBox jComboBoxStyle;
07234:            private javax.swing.JComboBox jComboBoxSubreportConnectionType;
07235:            private javax.swing.JComboBox jComboBoxSubreportExpressionClass;
07236:            private javax.swing.JComboBox jComboBoxTextFieldEvaluationTime;
07237:            private javax.swing.JComboBox jComboBoxTextFieldExpressionClass;
07238:            private javax.swing.JComboBox jComboBoxTextFieldGroup;
07239:            private javax.swing.JComboBox jComboBoxVAlign;
07240:            private javax.swing.JComboBox jComboBoxVerticalAlignment;
07241:            private javax.swing.JComboBox jComboBoxVerticalAlignment1;
07242:            private javax.swing.JLabel jLabel1;
07243:            private javax.swing.JLabel jLabel10;
07244:            private javax.swing.JLabel jLabel11;
07245:            private javax.swing.JLabel jLabel12;
07246:            private javax.swing.JLabel jLabel13;
07247:            private javax.swing.JLabel jLabel14;
07248:            private javax.swing.JLabel jLabel15;
07249:            private javax.swing.JLabel jLabel16;
07250:            private javax.swing.JLabel jLabel17;
07251:            private javax.swing.JLabel jLabel18;
07252:            private javax.swing.JLabel jLabel19;
07253:            private javax.swing.JLabel jLabel2;
07254:            private javax.swing.JLabel jLabel20;
07255:            private javax.swing.JLabel jLabel21;
07256:            private javax.swing.JLabel jLabel22;
07257:            private javax.swing.JLabel jLabel23;
07258:            private javax.swing.JLabel jLabel24;
07259:            private javax.swing.JLabel jLabel25;
07260:            private javax.swing.JLabel jLabel26;
07261:            private javax.swing.JLabel jLabel27;
07262:            private javax.swing.JLabel jLabel28;
07263:            private javax.swing.JLabel jLabel29;
07264:            private javax.swing.JLabel jLabel3;
07265:            private javax.swing.JLabel jLabel30;
07266:            private javax.swing.JLabel jLabel31;
07267:            private javax.swing.JLabel jLabel32;
07268:            private javax.swing.JLabel jLabel33;
07269:            private javax.swing.JLabel jLabel34;
07270:            private javax.swing.JLabel jLabel35;
07271:            private javax.swing.JLabel jLabel36;
07272:            private javax.swing.JLabel jLabel37;
07273:            private javax.swing.JLabel jLabel38;
07274:            private javax.swing.JLabel jLabel39;
07275:            private javax.swing.JLabel jLabel4;
07276:            private javax.swing.JLabel jLabel40;
07277:            private javax.swing.JLabel jLabel41;
07278:            private javax.swing.JLabel jLabel42;
07279:            private javax.swing.JLabel jLabel43;
07280:            private javax.swing.JLabel jLabel44;
07281:            private javax.swing.JLabel jLabel45;
07282:            private javax.swing.JLabel jLabel46;
07283:            private javax.swing.JLabel jLabel47;
07284:            private javax.swing.JLabel jLabel48;
07285:            private javax.swing.JLabel jLabel49;
07286:            private javax.swing.JLabel jLabel5;
07287:            private javax.swing.JLabel jLabel50;
07288:            private javax.swing.JLabel jLabel51;
07289:            private javax.swing.JLabel jLabel52;
07290:            private javax.swing.JLabel jLabel53;
07291:            private javax.swing.JLabel jLabel54;
07292:            private javax.swing.JLabel jLabel55;
07293:            private javax.swing.JLabel jLabel56;
07294:            private javax.swing.JLabel jLabel57;
07295:            private javax.swing.JLabel jLabel58;
07296:            private javax.swing.JLabel jLabel59;
07297:            private javax.swing.JLabel jLabel6;
07298:            private javax.swing.JLabel jLabel60;
07299:            private javax.swing.JLabel jLabel61;
07300:            private javax.swing.JLabel jLabel7;
07301:            private javax.swing.JLabel jLabel8;
07302:            private javax.swing.JLabel jLabel9;
07303:            private javax.swing.JLabel jLabelAnchor;
07304:            private javax.swing.JLabel jLabelMarkup;
07305:            private javax.swing.JLabel jLabelPage;
07306:            private javax.swing.JLabel jLabelReference;
07307:            private javax.swing.JLabel jLabelStyle;
07308:            private javax.swing.JLabel jLabelTarget;
07309:            private javax.swing.JLabel jLabelTarget1;
07310:            private javax.swing.JLabel jLabelTooltip;
07311:            private it.businesslogic.ireport.gui.JNumberComboBox jNumberComboBoxSize;
07312:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldBCHeight;
07313:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldBCWidth;
07314:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldColumnBreakOffset;
07315:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldHeight;
07316:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldLeft;
07317:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldRadius;
07318:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldTop;
07319:            private it.businesslogic.ireport.gui.JNumberField jNumberFieldWidth;
07320:            private javax.swing.JPanel jPanel1;
07321:            private javax.swing.JPanel jPanel10;
07322:            private javax.swing.JPanel jPanel11;
07323:            private javax.swing.JPanel jPanel12;
07324:            private javax.swing.JPanel jPanel13;
07325:            private javax.swing.JPanel jPanel14;
07326:            private javax.swing.JPanel jPanel15;
07327:            private javax.swing.JPanel jPanel16;
07328:            private javax.swing.JPanel jPanel17;
07329:            private javax.swing.JPanel jPanel18;
07330:            private javax.swing.JPanel jPanel19;
07331:            private javax.swing.JPanel jPanel2;
07332:            private javax.swing.JPanel jPanel20;
07333:            private javax.swing.JPanel jPanel21;
07334:            private javax.swing.JPanel jPanel22;
07335:            private javax.swing.JPanel jPanel23;
07336:            private javax.swing.JPanel jPanel24;
07337:            private javax.swing.JPanel jPanel25;
07338:            private javax.swing.JPanel jPanel3;
07339:            private javax.swing.JPanel jPanel4;
07340:            private javax.swing.JPanel jPanel5;
07341:            private javax.swing.JPanel jPanel6;
07342:            private javax.swing.JPanel jPanel7;
07343:            private javax.swing.JPanel jPanel8;
07344:            private javax.swing.JPanel jPanel9;
07345:            private javax.swing.JPanel jPanelAnchor;
07346:            private javax.swing.JPanel jPanelBarcode;
07347:            private javax.swing.JPanel jPanelBorder;
07348:            private javax.swing.JPanel jPanelChart;
07349:            private javax.swing.JPanel jPanelCommon;
07350:            private javax.swing.JPanel jPanelCrosstab;
07351:            private javax.swing.JPanel jPanelFont;
07352:            private javax.swing.JPanel jPanelGraphicselement;
07353:            private javax.swing.JPanel jPanelHyperLink;
07354:            private javax.swing.JPanel jPanelImage;
07355:            private javax.swing.JPanel jPanelLine;
07356:            private javax.swing.JPanel jPanelLinkParams;
07357:            private javax.swing.JPanel jPanelPage;
07358:            private javax.swing.JPanel jPanelRectangle;
07359:            private javax.swing.JPanel jPanelReference;
07360:            private javax.swing.JPanel jPanelSheet;
07361:            private javax.swing.JPanel jPanelSubreport1;
07362:            private javax.swing.JPanel jPanelSubreport2;
07363:            private javax.swing.JPanel jPanelSubreportReturnValues;
07364:            private javax.swing.JPanel jPanelText;
07365:            private javax.swing.JPanel jPanelTextField;
07366:            private javax.swing.JPanel jPanelTooltip;
07367:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaAnchor;
07368:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaAnchorName;
07369:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaCrosstabParametersMapExpression;
07370:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaImageExpression;
07371:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaPage;
07372:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaPrintWhenExpression;
07373:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaReference;
07374:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaSubreportExpression;
07375:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaSubreportMapExpression;
07376:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaTextConnectionExpression;
07377:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaTextFieldExpression;
07378:            private it.businesslogic.ireport.gui.JRTextExpressionArea jRTextExpressionAreaTooltip;
07379:            private javax.swing.JScrollPane jScrollPane1;
07380:            private javax.swing.JScrollPane jScrollPane2;
07381:            private javax.swing.JScrollPane jScrollPane3;
07382:            private javax.swing.JScrollPane jScrollPane4;
07383:            private javax.swing.JScrollPane jScrollPane5;
07384:            private javax.swing.JSeparator jSeparator1;
07385:            private javax.swing.JSeparator jSeparator10;
07386:            private javax.swing.JSeparator jSeparator2;
07387:            private javax.swing.JSeparator jSeparator3;
07388:            private javax.swing.JSeparator jSeparator4;
07389:            private javax.swing.JSeparator jSeparator5;
07390:            private javax.swing.JSeparator jSeparator6;
07391:            private javax.swing.JSeparator jSeparator7;
07392:            private javax.swing.JSeparator jSeparator8;
07393:            private javax.swing.JSeparator jSeparator9;
07394:            private javax.swing.JSpinner jSpinnerBookmarkLevel;
07395:            private javax.swing.JTabbedPane jTabbedPane;
07396:            private javax.swing.JTabbedPane jTabbedPane1;
07397:            private javax.swing.JTabbedPane jTabbedPane2;
07398:            private javax.swing.JTable jTableCrosstabParameters;
07399:            private javax.swing.JTable jTableLinkParameters;
07400:            private javax.swing.JTable jTableSubreportParameters;
07401:            private javax.swing.JTable jTableSubreportReturnValues;
07402:            private javax.swing.JTextArea jTextAreaText;
07403:            private javax.swing.JTextField jTextFieldName;
07404:            // End of variables declaration//GEN-END:variables
07405:
07406:            private boolean init;
07407:
07408:            /**
07409:             *  Set the report form to work with...
07410:             */
07411:            public void setJReportFrame(JReportFrame jrf) {
07412:                this .jrf = jrf;
07413:                if (jrf == null) {
07414:                    setVisible(false);
07415:                    this .jTabbedPane.removeAll();
07416:                    this .jTabbedPane.updateUI();
07417:                    return;
07418:                }
07419:
07420:                this .setTitle(jrf.getReport().getName());
07421:                updateBands();
07422:                updateGroups();
07423:                updateStyles();
07424:                updateReportFonts();
07425:                updateSelection();
07426:
07427:                initExpressionArea(jRTextExpressionAreaSubreportExpression);
07428:                initExpressionArea(jRTextExpressionAreaAnchor);
07429:                initExpressionArea(jRTextExpressionAreaAnchorName);
07430:                initExpressionArea(jRTextExpressionAreaImageExpression);
07431:                initExpressionArea(jRTextExpressionAreaPage);
07432:                initExpressionArea(jRTextExpressionAreaPrintWhenExpression);
07433:                initExpressionArea(jRTextExpressionAreaReference);
07434:                initExpressionArea(jRTextExpressionAreaSubreportExpression);
07435:                initExpressionArea(jRTextExpressionAreaSubreportMapExpression);
07436:                initExpressionArea(jRTextExpressionAreaTextConnectionExpression);
07437:                initExpressionArea(jRTextExpressionAreaTextFieldExpression);
07438:                initExpressionArea(jBarcodeExpressionArea);
07439:            }
07440:
07441:            /**
07442:             * This method removes all references by the JRTextExpressionArea fields
07443:             * to be sure that if needed a fresh context is used
07444:             *
07445:             */
07446:            public void clearExpressionEditorContext() {
07447:                jRTextExpressionAreaSubreportExpression.setSubDataset(null);
07448:                jRTextExpressionAreaAnchor.setSubDataset(null);
07449:                jRTextExpressionAreaAnchorName.setSubDataset(null);
07450:                jRTextExpressionAreaImageExpression.setSubDataset(null);
07451:                jRTextExpressionAreaPage.setSubDataset(null);
07452:                jRTextExpressionAreaPrintWhenExpression.setSubDataset(null);
07453:                jRTextExpressionAreaReference.setSubDataset(null);
07454:                jRTextExpressionAreaSubreportExpression.setSubDataset(null);
07455:                jRTextExpressionAreaSubreportMapExpression.setSubDataset(null);
07456:                jRTextExpressionAreaTextConnectionExpression
07457:                        .setSubDataset(null);
07458:                jRTextExpressionAreaTextFieldExpression.setSubDataset(null);
07459:                jBarcodeExpressionArea.setSubDataset(null);
07460:
07461:                jRTextExpressionAreaSubreportExpression.getCrosstabElements()
07462:                        .removeAllElements();
07463:                jRTextExpressionAreaAnchor.getCrosstabElements()
07464:                        .removeAllElements();
07465:                jRTextExpressionAreaAnchorName.getCrosstabElements()
07466:                        .removeAllElements();
07467:                jRTextExpressionAreaImageExpression.getCrosstabElements()
07468:                        .removeAllElements();
07469:                jRTextExpressionAreaPage.getCrosstabElements()
07470:                        .removeAllElements();
07471:                jRTextExpressionAreaPrintWhenExpression.getCrosstabElements()
07472:                        .removeAllElements();
07473:                jRTextExpressionAreaReference.getCrosstabElements()
07474:                        .removeAllElements();
07475:                jRTextExpressionAreaSubreportExpression.getCrosstabElements()
07476:                        .removeAllElements();
07477:                jRTextExpressionAreaSubreportMapExpression
07478:                        .getCrosstabElements().removeAllElements();
07479:                jRTextExpressionAreaTextConnectionExpression
07480:                        .getCrosstabElements().removeAllElements();
07481:                jRTextExpressionAreaTextFieldExpression.getCrosstabElements()
07482:                        .removeAllElements();
07483:                jBarcodeExpressionArea.getCrosstabElements()
07484:                        .removeAllElements();
07485:
07486:            }
07487:
07488:            /**
07489:             *  This method responde to a virtual event like "element selection changed"
07490:             */
07491:            public void updateSelection() {
07492:                updateSelection(false);
07493:
07494:            }
07495:
07496:            public void updateSelection(boolean force) {
07497:
07498:                if (!force && !this .isVisible())
07499:                    return;
07500:
07501:                if (jTabbedPane.getTabCount() > 0) {
07502:                    jTabbedPane.removeAll();
07503:                    this .jTabbedPane.updateUI();
07504:                }
07505:                if (jrf == null || getElementSelection().size() == 0) {
07506:                    return;
07507:                } else {
07508:
07509:                    updateBands();
07510:                    updateGroups();
07511:                    updateStyles();
07512:                    updateReportFonts();
07513:
07514:                    this .setInit(true);
07515:
07516:                    Enumeration e = getElementSelection().elements();
07517:
07518:                    boolean isTheFirstElement = true;
07519:                    Band last_band = null;
07520:                    int y_location = 0;
07521:
07522:                    //______ COMMON ATTRIBUTES __________
07523:                    boolean sameTransparent = true;
07524:                    boolean sameWidth = true;
07525:                    boolean sameHeight = true;
07526:                    boolean sameTop = true;
07527:                    boolean sameLeft = true;
07528:                    boolean sameBand = true;
07529:                    boolean sameRemoveLineWhenBlank = true;
07530:                    boolean samePrintInFirstWholeBand = true;
07531:                    boolean samePrintWhenDetailOverflows = true;
07532:                    boolean samePrintRepeatedValues = true;
07533:                    boolean samePositionType = true;
07534:                    boolean sameBackgroud = true;
07535:                    boolean sameForecolor = true;
07536:                    boolean samePrintWhenGroupChanges = true;
07537:                    boolean samePrintWhenExpression = true;
07538:                    boolean sameKey = true;
07539:                    boolean sameStretchWithOverflow = true;
07540:                    boolean sameStyle = true;
07541:
07542:                    //______ GRAPHIC ELEMENT ATTRIBUTES __________
07543:                    boolean areAllGraphicsElements = true;
07544:                    boolean samePen = true;
07545:                    boolean sameStretchType = true;
07546:                    boolean sameFill = true;
07547:                    //______ RECTANGLE ELEMENT ATTRIBUTES __________
07548:                    boolean areAllRectangleElements = true;
07549:                    boolean sameRadius = true;
07550:                    //______ LINE ELEMENT ATTRIBUTES __________
07551:                    boolean areAllLineElements = true;
07552:                    boolean sameLineDirection = true;
07553:                    //______ IMAGE ELEMENT ATTRIBUTES __________
07554:                    boolean areAllImageElements = true;
07555:                    boolean sameScaleImage = true;
07556:                    boolean sameImageExpression = true;
07557:                    boolean sameImageGroup = true;
07558:                    boolean sameEvaluationTime = true;
07559:                    boolean sameVerticalAlignment = true;
07560:                    boolean sameHorizontalAlignment = true;
07561:                    boolean sameImageCache = true;
07562:                    boolean sameImageLazy = true;
07563:                    boolean sameImageExpressionClass = true;
07564:                    boolean sameImageOnError = true;
07565:                    //______ TEXT ELEMENT ATTRIBUTES __________
07566:                    boolean areAllTextElements = true;
07567:                    boolean sameReportFont = true;
07568:                    boolean sameFontName = true;
07569:                    boolean samePDFFontName = true;
07570:                    boolean sameTTFFont = true;
07571:                    boolean sameFontSize = true;
07572:                    boolean sameIsBold = true;
07573:                    boolean sameIsItalic = true;
07574:                    boolean sameIsUnderline = true;
07575:                    boolean sameIsStrokeTrough = true;
07576:                    boolean sameTextVAlign = true;
07577:                    boolean sameTextHAlign = true;
07578:                    boolean sameTextLineSpacing = true;
07579:                    boolean sameIsPdfEmbedded = true;
07580:                    boolean samePdfEncoding = true;
07581:                    boolean sameRotation = true;
07582:                    boolean sameIsStyledTexdt = true;
07583:                    boolean sameMarkup = true;
07584:
07585:                    //______ STATIC ELEMENT ATTRIBUTES __________
07586:                    boolean areAllStaticTextElements = true;
07587:                    boolean sameText = true;
07588:                    //______ TEXTFIELD ELEMENT ATTRIBUTES __________
07589:                    boolean areAllTextFieldElements = true;
07590:                    boolean sameTextExpressionClass = true;
07591:                    boolean sameTextExpression = true;
07592:                    boolean sameTextEvaluationTime = true;
07593:                    boolean sameTextGroup = true;
07594:                    boolean sameTextStretchWithOverflow = true;
07595:                    boolean sameTextBlankWhenNull = true;
07596:                    boolean sameTextPattern = true;
07597:                    //______ HyperLinkable ELEMENT ATTRIBUTES __________
07598:                    boolean areAllHyperLinkableElements = true;
07599:                    boolean sameHyperLinkAnchorName = true;
07600:                    boolean sameHyperLinkType = true;
07601:                    boolean sameHyperLinkTarget = true;
07602:                    boolean sameHyperLinkAnchor = true;
07603:                    boolean sameHyperLinkPage = true;
07604:                    boolean sameHyperLinkReference = true;
07605:                    boolean sameBookmarkLevel = true;
07606:                    boolean sameTooltip = true;
07607:
07608:                    //______ BARCODE ELEMENT ATTRIBUTES __________
07609:                    boolean areAllBarcodeElements = true;
07610:                    boolean sameBarcodeExpression = true;
07611:                    boolean sameBarcodeGroup = true;
07612:                    boolean sameBarcodeEvaluationTime = true;
07613:                    boolean sameBarcodeShowText = true;
07614:                    boolean sameBarcodeChecksum = true;
07615:                    boolean sameBarcodeText = true;
07616:                    boolean sameBarcodeType = true;
07617:                    boolean sameBCVerticalAlignment = true;
07618:                    boolean sameBCHorizontalAlignment = true;
07619:                    boolean sameBCImageOnError = true;
07620:                    boolean sameBCScaleImage = true;
07621:                    boolean sameBCHeight = true;
07622:                    boolean sameBCWidth = true;
07623:                    boolean sameBCAppIdentifier = true;
07624:
07625:                    boolean isSubreportElement = false;
07626:                    boolean isCrosstabElement = false;
07627:                    boolean isChartElement = false;
07628:
07629:                    // ______ BOX _____________
07630:                    boolean areAllBorder = true;
07631:
07632:                    //boolean isBarcodeElement = false;
07633:
07634:                    if (!jComboBoxPositionType.getItemAt(0).equals(""))
07635:                        this .jComboBoxPositionType.insertItemAt("", 0);
07636:                    if (jComboBoxStyle.getItemCount() == 0
07637:                            || !jComboBoxStyle.getItemAt(0).equals(""))
07638:                        this .jComboBoxStyle.insertItemAt("", 0);
07639:                    if (!jComboBoxPen.getItemAt(0).equals(""))
07640:                        this .jComboBoxPen.insertItemAt("", 0);
07641:                    if (!jComboBoxStretchType.getItemAt(0).equals(""))
07642:                        this .jComboBoxStretchType.insertItemAt("", 0);
07643:                    if (!jComboBoxFill.getItemAt(0).equals(""))
07644:                        this .jComboBoxFill.insertItemAt("", 0);
07645:                    if (!jComboBoxLineDirection.getItemAt(0).equals(""))
07646:                        this .jComboBoxLineDirection.insertItemAt("", 0);
07647:                    if (!jComboBoxScale.getItemAt(0).equals(""))
07648:                        this .jComboBoxScale.insertItemAt("", 0);
07649:                    if (!jComboBoxImageExpressionClass.getItemAt(0).equals(""))
07650:                        this .jComboBoxImageExpressionClass.insertItemAt("", 0);
07651:                    if (!jComboBoxVerticalAlignment.getItemAt(0).equals(""))
07652:                        this .jComboBoxVerticalAlignment.insertItemAt("", 0);
07653:                    if (!jComboBoxHorizontalAlignment.getItemAt(0).equals(""))
07654:                        this .jComboBoxHorizontalAlignment.insertItemAt("", 0);
07655:                    if (!jComboBoxEvaluationTime.getItemAt(0).equals(""))
07656:                        this .jComboBoxEvaluationTime.insertItemAt("", 0);
07657:                    if (jComboBoxReportFont.getItemCount() == 0
07658:                            || !jComboBoxReportFont.getItemAt(0).equals(""))
07659:                        this .jComboBoxReportFont.insertItemAt("", 0);
07660:                    if (jComboBoxHAlign.getItemCount() == 0
07661:                            || !jComboBoxHAlign.getItemAt(0).equals(""))
07662:                        this .jComboBoxHAlign.insertItemAt("", 0);
07663:                    if (jComboBoxVAlign.getItemCount() == 0
07664:                            || !jComboBoxVAlign.getItemAt(0).equals(""))
07665:                        this .jComboBoxVAlign.insertItemAt("", 0);
07666:                    if (jComboBoxLineSpacing.getItemCount() == 0
07667:                            || !jComboBoxLineSpacing.getItemAt(0).equals(""))
07668:                        this .jComboBoxLineSpacing.insertItemAt("", 0);
07669:                    if (jComboBoxPdfEncoding.getItemCount() == 0
07670:                            || !jComboBoxPdfEncoding.getItemAt(0).equals(""))
07671:                        this .jComboBoxPdfEncoding.insertItemAt("", 0);
07672:                    if (jComboBoxTextFieldEvaluationTime.getItemCount() == 0
07673:                            || !jComboBoxTextFieldEvaluationTime.getItemAt(0)
07674:                                    .equals(""))
07675:                        this .jComboBoxTextFieldEvaluationTime.insertItemAt("",
07676:                                0);
07677:                    if (jComboBoxTextFieldExpressionClass.getItemCount() == 0
07678:                            || !jComboBoxTextFieldExpressionClass.getItemAt(0)
07679:                                    .equals(""))
07680:                        this .jComboBoxTextFieldExpressionClass.insertItemAt("",
07681:                                0);
07682:                    if (jComboBoxTextFieldGroup.getItemCount() == 0
07683:                            || !jComboBoxTextFieldGroup.getItemAt(0).equals(""))
07684:                        this .jComboBoxTextFieldGroup.insertItemAt("", 0);
07685:                    if (jComboBoxPattern.getItemCount() == 0
07686:                            || !jComboBoxPattern.getItemAt(0).equals(""))
07687:                        this .jComboBoxPattern.insertItemAt("", 0);
07688:                    if (jComboBoxLinkType.getItemCount() == 0
07689:                            || !jComboBoxLinkType.getItemAt(0).equals(""))
07690:                        this .jComboBoxLinkType.insertItemAt("", 0);
07691:                    if (!jComboBoxRotation.getItemAt(0).equals(""))
07692:                        this .jComboBoxRotation.insertItemAt("", 0);
07693:                    if (jComboBoxEvaluationTimeBarcode.getItemCount() == 0
07694:                            || !jComboBoxEvaluationTimeBarcode.getItemAt(0)
07695:                                    .equals(""))
07696:                        this .jComboBoxEvaluationTimeBarcode.insertItemAt("", 0);
07697:                    if (jComboBoxBarcodeGroup.getItemCount() == 0
07698:                            || !jComboBoxBarcodeGroup.getItemAt(0).equals(""))
07699:                        this .jComboBoxBarcodeGroup.insertItemAt("", 0);
07700:                    if (jComboBoxBarcodeType.getItemCount() == 0
07701:                            || !jComboBoxBarcodeType.getItemAt(0).equals(""))
07702:                        this .jComboBoxBarcodeType.insertItemAt("", 0);
07703:                    if (jComboBoxLinkTarget.getItemCount() == 0
07704:                            || !jComboBoxLinkTarget.getItemAt(0).equals(""))
07705:                        this .jComboBoxLinkTarget.insertItemAt("", 0);
07706:                    if (jComboBoxImageOnError.getItemCount() == 0
07707:                            || !jComboBoxImageOnError.getItemAt(0).equals(""))
07708:                        this .jComboBoxImageOnError.insertItemAt("", 0);
07709:                    if (jComboBoxMarkup.getItemCount() == 0
07710:                            || !jComboBoxMarkup.getItemAt(0).equals(""))
07711:                        this .jComboBoxMarkup.insertItemAt("", 0);
07712:
07713:                    jComboBoxPattern.setSelectedIndex(0);
07714:                    ((javax.swing.JTextField) jComboBoxPattern.getEditor()
07715:                            .getEditorComponent()).setText("");
07716:
07717:                    while (e.hasMoreElements()) {
07718:                        ReportElement re = (ReportElement) e.nextElement();
07719:                        // 1. Set element properties...
07720:                        // For each panel, search
07721:                        if (re.getBand() != null
07722:                                && (last_band == null || last_band != re
07723:                                        .getBand())) {
07724:                            y_location = this .jrf.getReport().getBandYLocation(
07725:                                    re.getBand());
07726:                            last_band = re.getBand();
07727:                        }
07728:
07729:                        int x_location = this .jrf.getReport().getLeftMargin();
07730:
07731:                        if (re.getBand() == null && re.getCell() != null) {
07732:                            y_location = re.getCell().getTop();
07733:                            x_location = re.getCell().getLeft();
07734:                        }
07735:
07736:                        if (sameStretchType)
07737:                            sameStretchType = this .setComboBoxTag(
07738:                                    isTheFirstElement, re.getStretchType(),
07739:                                    jComboBoxStretchType);
07740:                        if (sameKey)
07741:                            sameKey = this .setTextField(isTheFirstElement, re
07742:                                    .getKey(), jTextFieldName);
07743:                        if (sameWidth)
07744:                            sameWidth = this .setElementNumber(
07745:                                    isTheFirstElement, re.getWidth(),
07746:                                    jNumberFieldWidth);
07747:                        if (sameHeight)
07748:                            sameHeight = this .setElementNumber(
07749:                                    isTheFirstElement, re.getHeight(),
07750:                                    jNumberFieldHeight);
07751:
07752:                        int position_x = re.getPosition().x;
07753:                        if (re.getParentElement() != null)
07754:                            position_x -= re.getParentElement().getPosition().x;
07755:                        else
07756:                            position_x = position_x - 10 - x_location;
07757:
07758:                        if (sameLeft)
07759:                            sameLeft = this .setElementNumber(isTheFirstElement,
07760:                                    position_x, jNumberFieldLeft);
07761:
07762:                        int position_y = re.getPosition().y;
07763:                        if (re.getParentElement() != null)
07764:                            position_y -= re.getParentElement().getPosition().y;
07765:                        else
07766:                            position_y = position_y - y_location - 10;
07767:
07768:                        if (sameTop)
07769:                            sameTop = this .setElementNumber(isTheFirstElement,
07770:                                    position_y, jNumberFieldTop);
07771:
07772:                        if (sameTransparent)
07773:                            sameTransparent = this .setCheckBox(
07774:                                    isTheFirstElement, re.getTransparent()
07775:                                            .equals("Transparent"),
07776:                                    jCheckBoxTransparent);
07777:                        if (sameBand)
07778:                            sameBand = this .setComboBox(isTheFirstElement, (re
07779:                                    .getCell() != null) ? (Object) re.getCell()
07780:                                    : (Object) re.getBand(), jComboBoxBand);
07781:                        if (sameRemoveLineWhenBlank)
07782:                            sameRemoveLineWhenBlank = this .setCheckBox(
07783:                                    isTheFirstElement, re
07784:                                            .isIsRemoveLineWhenBlank(),
07785:                                    jCheckBoxRemoveLineWhenBlank);
07786:                        if (samePrintInFirstWholeBand)
07787:                            samePrintInFirstWholeBand = this .setCheckBox(
07788:                                    isTheFirstElement, re
07789:                                            .isIsPrintInFirstWholeBand(),
07790:                                    jCheckBoxPrintInFirstWholeBand);
07791:                        if (samePrintWhenDetailOverflows)
07792:                            samePrintWhenDetailOverflows = this .setCheckBox(
07793:                                    isTheFirstElement, re
07794:                                            .isIsPrintWhenDetailOverflows(),
07795:                                    jCheckBoxPrintWhenDetailOverflows);
07796:                        if (samePrintRepeatedValues)
07797:                            samePrintRepeatedValues = this .setCheckBox(
07798:                                    isTheFirstElement, re
07799:                                            .isIsPrintRepeatedValues(),
07800:                                    jCheckBoxPrintRepeatedValues);
07801:                        if (samePositionType)
07802:                            samePositionType = this .setComboBoxTag(
07803:                                    isTheFirstElement, re.getPositionType(),
07804:                                    jComboBoxPositionType);
07805:                        if (sameBackgroud)
07806:                            sameBackgroud = setElementColor(isTheFirstElement,
07807:                                    re.getBgcolor(), jButtonBackground);
07808:                        if (sameForecolor)
07809:                            sameForecolor = setElementColor(isTheFirstElement,
07810:                                    re.getFgcolor(), jButtonForeground);
07811:                        if (samePrintWhenExpression)
07812:                            samePrintWhenExpression = setTextArea(
07813:                                    isTheFirstElement, re.printWhenExpression,
07814:                                    jRTextExpressionAreaPrintWhenExpression);
07815:                        if (samePrintWhenGroupChanges)
07816:                            samePrintWhenGroupChanges = this .setComboBoxText(
07817:                                    isTheFirstElement, Misc.nvl(
07818:                                            re.printWhenGroupChanges, ""),
07819:                                    jComboBoxGroups);
07820:                        if (sameStyle)
07821:                            sameStyle = this .setComboBox(isTheFirstElement, re
07822:                                    .getStyle(), jComboBoxStyle);
07823:                        // Tab Graphics Element
07824:                        if (areAllGraphicsElements
07825:                                && (re instanceof  GraphicReportElement)) {
07826:                            GraphicReportElement gre = (GraphicReportElement) re;
07827:                            if (samePen)
07828:                                samePen = this .setComboBoxTag(
07829:                                        isTheFirstElement, gre
07830:                                                .getGraphicElementPen(),
07831:                                        jComboBoxPen);
07832:
07833:                            if (sameFill)
07834:                                sameFill = this .setComboBoxTag(
07835:                                        isTheFirstElement, gre.getFill(),
07836:                                        jComboBoxFill);
07837:                        } else {
07838:                            areAllGraphicsElements = false;
07839:                        }
07840:
07841:                        // Tab Rectangle Element
07842:                        if (areAllRectangleElements
07843:                                && (re instanceof  RectangleReportElement)) {
07844:                            RectangleReportElement rre = (RectangleReportElement) re;
07845:                            if (sameRadius)
07846:                                sameRadius = this .setElementNumber(
07847:                                        isTheFirstElement, rre.getRadius(),
07848:                                        jNumberFieldRadius);
07849:
07850:                        } else {
07851:                            areAllRectangleElements = false;
07852:                        }
07853:
07854:                        // Tab Line Element
07855:                        if (areAllLineElements
07856:                                && (re instanceof  LineReportElement)) {
07857:                            LineReportElement lre = (LineReportElement) re;
07858:                            if (sameLineDirection)
07859:                                samePen = this .setComboBoxTag(
07860:                                        isTheFirstElement, lre.direction,
07861:                                        jComboBoxLineDirection);
07862:                        } else {
07863:                            areAllLineElements = false;
07864:                        }
07865:
07866:                        // Tab Image Element
07867:                        if (areAllBarcodeElements
07868:                                && re instanceof  BarcodeReportElement) {
07869:                            BarcodeReportElement bre = (BarcodeReportElement) re;
07870:                            if (sameBarcodeExpression)
07871:                                sameBarcodeExpression = setTextArea(
07872:                                        isTheFirstElement, bre.getText(),
07873:                                        jBarcodeExpressionArea);
07874:                            if (sameBarcodeGroup)
07875:                                sameBarcodeGroup = this .setComboBoxText(
07876:                                        isTheFirstElement, Misc.nvl(bre
07877:                                                .getEvaluationGroup(), ""),
07878:                                        jComboBoxBarcodeGroup);
07879:                            if (sameBarcodeType)
07880:                                sameBarcodeType = this .setTagComboBox(
07881:                                        isTheFirstElement, bre.getType() + "",
07882:                                        jComboBoxBarcodeType);
07883:                            if (sameBarcodeEvaluationTime)
07884:                                sameBarcodeEvaluationTime = this 
07885:                                        .setComboBoxTag(isTheFirstElement, Misc
07886:                                                .nvl(bre.getEvaluationTime(),
07887:                                                        ""),
07888:                                                jComboBoxEvaluationTimeBarcode);
07889:                            if (sameBarcodeShowText)
07890:                                sameBarcodeShowText = this .setCheckBox(
07891:                                        isTheFirstElement, bre.isShowText(),
07892:                                        jCheckBoxBarcodeShowText);
07893:                            if (sameBarcodeChecksum)
07894:                                sameBarcodeChecksum = this .setCheckBox(
07895:                                        isTheFirstElement, bre.isCheckSum(),
07896:                                        jCheckBoxBarcodeCheckSum);
07897:                            if (sameBCScaleImage)
07898:                                sameBCScaleImage = this .setComboBoxTag(
07899:                                        isTheFirstElement, bre.getScaleImage(),
07900:                                        jComboBoxScale1);
07901:                            if (sameBCImageOnError)
07902:                                sameBCImageOnError = this .setComboBoxTag(
07903:                                        isTheFirstElement, Misc.nvl(bre
07904:                                                .getOnErrorType(), ""),
07905:                                        jComboBoxImageOnError1);
07906:                            if (sameBCVerticalAlignment)
07907:                                sameBCVerticalAlignment = this .setComboBoxTag(
07908:                                        isTheFirstElement, Misc.nvl(bre
07909:                                                .getVerticalAlignment(), ""),
07910:                                        jComboBoxVerticalAlignment1);
07911:                            if (sameBCHorizontalAlignment)
07912:                                sameBCHorizontalAlignment = this 
07913:                                        .setComboBoxTag(
07914:                                                isTheFirstElement,
07915:                                                Misc
07916:                                                        .nvl(
07917:                                                                bre
07918:                                                                        .getHorizontalAlignment(),
07919:                                                                ""),
07920:                                                jComboBoxHorizontalAlignment1);
07921:                            if (sameBCHeight)
07922:                                sameBCHeight = this .setElementNumber(
07923:                                        isTheFirstElement,
07924:                                        bre.getImageHeight(),
07925:                                        jNumberFieldBCHeight);
07926:                            if (sameBCAppIdentifier)
07927:                                sameBCAppIdentifier = this .setTextArea(
07928:                                        isTheFirstElement, bre
07929:                                                .getApplicationIdentifier(),
07930:                                        jBarcodeExpressionAreaAppIdentifier);
07931:                            if (sameBCWidth)
07932:                                sameBCWidth = this .setElementNumber(
07933:                                        isTheFirstElement, bre.getImageWidth(),
07934:                                        jNumberFieldBCWidth);
07935:                        } else {
07936:                            areAllBarcodeElements = false;
07937:                        }
07938:
07939:                        if (areAllImageElements
07940:                                && (re instanceof  ImageReportElement)
07941:                                && !(re instanceof  ChartReportElement)
07942:                                && !(re instanceof  BarcodeReportElement)) {
07943:                            ImageReportElement ire = (ImageReportElement) re;
07944:                            if (sameScaleImage)
07945:                                sameScaleImage = this .setComboBoxTag(
07946:                                        isTheFirstElement, ire.getScaleImage(),
07947:                                        jComboBoxScale);
07948:                            if (sameImageExpression)
07949:                                sameImageExpression = setTextArea(
07950:                                        isTheFirstElement, ire
07951:                                                .getImageExpression(),
07952:                                        jRTextExpressionAreaImageExpression);
07953:                            if (sameImageGroup)
07954:                                sameImageGroup = this .setComboBoxText(
07955:                                        isTheFirstElement, Misc.nvl(ire
07956:                                                .getEvaluationGroup(), ""),
07957:                                        jComboBoxImageGroup);
07958:                            if (sameEvaluationTime)
07959:                                sameEvaluationTime = this .setComboBoxTag(
07960:                                        isTheFirstElement, Misc.nvl(ire
07961:                                                .getEvaluationTime(), ""),
07962:                                        jComboBoxEvaluationTime);
07963:                            if (sameVerticalAlignment)
07964:                                sameVerticalAlignment = this .setComboBoxTag(
07965:                                        isTheFirstElement, Misc.nvl(ire
07966:                                                .getVerticalAlignment(), ""),
07967:                                        jComboBoxVerticalAlignment);
07968:                            if (sameHorizontalAlignment)
07969:                                sameHorizontalAlignment = this .setComboBoxTag(
07970:                                        isTheFirstElement, Misc.nvl(ire
07971:                                                .getHorizontalAlignment(), ""),
07972:                                        jComboBoxHorizontalAlignment);
07973:                            if (sameImageCache)
07974:                                sameImageCache = this .setCheckBox(
07975:                                        isTheFirstElement,
07976:                                        ire.isIsUsingCache(),
07977:                                        jCheckBoxImageCache);
07978:                            if (sameImageLazy)
07979:                                sameImageLazy = this .setCheckBox(
07980:                                        isTheFirstElement, ire.isIsLazy(),
07981:                                        jCheckBoxImageIsLazy);
07982:                            if (sameImageExpressionClass)
07983:                                sameImageExpressionClass = this 
07984:                                        .setComboBoxText(isTheFirstElement,
07985:                                                Misc.nvl(ire.getImageClass(),
07986:                                                        ""),
07987:                                                jComboBoxImageExpressionClass);
07988:                            if (sameImageOnError)
07989:                                sameImageOnError = this .setComboBoxTag(
07990:                                        isTheFirstElement, Misc.nvl(ire
07991:                                                .getOnErrorType(), ""),
07992:                                        jComboBoxImageOnError);
07993:
07994:                        } else {
07995:                            areAllImageElements = false;
07996:                        }
07997:
07998:                        // Tab Font Element
07999:                        if (areAllTextElements
08000:                                && (re instanceof  TextReportElement)) {
08001:                            TextReportElement tre = (TextReportElement) re;
08002:                            if (sameReportFont)
08003:                                sameReportFont = this .setComboBoxText(
08004:                                        isTheFirstElement, tre.getReportFont(),
08005:                                        jComboBoxReportFont);
08006:                            if (sameFontName)
08007:                                sameFontName = setComboBoxText(
08008:                                        isTheFirstElement, tre.getFontName(),
08009:                                        jComboBoxFontName);
08010:                            if (samePDFFontName) {
08011:                                samePDFFontName = this .setMixedTagComboBox(
08012:                                        isTheFirstElement,
08013:                                        tre.getPDFFontName(),
08014:                                        jComboBoxPDFFontName);
08015:                            }
08016:                            if (sameFontSize)
08017:                                sameFontSize = this .setElementComboNumber(
08018:                                        isTheFirstElement, tre.getFontSize(),
08019:                                        jNumberComboBoxSize);
08020:                            if (sameIsBold)
08021:                                sameIsBold = this .setCheckBox(
08022:                                        isTheFirstElement, tre.isBold(),
08023:                                        jCheckBoxBold);
08024:                            if (sameIsStyledTexdt)
08025:                                sameIsStyledTexdt = this .setCheckBox(
08026:                                        isTheFirstElement,
08027:                                        tre.isIsStyledText(),
08028:                                        jCheckBoxStyledText);
08029:                            if (sameIsItalic)
08030:                                sameIsItalic = this .setCheckBox(
08031:                                        isTheFirstElement, tre.isItalic(),
08032:                                        jCheckBoxItalic);
08033:                            if (sameIsUnderline)
08034:                                sameIsUnderline = this .setCheckBox(
08035:                                        isTheFirstElement, tre.isUnderline(),
08036:                                        jCheckBoxUnderline);
08037:                            if (sameIsStrokeTrough)
08038:                                sameIsStrokeTrough = this .setCheckBox(
08039:                                        isTheFirstElement, tre
08040:                                                .isStrikeTrought(),
08041:                                        jCheckBoxStrokeTrough);
08042:                            if (sameTextVAlign)
08043:                                sameTextVAlign = this .setComboBoxTag(
08044:                                        isTheFirstElement, tre
08045:                                                .getVerticalAlign(),
08046:                                        jComboBoxVAlign);
08047:                            if (sameTextHAlign)
08048:                                sameTextHAlign = this .setComboBoxTag(
08049:                                        isTheFirstElement, tre.getAlign(),
08050:                                        jComboBoxHAlign);
08051:                            if (sameTextLineSpacing)
08052:                                sameTextHAlign = this .setComboBoxTag(
08053:                                        isTheFirstElement,
08054:                                        tre.getLineSpacing(),
08055:                                        jComboBoxLineSpacing);
08056:                            if (sameIsPdfEmbedded)
08057:                                sameIsPdfEmbedded = this .setCheckBox(
08058:                                        isTheFirstElement, tre.isPdfEmbedded(),
08059:                                        jCheckBoxPDFEmbedded);
08060:                            if (samePdfEncoding)
08061:                                samePdfEncoding = this .setPdfEncodingComboBox(
08062:                                        isTheFirstElement,
08063:                                        tre.getPdfEncoding(),
08064:                                        jComboBoxPdfEncoding);
08065:
08066:                            if (sameRotation)
08067:                                sameRotation = this .setComboBoxTag(
08068:                                        isTheFirstElement, tre.getRotate(),
08069:                                        jComboBoxRotation);
08070:                            if (sameMarkup) {
08071:                                String markup = tre.getMarkup();
08072:                                if (markup == null
08073:                                        || tre.getMarkup().equals(""))
08074:                                    markup = "None";
08075:                                sameMarkup = this .setComboBoxTag(
08076:                                        isTheFirstElement, markup,
08077:                                        jComboBoxMarkup);
08078:                            }
08079:
08080:                        } else {
08081:                            areAllTextElements = false;
08082:                        }
08083:
08084:                        // Tab StaticText Element
08085:                        if (areAllStaticTextElements
08086:                                && (re instanceof  StaticTextReportElement)) {
08087:                            TextReportElement tre = (TextReportElement) re;
08088:                            if (sameText)
08089:                                sameText = this .setJTextArea(isTheFirstElement,
08090:                                        tre.getText(), jTextAreaText);
08091:                        } else {
08092:                            areAllStaticTextElements = false;
08093:                        }
08094:
08095:                        if (areAllBorder && (re instanceof  BoxElement)) {
08096:                            if (isTheFirstElement) {
08097:                                boxPanel.setBox(((BoxElement) re).getBox()
08098:                                        .cloneMe());
08099:                            }
08100:                        } else {
08101:                            areAllBorder = false;
08102:                        }
08103:
08104:                        // Tab TextField Element
08105:                        if (areAllTextFieldElements
08106:                                && (re instanceof  TextFieldReportElement)) {
08107:                            TextFieldReportElement tre = (TextFieldReportElement) re;
08108:                            if (sameTextExpression)
08109:                                sameText = this 
08110:                                        .setTextArea(isTheFirstElement, tre
08111:                                                .getText(),
08112:                                                jRTextExpressionAreaTextFieldExpression);
08113:                            if (sameTextExpressionClass)
08114:                                sameTextExpressionClass = this .setComboBoxText(
08115:                                        isTheFirstElement, tre
08116:                                                .getClassExpression(),
08117:                                        jComboBoxTextFieldExpressionClass);
08118:                            if (sameTextEvaluationTime)
08119:                                sameTextEvaluationTime = this .setComboBoxTag(
08120:                                        isTheFirstElement, tre
08121:                                                .getEvaluationTime(),
08122:                                        jComboBoxTextFieldEvaluationTime);
08123:                            if (sameTextGroup)
08124:                                sameTextGroup = this .setComboBoxText(
08125:                                        isTheFirstElement, tre.getGroup(),
08126:                                        jComboBoxTextFieldGroup);
08127:                            if (sameTextStretchWithOverflow)
08128:                                sameTextStretchWithOverflow = this .setCheckBox(
08129:                                        isTheFirstElement, tre
08130:                                                .isStretchWithOverflow(),
08131:                                        jCheckBoxStretchWithOverflow);
08132:                            if (sameTextBlankWhenNull)
08133:                                sameTextBlankWhenNull = this .setCheckBox(
08134:                                        isTheFirstElement, tre
08135:                                                .isBlankWhenNull(),
08136:                                        jCheckBoxBlankWhenNull);
08137:                            if (sameTextPattern)
08138:                                sameTextPattern = this .setWritableComboBoxText(
08139:                                        isTheFirstElement, tre.getPattern(),
08140:                                        jComboBoxPattern);
08141:                        } else {
08142:                            areAllTextFieldElements = false;
08143:                        }
08144:
08145:                        if (areAllHyperLinkableElements
08146:                                && (re instanceof  HyperLinkableReportElement)) {
08147:                            HyperLinkableReportElement hlre = (HyperLinkableReportElement) re;
08148:                            if (sameHyperLinkAnchorName)
08149:                                sameHyperLinkAnchorName = setTextArea(
08150:                                        isTheFirstElement, hlre
08151:                                                .getAnchorNameExpression(),
08152:                                        jRTextExpressionAreaAnchorName);
08153:                            if (sameHyperLinkType)
08154:                                sameHyperLinkType = this .setComboBoxText(
08155:                                        isTheFirstElement, hlre
08156:                                                .getHyperlinkType(),
08157:                                        jComboBoxLinkType);
08158:                            if (sameHyperLinkTarget)
08159:                                sameHyperLinkTarget = this .setComboBoxText(
08160:                                        isTheFirstElement, hlre
08161:                                                .getHyperlinkTarget(),
08162:                                        jComboBoxLinkTarget);
08163:                            if (sameBookmarkLevel)
08164:                                sameBookmarkLevel = setSpinnerLevel(
08165:                                        isTheFirstElement, hlre
08166:                                                .getBookmarkLevel(),
08167:                                        jSpinnerBookmarkLevel);
08168:
08169:                            if (sameHyperLinkType) {
08170:                                if (sameHyperLinkAnchor)
08171:                                    sameHyperLinkAnchor = setTextArea(
08172:                                            isTheFirstElement,
08173:                                            hlre.getHyperlinkAnchorExpression(),
08174:                                            jRTextExpressionAreaAnchor);
08175:                                if (sameHyperLinkPage)
08176:                                    sameHyperLinkPage = setTextArea(
08177:                                            isTheFirstElement,
08178:                                            hlre.getHyperlinkPageExpression(),
08179:                                            jRTextExpressionAreaPage);
08180:                                if (sameHyperLinkReference)
08181:                                    sameHyperLinkReference = setTextArea(
08182:                                            isTheFirstElement,
08183:                                            hlre
08184:                                                    .getHyperlinkReferenceExpression(),
08185:                                            jRTextExpressionAreaReference);
08186:                                if (sameTooltip)
08187:                                    sameTooltip = setTextArea(
08188:                                            isTheFirstElement, hlre
08189:                                                    .getTooltipExpression(),
08190:                                            jRTextExpressionAreaTooltip);
08191:                            } else {
08192:                                jRTextExpressionAreaAnchor.setText("");
08193:                                jRTextExpressionAreaAnchor.setText("");
08194:                                jRTextExpressionAreaPage.setText("");
08195:                                jRTextExpressionAreaReference.setText("");
08196:                            }
08197:
08198:                        } else {
08199:                            areAllHyperLinkableElements = false;
08200:                        }
08201:
08202:                        if (isTheFirstElement && !e.hasMoreElements()
08203:                                && re instanceof  SubReportElement) {
08204:                            isSubreportElement = true;
08205:                            SubReportElement sre = (SubReportElement) re;
08206:                            this .setTextArea(isTheFirstElement, sre
08207:                                    .getParametersMapExpression(),
08208:                                    jRTextExpressionAreaSubreportMapExpression);
08209:                            this .setComboBoxText(isTheFirstElement, sre
08210:                                    .getSubreportExpressionClass(),
08211:                                    jComboBoxSubreportExpressionClass);
08212:                            this .setTextArea(isTheFirstElement, sre
08213:                                    .getSubreportExpression(),
08214:                                    jRTextExpressionAreaSubreportExpression);
08215:                            if (!sre.isUseConnection()
08216:                                    && Misc.nvl(sre.getDataSourceExpression(),
08217:                                            "").trim().equals("")) {
08218:                                this .jComboBoxSubreportConnectionType
08219:                                        .setSelectedIndex(0);
08220:                                this .jRTextExpressionAreaTextConnectionExpression
08221:                                        .setEnabled(false);
08222:                                this .jRTextExpressionAreaTextConnectionExpression
08223:                                        .setBackground(Color.LIGHT_GRAY);
08224:                                this .jRTextExpressionAreaTextConnectionExpression
08225:                                        .setText("");
08226:                            } else if (sre.isUseConnection()) {
08227:                                this .jComboBoxSubreportConnectionType
08228:                                        .setSelectedIndex(1);
08229:                                this .jRTextExpressionAreaTextConnectionExpression
08230:                                        .setEnabled(true);
08231:                                this .jRTextExpressionAreaTextConnectionExpression
08232:                                        .setBackground(Color.WHITE);
08233:                                this .jRTextExpressionAreaTextConnectionExpression
08234:                                        .setText(sre.getConnectionExpression());
08235:                            } else {
08236:                                this .jComboBoxSubreportConnectionType
08237:                                        .setSelectedIndex(2);
08238:                                this .jRTextExpressionAreaTextConnectionExpression
08239:                                        .setEnabled(true);
08240:                                this .jRTextExpressionAreaTextConnectionExpression
08241:                                        .setBackground(Color.WHITE);
08242:                                this .jRTextExpressionAreaTextConnectionExpression
08243:                                        .setText(sre.getDataSourceExpression());
08244:                            }
08245:
08246:                            jCheckBoxSubreportCache.setSelected(sre
08247:                                    .isIsUsingCache());
08248:
08249:                            //Add parameters...
08250:                            javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableSubreportParameters
08251:                                    .getModel();
08252:                            dtm.setRowCount(0);
08253:
08254:                            java.util.Enumeration enum_parameters = sre
08255:                                    .getSubreportParameters().elements();
08256:                            while (enum_parameters.hasMoreElements()) {
08257:                                it.businesslogic.ireport.JRSubreportParameter parameter = (it.businesslogic.ireport.JRSubreportParameter) enum_parameters
08258:                                        .nextElement();
08259:                                Vector row = new Vector();
08260:                                row.addElement(parameter);
08261:                                row.addElement(parameter.getExpression());
08262:                                dtm.addRow(row);
08263:                            }
08264:
08265:                            dtm = (javax.swing.table.DefaultTableModel) jTableSubreportReturnValues
08266:                                    .getModel();
08267:                            dtm.setRowCount(0);
08268:
08269:                            java.util.Enumeration enum_returnValues = sre
08270:                                    .getReturnValues().elements();
08271:                            while (enum_returnValues.hasMoreElements()) {
08272:                                it.businesslogic.ireport.JRSubreportReturnValue returnValue2 = (it.businesslogic.ireport.JRSubreportReturnValue) enum_returnValues
08273:                                        .nextElement();
08274:                                Vector row = new Vector();
08275:                                row.addElement(returnValue2);
08276:                                row.addElement(returnValue2.getToVariable());
08277:                                dtm.addRow(row);
08278:                            }
08279:
08280:                        } else
08281:                            isSubreportElement = false;
08282:
08283:                        if (isTheFirstElement
08284:                                && !e.hasMoreElements()
08285:                                && (re instanceof  ChartReportElement || re instanceof  ChartReportElement2)) {
08286:                            isChartElement = true;
08287:
08288:                            if (re instanceof  ChartReportElement) {
08289:                                ImageReportElement ire = (ImageReportElement) re;
08290:                                this .setComboBoxText(isTheFirstElement, Misc
08291:                                        .nvl(ire.getEvaluationGroup(), ""),
08292:                                        jComboBoxImageGroup1);
08293:                                this .setComboBoxTag(isTheFirstElement, Misc
08294:                                        .nvl(ire.getEvaluationTime(), ""),
08295:                                        jComboBoxEvaluationTime1);
08296:                            } else {
08297:                                ChartReportElement2 ire = (ChartReportElement2) re;
08298:                                this .setComboBoxText(isTheFirstElement, Misc
08299:                                        .nvl(ire.getEvaluationGroup(), ""),
08300:                                        jComboBoxImageGroup1);
08301:                                this .setComboBoxTag(isTheFirstElement, Misc
08302:                                        .nvl(ire.getEvaluationTime(), ""),
08303:                                        jComboBoxEvaluationTime1);
08304:                            }
08305:                        } else
08306:                            isChartElement = false;
08307:
08308:                        if (isTheFirstElement && !e.hasMoreElements()
08309:                                && re instanceof  CrosstabReportElement) {
08310:                            isCrosstabElement = true;
08311:                            CrosstabReportElement cre = (CrosstabReportElement) re;
08312:                            this 
08313:                                    .setTextArea(isTheFirstElement, cre
08314:                                            .getParametersMapExpression(),
08315:                                            jRTextExpressionAreaCrosstabParametersMapExpression);
08316:
08317:                            jCheckBoxRepeatColumnHeaders.setSelected(cre
08318:                                    .isRepeatColumnHeaders());
08319:                            jCheckBoxRepeatRowHeaders.setSelected(cre
08320:                                    .isRepeatRowHeaders());
08321:
08322:                            this .setElementNumber(isTheFirstElement, cre
08323:                                    .getColumnBreakOffset(),
08324:                                    jNumberFieldColumnBreakOffset);
08325:
08326:                            //Add parameters...
08327:                            javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) jTableCrosstabParameters
08328:                                    .getModel();
08329:                            dtm.setRowCount(0);
08330:
08331:                            java.util.Enumeration enum_parameters = cre
08332:                                    .getCrosstabParameters().elements();
08333:                            while (enum_parameters.hasMoreElements()) {
08334:                                it.businesslogic.ireport.crosstab.CrosstabParameter parameter = (it.businesslogic.ireport.crosstab.CrosstabParameter) enum_parameters
08335:                                        .nextElement();
08336:                                Vector row = new Vector();
08337:                                row.addElement(parameter);
08338:                                row.addElement(parameter
08339:                                        .getParameterValueExpression());
08340:                                dtm.addRow(row);
08341:                            }
08342:                        } else
08343:                            isCrosstabElement = false;
08344:
08345:                        isTheFirstElement = false;
08346:                    }
08347:
08348:                    if (jComboBoxTextFieldEvaluationTime.getSelectedItem()
08349:                            .equals("Group")) {
08350:                        jComboBoxTextFieldGroup.setEnabled(true);
08351:                    } else {
08352:                        jComboBoxTextFieldGroup.setEnabled(false);
08353:                    }
08354:
08355:                    // If not useful, remove blank combo entries...
08356:                    if (this .jComboBoxBand.getSelectedIndex() != 0) {
08357:                        this .jComboBoxBand.removeItemAt(0);
08358:                    }
08359:                    if (this .jComboBoxPositionType.getSelectedIndex() != 0) {
08360:                        this .jComboBoxPositionType.removeItemAt(0);
08361:                    }
08362:
08363:                    if (this .jComboBoxLineDirection.getSelectedIndex() != 0)
08364:                        this .jComboBoxLineDirection.removeItemAt(0);
08365:                    if (this .jComboBoxPen.getSelectedIndex() != 0)
08366:                        this .jComboBoxPen.removeItemAt(0);
08367:                    if (this .jComboBoxStretchType.getSelectedIndex() != 0)
08368:                        this .jComboBoxStretchType.removeItemAt(0);
08369:                    if (this .jComboBoxFill.getSelectedIndex() != 0)
08370:                        this .jComboBoxFill.removeItemAt(0);
08371:                    if (this .jComboBoxScale.getSelectedIndex() != 0)
08372:                        this .jComboBoxScale.removeItemAt(0);
08373:                    if (this .jComboBoxVerticalAlignment.getSelectedIndex() != 0)
08374:                        this .jComboBoxVerticalAlignment.removeItemAt(0);
08375:                    if (this .jComboBoxHorizontalAlignment.getSelectedIndex() != 0)
08376:                        this .jComboBoxHorizontalAlignment.removeItemAt(0);
08377:                    if (this .jComboBoxImageExpressionClass.getSelectedIndex() != 0)
08378:                        this .jComboBoxImageExpressionClass.removeItemAt(0);
08379:                    if (this .jComboBoxEvaluationTime.getSelectedIndex() != 0)
08380:                        this .jComboBoxEvaluationTime.removeItemAt(0);
08381:                    //if (this.jComboBoxReportFont.getSelectedIndex() != 0)  this.jComboBoxReportFont.removeItemAt(0);
08382:                    if (this .jComboBoxHAlign.getSelectedIndex() != 0)
08383:                        this .jComboBoxHAlign.removeItemAt(0);
08384:                    if (this .jComboBoxVAlign.getSelectedIndex() != 0)
08385:                        this .jComboBoxVAlign.removeItemAt(0);
08386:                    if (this .jComboBoxLineSpacing.getSelectedIndex() != 0)
08387:                        this .jComboBoxLineSpacing.removeItemAt(0);
08388:                    if (this .jComboBoxTextFieldEvaluationTime
08389:                            .getSelectedIndex() != 0)
08390:                        this .jComboBoxTextFieldEvaluationTime.removeItemAt(0);
08391:                    if (this .jComboBoxTextFieldExpressionClass
08392:                            .getSelectedIndex() != 0)
08393:                        this .jComboBoxTextFieldExpressionClass.removeItemAt(0);
08394:                    if (this .jComboBoxLinkTarget.getSelectedIndex() != 0)
08395:                        this .jComboBoxLinkTarget.removeItemAt(0);
08396:                    if (this .jComboBoxMarkup.getSelectedIndex() != 0)
08397:                        this .jComboBoxMarkup.removeItemAt(0);
08398:                    //if (this.jComboBoxSubreportExpressionClass.getSelectedIndex() != 0)  this.jComboBoxTextFieldExpressionClass.removeItemAt(0);
08399:
08400:                    jTabbedPane2.removeAll();
08401:                    javax.swing.table.DefaultTableModel dtmLinkParams = (javax.swing.table.DefaultTableModel) jTableLinkParameters
08402:                            .getModel();
08403:                    dtmLinkParams.setRowCount(0);
08404:
08405:                    if (this .jComboBoxLinkType.getSelectedIndex() != 0) {
08406:                        this .jComboBoxLinkType.removeItemAt(0);
08407:
08408:                        if (((String) this .jComboBoxLinkType.getSelectedItem())
08409:                                .equals("None")) {
08410:                            this .jRTextExpressionAreaAnchor.setEnabled(false);
08411:                            this .jLabelAnchor.setEnabled(false);
08412:                            this .jRTextExpressionAreaPage.setEnabled(false);
08413:                            this .jLabelPage.setEnabled(false);
08414:                            this .jRTextExpressionAreaReference
08415:                                    .setEnabled(false);
08416:                            this .jLabelReference.setEnabled(false);
08417:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
08418:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
08419:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
08420:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
08421:
08422:                        } else if (((String) this .jComboBoxLinkType
08423:                                .getSelectedItem()).equals("Reference")) {
08424:                            this .jRTextExpressionAreaAnchor.setEnabled(false);
08425:                            this .jLabelAnchor.setEnabled(false);
08426:                            this .jRTextExpressionAreaPage.setEnabled(false);
08427:                            this .jLabelPage.setEnabled(false);
08428:                            this .jRTextExpressionAreaReference.setEnabled(true);
08429:                            this .jLabelReference.setEnabled(true);
08430:
08431:                            jTabbedPane2.addTab(I18n.getString(
08432:                                    "sectionItemHyperlinkPanel.tab.Reference",
08433:                                    "Reference"), this .jPanelReference);
08434:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
08435:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
08436:                            if (getElementSelection().size() == 1)
08437:                                jTabbedPane2
08438:                                        .addTab(
08439:                                                I18n
08440:                                                        .getString(
08441:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08442:                                                                "Link parameters"),
08443:                                                this .jPanelLinkParams);
08444:                            jTabbedPane2.addTab(I18n.getString(
08445:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08446:                                    "Tooltip"), this .jPanelTooltip);
08447:                        } else if (((String) this .jComboBoxLinkType
08448:                                .getSelectedItem()).equals("LocalAnchor")) {
08449:                            this .jRTextExpressionAreaAnchor.setEnabled(true);
08450:                            this .jLabelAnchor.setEnabled(true);
08451:                            this .jRTextExpressionAreaPage.setEnabled(false);
08452:                            this .jLabelPage.setEnabled(false);
08453:                            this .jRTextExpressionAreaReference
08454:                                    .setEnabled(false);
08455:                            this .jLabelReference.setEnabled(false);
08456:
08457:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
08458:                            jTabbedPane2.addTab(I18n.getString(
08459:                                    "sectionItemHyperlinkPanel.tab.Anchor",
08460:                                    "Anchor"), this .jPanelAnchor);
08461:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
08462:                            if (getElementSelection().size() == 1)
08463:                                jTabbedPane2
08464:                                        .addTab(
08465:                                                I18n
08466:                                                        .getString(
08467:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08468:                                                                "Link parameters"),
08469:                                                this .jPanelLinkParams);
08470:                            jTabbedPane2.addTab(I18n.getString(
08471:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08472:                                    "Tooltip"), this .jPanelTooltip);
08473:                        } else if (((String) this .jComboBoxLinkType
08474:                                .getSelectedItem()).equals("LocalPage")) {
08475:                            this .jRTextExpressionAreaAnchor.setEnabled(false);
08476:                            this .jLabelAnchor.setEnabled(false);
08477:                            this .jRTextExpressionAreaPage.setEnabled(true);
08478:                            this .jLabelPage.setEnabled(true);
08479:                            this .jRTextExpressionAreaReference
08480:                                    .setEnabled(false);
08481:                            this .jLabelReference.setEnabled(false);
08482:
08483:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
08484:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
08485:                            jTabbedPane2.addTab(I18n.getString(
08486:                                    "sectionItemHyperlinkPanel.tab.Page",
08487:                                    "Page"), this .jPanelPage);
08488:                            if (getElementSelection().size() == 1)
08489:                                jTabbedPane2
08490:                                        .addTab(
08491:                                                I18n
08492:                                                        .getString(
08493:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08494:                                                                "Link parameters"),
08495:                                                this .jPanelLinkParams);
08496:                            jTabbedPane2.addTab(I18n.getString(
08497:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08498:                                    "Tooltip"), this .jPanelTooltip);
08499:                        }
08500:
08501:                        else if (((String) this .jComboBoxLinkType
08502:                                .getSelectedItem()).equals("RemoteAnchor")) {
08503:                            this .jRTextExpressionAreaAnchor.setEnabled(true);
08504:                            this .jLabelAnchor.setEnabled(true);
08505:                            this .jRTextExpressionAreaPage.setEnabled(false);
08506:                            this .jLabelPage.setEnabled(false);
08507:                            this .jRTextExpressionAreaReference.setEnabled(true);
08508:                            this .jLabelReference.setEnabled(true);
08509:
08510:                            jTabbedPane2.addTab(I18n.getString(
08511:                                    "sectionItemHyperlinkPanel.tab.Reference",
08512:                                    "Reference"), this .jPanelReference);
08513:                            jTabbedPane2.addTab(I18n.getString(
08514:                                    "sectionItemHyperlinkPanel.tab.Anchor",
08515:                                    "Anchor"), this .jPanelAnchor);
08516:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
08517:                            if (getElementSelection().size() == 1)
08518:                                jTabbedPane2
08519:                                        .addTab(
08520:                                                I18n
08521:                                                        .getString(
08522:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08523:                                                                "Link parameters"),
08524:                                                this .jPanelLinkParams);
08525:                            jTabbedPane2.addTab(I18n.getString(
08526:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08527:                                    "Tooltip"), this .jPanelTooltip);
08528:                        } else if (((String) this .jComboBoxLinkType
08529:                                .getSelectedItem()).equals("RemotePage")) {
08530:                            this .jRTextExpressionAreaAnchor.setEnabled(false);
08531:                            this .jLabelAnchor.setEnabled(false);
08532:                            this .jRTextExpressionAreaPage.setEnabled(true);
08533:                            this .jLabelPage.setEnabled(true);
08534:                            this .jRTextExpressionAreaReference.setEnabled(true);
08535:                            this .jLabelReference.setEnabled(true);
08536:
08537:                            jTabbedPane2.addTab(I18n.getString(
08538:                                    "sectionItemHyperlinkPanel.tab.Reference",
08539:                                    "Reference"), this .jPanelReference);
08540:                            //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
08541:                            jTabbedPane2.addTab(I18n.getString(
08542:                                    "sectionItemHyperlinkPanel.tab.Page",
08543:                                    "Page"), this .jPanelPage);
08544:                            if (getElementSelection().size() == 1)
08545:                                jTabbedPane2
08546:                                        .addTab(
08547:                                                I18n
08548:                                                        .getString(
08549:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08550:                                                                "Link parameters"),
08551:                                                this .jPanelLinkParams);
08552:                            jTabbedPane2.addTab(I18n.getString(
08553:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08554:                                    "Tooltip"), this .jPanelTooltip);
08555:                        } else {
08556:                            this .jRTextExpressionAreaAnchor.setEnabled(true);
08557:                            this .jLabelAnchor.setEnabled(true);
08558:                            this .jRTextExpressionAreaPage.setEnabled(true);
08559:                            this .jLabelPage.setEnabled(true);
08560:                            this .jRTextExpressionAreaReference.setEnabled(true);
08561:                            this .jLabelReference.setEnabled(true);
08562:
08563:                            jTabbedPane2.addTab(I18n.getString(
08564:                                    "sectionItemHyperlinkPanel.tab.Reference",
08565:                                    "Reference"), this .jPanelReference);
08566:                            jTabbedPane2.addTab(I18n.getString(
08567:                                    "sectionItemHyperlinkPanel.tab.Anchor",
08568:                                    "Anchor"), this .jPanelAnchor);
08569:                            jTabbedPane2.addTab(I18n.getString(
08570:                                    "sectionItemHyperlinkPanel.tab.Page",
08571:                                    "Page"), this .jPanelPage);
08572:                            if (getElementSelection().size() == 1)
08573:                                jTabbedPane2
08574:                                        .addTab(
08575:                                                I18n
08576:                                                        .getString(
08577:                                                                "sectionItemHyperlinkPanel.tab.LinkParameters",
08578:                                                                "Link parameters"),
08579:                                                this .jPanelLinkParams);
08580:                            jTabbedPane2.addTab(I18n.getString(
08581:                                    "sectionItemHyperlinkPanel.tab.tooltip",
08582:                                    "Tooltip"), this .jPanelTooltip);
08583:                        }
08584:
08585:                        if (getElementSelection().size() == 1
08586:                                && getElementSelection().get(0) instanceof  HyperLinkableReportElement) {
08587:                            //Add parameters...
08588:                            HyperLinkableReportElement hre = (HyperLinkableReportElement) getElementSelection()
08589:                                    .get(0);
08590:
08591:                            java.util.Iterator enum_parameters = hre
08592:                                    .getLinkParameters().iterator();
08593:                            while (enum_parameters.hasNext()) {
08594:                                it.businesslogic.ireport.JRLinkParameter parameter = (it.businesslogic.ireport.JRLinkParameter) enum_parameters
08595:                                        .next();
08596:                                Vector row = new Vector();
08597:                                row.addElement(parameter);
08598:                                row.addElement(parameter.getExpression());
08599:                                dtmLinkParams.addRow(row);
08600:                            }
08601:                        }
08602:                    } else {
08603:                        this .jRTextExpressionAreaAnchor.setEnabled(false);
08604:                        this .jLabelAnchor.setEnabled(false);
08605:                        this .jRTextExpressionAreaPage.setEnabled(false);
08606:                        this .jLabelPage.setEnabled(false);
08607:                        this .jRTextExpressionAreaReference.setEnabled(false);
08608:                        this .jLabelReference.setEnabled(false);
08609:
08610:                    }
08611:                    jTabbedPane.add(I18n.getString(
08612:                            "elementPropertiesDialog.tab.Common", "Common"),
08613:                            jPanelCommon);
08614:                    //if (areAllGraphicsElements) jTabbedPane.add(I18n.getString("elementPropertiesDialog.tab.GraphicsElement","Graphics Element"), jPanelGraphicselement);
08615:                    if (areAllRectangleElements)
08616:                        jTabbedPane.add(I18n.getString(
08617:                                "elementPropertiesDialog.tab.Rectangle",
08618:                                "Rectangle"), jPanelRectangle);
08619:                    if (areAllLineElements)
08620:                        jTabbedPane.add(I18n.getString(
08621:                                "elementPropertiesDialog.tab.Line", "Line"),
08622:                                jPanelLine);
08623:                    if (areAllImageElements)
08624:                        jTabbedPane.add(I18n.getString(
08625:                                "elementPropertiesDialog.tab.Image", "Image"),
08626:                                jPanelImage);
08627:                    if (areAllTextElements)
08628:                        jTabbedPane.add(I18n.getString(
08629:                                "elementPropertiesDialog.tab.Font", "Font"),
08630:                                jPanelFont);
08631:                    if (areAllStaticTextElements)
08632:                        jTabbedPane.add(I18n.getString(
08633:                                "elementPropertiesDialog.tab.StaticText",
08634:                                "Static Text"), jPanelText);
08635:                    if (areAllTextFieldElements)
08636:                        jTabbedPane.add(I18n.getString(
08637:                                "elementPropertiesDialog.tab.TextField",
08638:                                "Text Field"), jPanelTextField);
08639:                    if (areAllHyperLinkableElements)
08640:                        jTabbedPane.add(I18n.getString(
08641:                                "elementPropertiesDialog.tab.HyperLink",
08642:                                "Hyper Link"), jPanelHyperLink);
08643:                    if (isSubreportElement)
08644:                        jTabbedPane.add(I18n.getString(
08645:                                "elementPropertiesDialog.tab.Subreport",
08646:                                "Subreport"), jPanelSubreport1);
08647:                    if (isSubreportElement)
08648:                        jTabbedPane.add(I18n.getString(
08649:                                "elementPropertiesDialog.tab.Subreport2",
08650:                                "Subreport (Other)"), jPanelSubreport2);
08651:                    if (isCrosstabElement)
08652:                        jTabbedPane.add(I18n.getString(
08653:                                "elementPropertiesDialog.tab.Crosstab",
08654:                                "Crosstab"), jPanelCrosstab);
08655:                    if (isChartElement)
08656:                        jTabbedPane.add(I18n.getString(
08657:                                "elementPropertiesDialog.tab.Chart", "Chart"),
08658:                                jPanelChart);
08659:                    if (areAllBarcodeElements)
08660:                        jTabbedPane.add(I18n.getString(
08661:                                "elementPropertiesDialog.tab.Barcode",
08662:                                "Barcode"), jPanelBarcode);
08663:                    if (areAllBorder)
08664:                        jTabbedPane.add(
08665:                                I18n.getString(
08666:                                        "elementPropertiesDialog.tab.Border",
08667:                                        "Border"), jPanelBorder);
08668:                    jTabbedPane.add(I18n.getString(
08669:                            "elementPropertiesDialog.tab.All", "All"),
08670:                            jPanelSheet);
08671:
08672:                    if (lastSelectedPanel != null)
08673:
08674:                        try {
08675:                            jTabbedPane.setSelectedComponent(lastSelectedPanel);
08676:                        } catch (Exception ex) {
08677:                            lastSelectedPanel = jPanelCommon;
08678:                        }
08679:                    jTabbedPane.updateUI();
08680:
08681:                    if (jTabbedPane.getSelectedComponent() == jPanelSheet) {
08682:                        sheetPanel.updateSelection(this .jrf);
08683:                    }
08684:
08685:                    this .setInit(false);
08686:                }
08687:            }
08688:
08689:            /**
08690:             *  This method populate the groups comboboxes...
08691:             */
08692:            public void updateGroups() {
08693:                this .setInit(true);
08694:                // Use the name of the group and not the group object....
08695:                Vector group_names = new Vector();
08696:                Enumeration e = jrf.getReport().getGroups().elements();
08697:                while (e.hasMoreElements()) {
08698:                    group_names.addElement("" + e.nextElement());
08699:                }
08700:                Misc.updateComboBox(jComboBoxGroups, group_names, true);
08701:                Misc.updateComboBox(jComboBoxImageGroup, group_names, true);
08702:                Misc.updateComboBox(jComboBoxImageGroup1, group_names, true);
08703:                Misc.updateComboBox(jComboBoxTextFieldGroup, group_names, true);
08704:                Misc.updateComboBox(jComboBoxBarcodeGroup, group_names, true);
08705:                this .setInit(false);
08706:            }
08707:
08708:            /**
08709:             *  This method populate the bands combobox...
08710:             */
08711:            public void updateBands() {
08712:                this .setInit(true);
08713:                if (jrf != null) {
08714:                    if (jrf.getSelectedCrosstabEditorPanel() == null) {
08715:                        jLabel1.setText(I18n.getString(
08716:                                "elementPropertiesDialog.label1", "Band"));
08717:                        Misc.updateComboBox(jComboBoxBand, jrf.getReport()
08718:                                .getBands(), true);
08719:                    } else {
08720:                        jLabel1.setText(I18n.getString(
08721:                                "elementPropertiesDialog.label1Cell", "Cell"));
08722:                        Misc.updateComboBox(jComboBoxBand, jrf
08723:                                .getSelectedCrosstabEditorPanel()
08724:                                .getCrosstabElement().getCells(), true);
08725:                    }
08726:                }
08727:                this .setInit(false);
08728:            }
08729:
08730:            public void updateStyles() {
08731:                this .setInit(true);
08732:                Misc.updateComboBox(jComboBoxStyle,
08733:                        jrf.getReport().getStyles(), true);
08734:                this .setInit(false);
08735:            }
08736:
08737:            /**
08738:             *  This method populate the report fonts comboboxes...
08739:             */
08740:            public void updateReportFonts() {
08741:                this .setInit(true);
08742:                // Use the name of the group and not the group object....
08743:                Vector font_names = new Vector();
08744:                Enumeration e = jrf.getReport().getFonts().elements();
08745:                while (e.hasMoreElements()) {
08746:                    font_names.addElement("" + e.nextElement());
08747:                }
08748:                Misc
08749:                        .updateStringComboBox(jComboBoxReportFont, font_names,
08750:                                true);
08751:                this .setInit(false);
08752:            }
08753:
08754:            public void updateFonts() {
08755:
08756:                boolean localInit = this .isInit();
08757:                this .setInit(true);
08758:                // Add here the other fonts...
08759:                Vector fontsVec = new Vector();
08760:                fontsVec.addElement(new Tag("Helvetica"));
08761:                fontsVec.addElement(new Tag("Helvetica-Bold"));
08762:                fontsVec.addElement(new Tag("Helvetica-BoldOblique"));
08763:                fontsVec.addElement(new Tag("Helvetica-Oblique"));
08764:                fontsVec.addElement(new Tag("Courier"));
08765:                fontsVec.addElement(new Tag("Courier-Bold"));
08766:                fontsVec.addElement(new Tag("Courier-BoldOblique"));
08767:                fontsVec.addElement(new Tag("Courier-Oblique"));
08768:                fontsVec.addElement(new Tag("Symbol"));
08769:                fontsVec.addElement(new Tag("Times-Roman"));
08770:                fontsVec.addElement(new Tag("Times-Bold"));
08771:                fontsVec.addElement(new Tag("Times-BoldItalic"));
08772:                fontsVec.addElement(new Tag("Times-Italic"));
08773:                fontsVec.addElement(new Tag("ZapfDingbats"));
08774:                fontsVec.addElement(new Tag("STSong-Light"));
08775:                fontsVec.addElement(new Tag("MHei-Medium"));
08776:                fontsVec.addElement(new Tag("MSung-Light"));
08777:                fontsVec.addElement(new Tag("HeiseiKakuGo-W5"));
08778:                fontsVec.addElement(new Tag("HeiseiMin-W3"));
08779:                fontsVec.addElement(new Tag("HYGoThic-Medium"));
08780:                fontsVec.addElement(new Tag("HYSMyeongJo-Medium"));
08781:                Vector iRfonts = MainFrame.getMainInstance().getTtfFonts();
08782:                for (int i_f = 0; i_f < iRfonts.size(); ++i_f) {
08783:                    fontsVec.addElement(new Tag(((IRFont) iRfonts
08784:                            .elementAt(i_f)).getFile(), iRfonts.elementAt(i_f)
08785:                            + ""));
08786:                }
08787:                Misc.updateComboBox(jComboBoxPDFFontName, fontsVec);
08788:                this .setInit(localInit);
08789:            }
08790:
08791:            protected boolean setElementNumber(boolean firstTime, double value,
08792:                    JNumberField numberField) {
08793:                if ((!firstTime) && (!(numberField.getValue() == value))) {
08794:                    numberField.setText("");
08795:                    return false;
08796:                } else {
08797:                    try {
08798:                        numberField.setValue(value);
08799:                    } catch (Exception ex) {
08800:                        ex.printStackTrace();
08801:                    }
08802:                }
08803:                return true;
08804:            }
08805:
08806:            protected boolean setSpinnerLevel(boolean firstTime, int value,
08807:                    javax.swing.JSpinner spinner) {
08808:                javax.swing.SpinnerNumberModel snm = (javax.swing.SpinnerNumberModel) spinner
08809:                        .getModel();
08810:                if ((!firstTime)
08811:                        && (!(((Number) snm.getNumber()).intValue() == value))) {
08812:                    snm.setValue(new Integer(0));
08813:                    return false;
08814:                } else {
08815:                    try {
08816:                        snm.setValue(new Integer(value));
08817:                    } catch (Exception ex) {
08818:                        ex.printStackTrace();
08819:                    }
08820:                }
08821:                return true;
08822:            }
08823:
08824:            public static boolean setElementComboNumber(boolean firstTime,
08825:                    double value, JNumberComboBox numberField) {
08826:                if ((!firstTime) && (!(numberField.getValue() == value))) {
08827:                    numberField.setSelectedItem("");
08828:                    return false;
08829:                } else {
08830:                    try {
08831:                        numberField.setValue(value);
08832:                    } catch (Exception ex) {
08833:                        ex.printStackTrace();
08834:                    }
08835:                }
08836:                return true;
08837:            }
08838:
08839:            protected boolean setCheckBox(boolean firstTime, boolean value,
08840:                    javax.swing.JCheckBox checkField) {
08841:                if ((!firstTime) && (!(checkField.isSelected() == value))) {
08842:                    checkField.setSelected(false);
08843:                    return false;
08844:                } else {
08845:                    try {
08846:                        checkField.setSelected(value);
08847:                    } catch (Exception ex) {
08848:                        ex.printStackTrace();
08849:                    }
08850:                }
08851:                return true;
08852:            }
08853:
08854:            protected boolean setComboBox(boolean firstTime, Object value,
08855:                    javax.swing.JComboBox comboField) {
08856:                if ((!firstTime) && (!(comboField.getSelectedItem() == value))) {
08857:                    comboField.setSelectedIndex(0);
08858:                    return false;
08859:                } else {
08860:                    try {
08861:                        comboField.setSelectedItem(value);
08862:                    } catch (Exception ex) {
08863:                        ex.printStackTrace();
08864:                    }
08865:                }
08866:                return true;
08867:            }
08868:
08869:            protected boolean setFontComboBox(boolean firstTime, String value,
08870:                    javax.swing.JComboBox comboField) {
08871:                if ((!firstTime)
08872:                        && (!(comboField.getSelectedItem() != null
08873:                                && comboField.getSelectedItem() instanceof  IRFont && ((IRFont) comboField
08874:                                .getSelectedItem()).getFile().equals(value)))) {
08875:                    if (comboField.getItemCount() > 0)
08876:                        comboField.setSelectedIndex(0);
08877:                    return false;
08878:                } else {
08879:                    try {
08880:                        for (int i = 0; i < comboField.getItemCount(); ++i) {
08881:                            if (comboField.getItemAt(i) instanceof  IRFont
08882:                                    && ((IRFont) comboField.getItemAt(i))
08883:                                            .getFile().equals(value)) {
08884:                                comboField.setSelectedIndex(i);
08885:                                return true;
08886:                            }
08887:                        }
08888:                        if (comboField.getItemCount() > 0)
08889:                            comboField.setSelectedIndex(0);
08890:                    } catch (Exception ex) {
08891:                        ex.printStackTrace();
08892:                    }
08893:                }
08894:                return true;
08895:            }
08896:
08897:            protected boolean setPdfEncodingComboBox(boolean firstTime,
08898:                    String value, javax.swing.JComboBox comboField) {
08899:                if ((!firstTime)
08900:                        && (!(comboField.getSelectedItem() != null && ((comboField
08901:                                .getSelectedItem() instanceof  PdfEncoding && ((PdfEncoding) comboField
08902:                                .getSelectedItem()).getEncoding()
08903:                                .equalsIgnoreCase(value)) || (comboField
08904:                                .getSelectedItem() + "").equals(value))))) {
08905:                    if (comboField.getItemCount() > 0)
08906:                        comboField.setSelectedIndex(0);
08907:                    return false;
08908:                } else {
08909:                    try {
08910:                        for (int i = 0; i < comboField.getItemCount(); ++i) {
08911:                            if (comboField.getItemAt(i) instanceof  PdfEncoding
08912:                                    && ((PdfEncoding) comboField.getItemAt(i))
08913:                                            .getEncoding().equals(value)) {
08914:                                comboField.setSelectedIndex(i);
08915:                                return true;
08916:                            }
08917:                        }
08918:                        comboField.setSelectedItem(value);
08919:                    } catch (Exception ex) {
08920:                        ex.printStackTrace();
08921:                    }
08922:                }
08923:                return true;
08924:            }
08925:
08926:            public static boolean setComboBoxText(boolean firstTime,
08927:                    String value, javax.swing.JComboBox comboField) {
08928:                if ((!firstTime)
08929:                        && (!(Misc.nvl(comboField.getSelectedItem(), "")
08930:                                .equalsIgnoreCase(value)))) {
08931:                    comboField.setSelectedIndex(0);
08932:                    return false;
08933:                } else {
08934:                    try {
08935:                        comboField.setSelectedItem(value);
08936:                    } catch (Exception ex) {
08937:                        ex.printStackTrace();
08938:                    }
08939:                }
08940:                return true;
08941:            }
08942:
08943:            public static boolean setComboBoxTag(boolean firstTime,
08944:                    String value, javax.swing.JComboBox comboField) {
08945:                if ((!firstTime)
08946:                        && (!(Misc.nvl(Misc
08947:                                .getComboboxSelectedValue(comboField), "")
08948:                                .equalsIgnoreCase(value)))) {
08949:                    comboField.setSelectedIndex(0);
08950:                    return false;
08951:                } else {
08952:                    try {
08953:                        Misc.setComboboxSelectedTagValue(comboField, value);
08954:                    } catch (Exception ex) {
08955:                        ex.printStackTrace();
08956:                    }
08957:                }
08958:                return true;
08959:            }
08960:
08961:            protected boolean setTagComboBox(boolean firstTime, Object value,
08962:                    javax.swing.JComboBox comboField) {
08963:                if ((!firstTime)
08964:                        && (!(comboField.getSelectedItem() != null
08965:                                && comboField.getSelectedItem() instanceof  Tag && ((Tag) comboField
08966:                                .getSelectedItem()).getValue().equals(value)))) {
08967:                    comboField.setSelectedIndex(0);
08968:                    return false;
08969:                } else {
08970:                    try {
08971:                        for (int i = 0; i < comboField.getItemCount(); ++i) {
08972:                            if (comboField.getItemAt(i) instanceof  Tag
08973:                                    && ((Tag) comboField.getItemAt(i))
08974:                                            .getValue().equals(value)) {
08975:                                comboField.setSelectedIndex(i);
08976:                                return true;
08977:                            }
08978:                        }
08979:                    } catch (Exception ex) {
08980:                        ex.printStackTrace();
08981:                    }
08982:                }
08983:                return true;
08984:            }
08985:
08986:            protected boolean setMixedTagComboBox(boolean firstTime,
08987:                    Object value, javax.swing.JComboBox comboField) {
08988:                if (firstTime) {
08989:                    try {
08990:                        for (int i = 0; i < comboField.getItemCount(); ++i) {
08991:                            if (comboField.getItemAt(i) instanceof  Tag
08992:                                    && ((Tag) comboField.getItemAt(i))
08993:                                            .getValue().equals(value)) {
08994:                                comboField.setSelectedIndex(i);
08995:                                return true;
08996:                            }
08997:                        }
08998:                        // No tag found...
08999:                        comboField.setSelectedItem(value);
09000:
09001:                    } catch (Exception ex) {
09002:                        ex.printStackTrace();
09003:                    }
09004:                    return true;
09005:                } else {
09006:                    Object selectedValue = comboField.getSelectedItem();
09007:                    if (selectedValue == null && value == null)
09008:                        return true;
09009:                    if (selectedValue == null)
09010:                        return false;
09011:                    if (selectedValue instanceof  Tag) {
09012:                        selectedValue = ((Tag) selectedValue).getValue();
09013:                    }
09014:
09015:                    if (selectedValue.equals(value))
09016:                        return true;
09017:                }
09018:                return false;
09019:            }
09020:
09021:            protected boolean setTextField(boolean firstTime, String value,
09022:                    javax.swing.JTextField textField) {
09023:                if ((!firstTime)
09024:                        && (!textField.getText().equalsIgnoreCase(value))) {
09025:                    textField.setText("");
09026:                    return false;
09027:                } else {
09028:                    try {
09029:                        textField.setText((value == null) ? "" : value + "");
09030:                    } catch (Exception ex) {
09031:                        ex.printStackTrace();
09032:                    }
09033:                }
09034:                return true;
09035:            }
09036:
09037:            public void setVisible(boolean visible) {
09038:                try {
09039:
09040:                    if (visible == isVisible())
09041:                        return;
09042:
09043:                    if (visible == true) {
09044:                        this .updateSelection(true);
09045:                    }
09046:                } catch (Exception ex) {
09047:                    ex.printStackTrace();
09048:                }
09049:                super .setVisible(visible);
09050:
09051:            }
09052:
09053:            /** Getter for property init.
09054:             * @return Value of property init.
09055:             *
09056:             */
09057:            public boolean isInit() {
09058:                return init;
09059:            }
09060:
09061:            /** Setter for property init.
09062:             * @param init New value of property init.
09063:             *
09064:             */
09065:            public void setInit(boolean init) {
09066:                this .init = init;
09067:            }
09068:
09069:            protected boolean setElementColor(boolean firstTime, Color value,
09070:                    javax.swing.JButton colorField) {
09071:
09072:                if (firstTime) {
09073:                    colorField.setBackground(value);
09074:                    return true;
09075:                } else {
09076:                    java.awt.Color c1 = colorField.getBackground();
09077:                    if (c1 == value) {
09078:                        return true;
09079:                    }
09080:                    if (c1 != null && value != null
09081:                            && c1.getRGB() == value.getRGB()) {
09082:                        return true;
09083:                    }
09084:
09085:                    colorField.setBackground(Color.GRAY);
09086:                }
09087:
09088:                return false;
09089:            }
09090:
09091:            protected boolean setTextArea(boolean firstTime, String value,
09092:                    JRTextExpressionArea textField) {
09093:
09094:                if ((!firstTime) && (!(textField.getText().equals(value)))) {
09095:                    textField.setText("");
09096:                    ((org.syntax.jedit.SyntaxDocument) textField.getDocument())
09097:                            .getUM().discardAllEdits();
09098:                    return false;
09099:                } else {
09100:                    try {
09101:                        textField.setText(value);
09102:                        ((org.syntax.jedit.SyntaxDocument) textField
09103:                                .getDocument()).getUM().discardAllEdits();
09104:                    } catch (Exception ex) {
09105:                        ex.printStackTrace();
09106:                    }
09107:                }
09108:                return true;
09109:            }
09110:
09111:            protected boolean setJTextArea(boolean firstTime, String value,
09112:                    javax.swing.JTextArea textField) {
09113:
09114:                if ((!firstTime) && (!(textField.getText().equals(value)))) {
09115:                    textField.setText("");
09116:                    return false;
09117:                } else {
09118:                    try {
09119:                        textField.setText(value);
09120:
09121:                    } catch (Exception ex) {
09122:                        ex.printStackTrace();
09123:                    }
09124:                }
09125:                return true;
09126:            }
09127:
09128:            protected boolean setPatternComboBox(boolean firstTime,
09129:                    String value, javax.swing.JComboBox comboField) {
09130:                if ((!firstTime)
09131:                        && (!((comboField.getSelectedItem() + "").equals(value)))) {
09132:                    comboField.setSelectedItem("");
09133:                    return false;
09134:                } else {
09135:                    try {
09136:                        comboField.addItem(value);
09137:                        comboField.setSelectedItem(value);
09138:                    } catch (Exception ex) {
09139:                        ex.printStackTrace();
09140:                    }
09141:                }
09142:                return true;
09143:            }
09144:
09145:            protected boolean setWritableComboBoxText(boolean firstTime,
09146:                    String value, javax.swing.JComboBox comboField) {
09147:
09148:                if ((!firstTime)
09149:                        && (!((comboField.getSelectedItem() + "").equals(value)))) {
09150:                    comboField.setSelectedItem("");
09151:                    return false;
09152:                } else {
09153:                    try {
09154:                        if (value == null || value.equals(""))
09155:                            comboField.setSelectedIndex(0);
09156:                        comboField.setSelectedItem(value);
09157:                    } catch (Exception ex) {
09158:                        ex.printStackTrace();
09159:                    }
09160:                }
09161:                return true;
09162:            }
09163:
09164:            public void jRTextExpressionAreaPrintWhenExpressionTextChanged() {
09165:                if (this .isInit())
09166:                    return;
09167:
09168:                Enumeration e = getElementSelection().elements();
09169:                while (e.hasMoreElements()) {
09170:                    ReportElement element = (ReportElement) e.nextElement();
09171:                    element.printWhenExpression = jRTextExpressionAreaPrintWhenExpression
09172:                            .getText();
09173:                    //System.out.println("associato testo: "+element.printWhenExpression);
09174:                }
09175:
09176:                fireReportElementsChangedEvent("printWhenExpression",
09177:                        jRTextExpressionAreaPrintWhenExpression.getText());
09178:            }
09179:
09180:            public void jRTextExpressionAreaImageExpressionTextChanged() {
09181:                if (this .isInit())
09182:                    return;
09183:                Enumeration e = getElementSelection().elements();
09184:                while (e.hasMoreElements()) {
09185:                    ImageReportElement element = (ImageReportElement) e
09186:                            .nextElement();
09187:                    element
09188:                            .setImageExpression(jRTextExpressionAreaImageExpression
09189:                                    .getText());
09190:                }
09191:                repaintEditor();
09192:                jrf
09193:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09194:                                jrf, getElementSelection(),
09195:                                ReportElementChangedEvent.CHANGED));
09196:
09197:            }
09198:
09199:            public void jTextAreaTextChanged() {
09200:                if (this .isInit())
09201:                    return;
09202:
09203:                // Set band to all....
09204:                if (jrf == null || getElementSelection().size() == 0)
09205:                    return;
09206:                // Set the new value for all selected elements...
09207:                Enumeration e = getElementSelection().elements();
09208:                while (e.hasMoreElements()) {
09209:                    TextReportElement element = (TextReportElement) e
09210:                            .nextElement();
09211:                    element.setText("" + jTextAreaText.getText());
09212:                }
09213:                fireReportElementsChangedEvent("text", jTextAreaText.getText());
09214:                repaintEditor();
09215:            }
09216:
09217:            public void jRTextExpressionAreaTextFieldExpressionTextChanged() {
09218:                if (this .isInit())
09219:                    return;
09220:                Enumeration e = getElementSelection().elements();
09221:                while (e.hasMoreElements()) {
09222:                    TextFieldReportElement element = (TextFieldReportElement) e
09223:                            .nextElement();
09224:                    element
09225:                            .setText(""
09226:                                    + jRTextExpressionAreaTextFieldExpression
09227:                                            .getText());
09228:                }
09229:                fireReportElementsChangedEvent("textfieldExpression",
09230:                        jRTextExpressionAreaTextFieldExpression.getText());
09231:                repaintEditor();
09232:            }
09233:
09234:            public void jRTextExpressionAreaSubreportExpressionTextChanged() {
09235:                if (this .isInit())
09236:                    return;
09237:                Enumeration e = getElementSelection().elements();
09238:                while (e.hasMoreElements()) {
09239:                    SubReportElement element = (SubReportElement) e
09240:                            .nextElement();
09241:                    element
09242:                            .setSubreportExpression(""
09243:                                    + jRTextExpressionAreaSubreportExpression
09244:                                            .getText());
09245:                }
09246:                jrf
09247:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09248:                                jrf, getElementSelection(),
09249:                                ReportElementChangedEvent.CHANGED));
09250:
09251:                repaintEditor();
09252:            }
09253:
09254:            public void jRTextExpressionAreaTextConnectionExpressionTextChanged() {
09255:                if (this .isInit())
09256:                    return;
09257:                Enumeration e = getElementSelection().elements();
09258:                while (e.hasMoreElements()) {
09259:                    SubReportElement element = (SubReportElement) e
09260:                            .nextElement();
09261:                    if (element.isUseConnection())
09262:                        element.setConnectionExpression(""
09263:                                + jRTextExpressionAreaTextConnectionExpression
09264:                                        .getText());
09265:                    else
09266:                        element.setDataSourceExpression(""
09267:                                + jRTextExpressionAreaTextConnectionExpression
09268:                                        .getText());
09269:                }
09270:                jrf
09271:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09272:                                jrf, getElementSelection(),
09273:                                ReportElementChangedEvent.CHANGED));
09274:
09275:                repaintEditor();
09276:            }
09277:
09278:            public void jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged() {
09279:                if (this .isInit())
09280:                    return;
09281:                Enumeration e = getElementSelection().elements();
09282:                while (e.hasMoreElements()) {
09283:                    CrosstabReportElement element = (CrosstabReportElement) e
09284:                            .nextElement();
09285:                    element
09286:                            .setParametersMapExpression(""
09287:                                    + jRTextExpressionAreaCrosstabParametersMapExpression
09288:                                            .getText());
09289:                }
09290:                jrf
09291:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09292:                                jrf, getElementSelection(),
09293:                                ReportElementChangedEvent.CHANGED));
09294:
09295:                repaintEditor();
09296:            }
09297:
09298:            public void jRTextExpressionAreaSubreportMapExpressionTextChanged() {
09299:                if (this .isInit())
09300:                    return;
09301:                Enumeration e = getElementSelection().elements();
09302:                while (e.hasMoreElements()) {
09303:                    SubReportElement element = (SubReportElement) e
09304:                            .nextElement();
09305:                    element.setParametersMapExpression(""
09306:                            + jRTextExpressionAreaSubreportMapExpression
09307:                                    .getText());
09308:                    repaintEditor();
09309:                }
09310:                jrf
09311:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09312:                                jrf, getElementSelection(),
09313:                                ReportElementChangedEvent.CHANGED));
09314:
09315:            }
09316:
09317:            public void jRTextExpressionAreaAnchorNameTextChanged() {
09318:                if (this .isInit())
09319:                    return;
09320:                Enumeration e = getElementSelection().elements();
09321:                while (e.hasMoreElements()) {
09322:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
09323:                            .nextElement();
09324:                    element.setAnchorNameExpression(""
09325:                            + jRTextExpressionAreaAnchorName.getText());
09326:                }
09327:                jrf
09328:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09329:                                jrf, getElementSelection(),
09330:                                ReportElementChangedEvent.CHANGED));
09331:
09332:            }
09333:
09334:            public void jRTextExpressionAreaAnchorTextChanged() {
09335:                if (this .isInit())
09336:                    return;
09337:                Enumeration e = getElementSelection().elements();
09338:                while (e.hasMoreElements()) {
09339:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
09340:                            .nextElement();
09341:                    element.setHyperlinkAnchorExpression(""
09342:                            + jRTextExpressionAreaAnchor.getText());
09343:                }
09344:                jrf
09345:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09346:                                jrf, getElementSelection(),
09347:                                ReportElementChangedEvent.CHANGED));
09348:
09349:            }
09350:
09351:            public void jRTextExpressionAreaPageTextChanged() {
09352:                if (this .isInit())
09353:                    return;
09354:                Enumeration e = getElementSelection().elements();
09355:                while (e.hasMoreElements()) {
09356:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
09357:                            .nextElement();
09358:                    element.setHyperlinkPageExpression(""
09359:                            + jRTextExpressionAreaPage.getText());
09360:                }
09361:                jrf
09362:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09363:                                jrf, getElementSelection(),
09364:                                ReportElementChangedEvent.CHANGED));
09365:
09366:            }
09367:
09368:            public void jRTextExpressionAreaReferenceTextChanged() {
09369:                if (this .isInit())
09370:                    return;
09371:                Enumeration e = getElementSelection().elements();
09372:                while (e.hasMoreElements()) {
09373:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
09374:                            .nextElement();
09375:                    element.setHyperlinkReferenceExpression(""
09376:                            + jRTextExpressionAreaReference.getText());
09377:                }
09378:                jrf
09379:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09380:                                jrf, getElementSelection(),
09381:                                ReportElementChangedEvent.CHANGED));
09382:
09383:            }
09384:
09385:            public void jRTextExpressionAreaTooltipTextChanged() {
09386:                if (this .isInit())
09387:                    return;
09388:                Enumeration e = getElementSelection().elements();
09389:                while (e.hasMoreElements()) {
09390:                    HyperLinkableReportElement element = (HyperLinkableReportElement) e
09391:                            .nextElement();
09392:                    element.setTooltipExpression(""
09393:                            + jRTextExpressionAreaTooltip.getText());
09394:                }
09395:                jrf
09396:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09397:                                jrf, getElementSelection(),
09398:                                ReportElementChangedEvent.CHANGED));
09399:
09400:            }
09401:
09402:            public JRTextExpressionArea getJRTextExpressionArea(
09403:                    javax.swing.JComponent c, int x, int y) {
09404:                JRTextExpressionArea xxx = null;
09405:                //System.out.println(">>> " + c);
09406:                if (c
09407:                        .getClass()
09408:                        .isAssignableFrom(
09409:                                it.businesslogic.ireport.gui.JRTextExpressionArea.class)) {
09410:                    if (((JRTextExpressionArea) c).isRequestFocusEnabled() == true
09411:                            && c.contains(x, y)) {
09412:                        //System.out.println( ((JRTextExpressionArea)c).getText() );
09413:                        return (JRTextExpressionArea) c;
09414:                    }
09415:                    return null;
09416:                } else {
09417:                    for (int i = 0; i < c.getComponentCount(); ++i) {
09418:                        Component child = c.getComponent(i);
09419:                        if (child instanceof  javax.swing.JComponent) {
09420:                            xxx = getJRTextExpressionArea(
09421:                                    (javax.swing.JComponent) child, x, y);
09422:                            if (xxx != null)
09423:                                return xxx;
09424:                        }
09425:                    }
09426:
09427:                }
09428:                return null;
09429:            }
09430:
09431:            public void gotoTab(int tabCode) {
09432:                try {
09433:                    switch (tabCode) {
09434:                    case GRAPHICS_TAB:
09435:                        jTabbedPane.setSelectedComponent(jPanelGraphicselement);
09436:                        break;
09437:                    case RECTANGLE_TAB:
09438:                        jTabbedPane.setSelectedComponent(jPanelRectangle);
09439:                        break;
09440:                    case LINE_TAB:
09441:                        jTabbedPane.setSelectedComponent(jPanelLine);
09442:                        break;
09443:                    case IMAGE_TAB:
09444:                        jTabbedPane.setSelectedComponent(jPanelImage);
09445:                        break;
09446:                    case FONT_TAB:
09447:                        jTabbedPane.setSelectedComponent(jPanelFont);
09448:                        break;
09449:                    case STATITEXT_TAB:
09450:                        jTabbedPane.setSelectedComponent(jPanelText);
09451:                        break;
09452:                    case TEXTFIELD_TAB:
09453:                        jTabbedPane.setSelectedComponent(jPanelTextField);
09454:                        break;
09455:                    case HYPERLINK_TAB:
09456:                        jTabbedPane.setSelectedComponent(jPanelHyperLink);
09457:                        try {
09458:                            jTabbedPane2.setSelectedComponent(jPanelLinkParams);
09459:                        } catch (Exception ex) {
09460:                        }
09461:                        break;
09462:                    case SUBREPORT1_TAB:
09463:                        jTabbedPane.setSelectedComponent(jPanelSubreport1);
09464:                        break;
09465:                    case SUBREPORT2_TAB:
09466:                        jTabbedPane.setSelectedComponent(jPanelSubreport2);
09467:                        break;
09468:                    case CHART_TAB:
09469:                        jTabbedPane.setSelectedComponent(jPanelChart);
09470:                        break;
09471:                    case BARCODE_TAB:
09472:                        jTabbedPane.setSelectedComponent(jPanelBarcode);
09473:                        break;
09474:                    case COMMON_TAB:
09475:                    default:
09476:                        jTabbedPane.setSelectedComponent(jPanelCommon);
09477:                        break;
09478:                    }
09479:
09480:                } catch (Exception ex) {
09481:                }
09482:            }
09483:
09484:            /** Initalize the TextExpressionArea with keywords (variables, parameters
09485:             *    and fields) from the report.
09486:             */
09487:            private void initExpressionArea(JRTextExpressionArea area) {
09488:                area.getTokenMarker().setKeywordLookup(
09489:                        jrf.getReport().getKeywordLookup());
09490:            }
09491:
09492:            public void jTextFieldNameChanged() {
09493:                if (this .isInit())
09494:                    return;
09495:
09496:                if (jrf == null || getElementSelection().size() == 0)
09497:                    return;
09498:
09499:                Enumeration e = getElementSelection().elements();
09500:                ReportElement element = (ReportElement) e.nextElement();
09501:
09502:                element.setKey(jTextFieldName.getText());
09503:                jrf
09504:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09505:                                jrf, element, ReportElementChangedEvent.CHANGED));
09506:                repaintEditor();
09507:            }
09508:
09509:            public void jTextFieldAppIdentifierChanged() {
09510:                if (this .isInit())
09511:                    return;
09512:
09513:                if (jrf == null || getElementSelection().size() == 0)
09514:                    return;
09515:
09516:                Enumeration e = getElementSelection().elements();
09517:                BarcodeReportElement element = (BarcodeReportElement) e
09518:                        .nextElement();
09519:
09520:                element
09521:                        .setApplicationIdentifier(jBarcodeExpressionAreaAppIdentifier
09522:                                .getText());
09523:                jrf
09524:                        .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
09525:                                jrf, element, ReportElementChangedEvent.CHANGED));
09526:                repaintEditor();
09527:            }
09528:
09529:            public Vector getElementSelection() {
09530:                if (jrf.getSelectedCrosstabEditorPanel() == null) {
09531:                    return jrf.getSelectedElements();
09532:                } else {
09533:                    return jrf.getSelectedCrosstabEditorPanel()
09534:                            .getSelectedElements();
09535:                }
09536:            }
09537:
09538:            public void repaintEditor() {
09539:
09540:                if (jrf.getSelectedCrosstabEditorPanel() == null) {
09541:                    jrf.getJPanelReport().repaint();
09542:                } else {
09543:                    jrf.getSelectedCrosstabEditorPanel().repaint();
09544:                }
09545:            }
09546:
09547:            /**
09548:             * Property name refers to the name of the property in in the ReportElementSheetProperty
09549:             * if propertyname is null, a general event is fired
09550:             */
09551:            public void fireReportElementsChangedEvent(String propertyName,
09552:                    Object newValue) {
09553:                if (jrf == null)
09554:                    return;
09555:                ReportElementChangedEvent changedEvent = new ReportElementChangedEvent(
09556:                        jrf,
09557:                        (jrf.getSelectedCrosstabEditorPanel() != null) ? jrf
09558:                                .getSelectedCrosstabEditorPanel()
09559:                                .getCrosstabElement() : null,
09560:                        getElementSelection(),
09561:                        ReportElementChangedEvent.CHANGED);
09562:                changedEvent.setEventSource(this );
09563:                changedEvent.setPropertyChanged(propertyName);
09564:                changedEvent.setNewValue(newValue);
09565:                jrf.fireReportListenerReportElementsChanged(changedEvent);
09566:            }
09567:
09568:            private static Locale lastLocale = null;
09569:
09570:            public void applyI18n() {
09571:
09572:                if (lastLocale != null && lastLocale == I18n.getCurrentLocale())
09573:                    return;
09574:                lastLocale = I18n.getCurrentLocale();
09575:
09576:                this .setInit(true);
09577:                // Start autogenerated code ----------------------
09578:                jCheckBoxBarcodeCheckSum.setText(I18n.getString(
09579:                        "elementPropertiesDialog.checkBoxBarcodeCheckSum",
09580:                        "Checksum"));
09581:                jCheckBoxBarcodeShowText.setText(I18n.getString(
09582:                        "elementPropertiesDialog.checkBoxBarcodeShowText",
09583:                        "Show Text"));
09584:                jCheckBoxBlankWhenNull.setText(I18n.getString(
09585:                        "elementPropertiesDialog.checkBoxBlankWhenNull",
09586:                        "Blank when null"));
09587:                jCheckBoxBold.setText(I18n.getString(
09588:                        "elementPropertiesDialog.checkBoxBold", "Bold"));
09589:                jCheckBoxImageCache.setText(I18n.getString(
09590:                        "elementPropertiesDialog.checkBoxImageCache",
09591:                        "Using cache"));
09592:                jCheckBoxImageIsLazy.setText(I18n.getString(
09593:                        "elementPropertiesDialog.checkBoxImageIsLazy",
09594:                        "Is Lazy"));
09595:                jCheckBoxItalic.setText(I18n.getString(
09596:                        "elementPropertiesDialog.checkBoxItalic", "Italic"));
09597:                jCheckBoxPDFEmbedded.setText(I18n.getString(
09598:                        "elementPropertiesDialog.checkBoxPDFEmbedded",
09599:                        "PDF Embedded"));
09600:                jCheckBoxPrintInFirstWholeBand
09601:                        .setText(I18n
09602:                                .getString(
09603:                                        "elementPropertiesDialog.checkBoxPrintInFirstWholeBand",
09604:                                        "Print in first whole band"));
09605:                jCheckBoxPrintRepeatedValues.setText(I18n.getString(
09606:                        "elementPropertiesDialog.checkBoxPrintRepeatedValues",
09607:                        "Print repeated values"));
09608:                jCheckBoxPrintWhenDetailOverflows
09609:                        .setText(I18n
09610:                                .getString(
09611:                                        "elementPropertiesDialog.checkBoxPrintWhenDetailOverflows",
09612:                                        "Print when detail overflows"));
09613:                jCheckBoxRemoveLineWhenBlank.setText(I18n.getString(
09614:                        "elementPropertiesDialog.checkBoxRemoveLineWhenBlank",
09615:                        "Remove line when blank"));
09616:                jCheckBoxRepeatColumnHeaders.setText(I18n.getString(
09617:                        "elementPropertiesDialog.checkBoxRepeatColumnHeaders",
09618:                        "Repeat column headers"));
09619:                jCheckBoxRepeatRowHeaders.setText(I18n.getString(
09620:                        "elementPropertiesDialog.checkBoxRepeatRowHeaders",
09621:                        "Repeat row headers"));
09622:                jCheckBoxStretchWithOverflow.setText(I18n.getString(
09623:                        "elementPropertiesDialog.checkBoxStretchWithOverflow",
09624:                        "Stretch with overflow"));
09625:                jCheckBoxStrokeTrough.setText(I18n.getString(
09626:                        "elementPropertiesDialog.checkBoxStrokeTrough",
09627:                        "Strike Trough"));
09628:                jCheckBoxStyledText.setText(I18n.getString(
09629:                        "elementPropertiesDialog.checkBoxStyledText",
09630:                        "Is styled text"));
09631:                jCheckBoxSubreportCache.setText(I18n.getString(
09632:                        "elementPropertiesDialog.checkBoxSubreportCache",
09633:                        "Using cache"));
09634:                jCheckBoxTransparent.setText(I18n.getString(
09635:                        "elementPropertiesDialog.checkBoxTransparent",
09636:                        "Transparent"));
09637:                jCheckBoxUnderline.setText(I18n.getString(
09638:                        "elementPropertiesDialog.checkBoxUnderline",
09639:                        "Underline"));
09640:                // End autogenerated code ----------------------
09641:                // Start autogenerated code ----------------------
09642:                jButton2.setText(I18n.getString(
09643:                        "elementPropertiesDialog.button2",
09644:                        "Edit crosstab properties"));
09645:                jButtonAddCrosstabParameter.setText(I18n.getString(
09646:                        "elementPropertiesDialog.buttonAddCrosstabParameter",
09647:                        "Add"));
09648:                jButtonAddLinkParameter
09649:                        .setText(I18n
09650:                                .getString(
09651:                                        "elementPropertiesDialog.buttonAddLinkParameter",
09652:                                        "Add"));
09653:                jButtonAddParameter.setText(I18n.getString(
09654:                        "elementPropertiesDialog.buttonAddParameter", "Add"));
09655:                jButtonAddReturnValue.setText(I18n.getString(
09656:                        "elementPropertiesDialog.buttonAddReturnValue", "Add"));
09657:                jButtonCopyParamsFromMaster.setText(I18n.getString(
09658:                        "elementPropertiesDialog.buttonCopyParamsFromMaster",
09659:                        "Copy from master"));
09660:                jButtonCreatePattern.setText(I18n.getString(
09661:                        "elementPropertiesDialog.buttonCreatePattern",
09662:                        "Create..."));
09663:                jButtonFindImage.setText(I18n.getString(
09664:                        "elementPropertiesDialog.buttonFindImage", "Find..."));
09665:                jButtonModCrosstabParameter.setText(I18n.getString(
09666:                        "elementPropertiesDialog.buttonModCrosstabParameter",
09667:                        "Modify"));
09668:                jButtonModLinkParameter.setText(I18n.getString(
09669:                        "elementPropertiesDialog.buttonModLinkParameter",
09670:                        "Modify"));
09671:                jButtonModParameter
09672:                        .setText(I18n.getString(
09673:                                "elementPropertiesDialog.buttonModParameter",
09674:                                "Modify"));
09675:                jButtonModReturnValue.setText(I18n.getString(
09676:                        "elementPropertiesDialog.buttonModReturnValue",
09677:                        "Modify"));
09678:                jButtonRemCrosstabParameter.setText(I18n.getString(
09679:                        "elementPropertiesDialog.buttonRemCrosstabParameter",
09680:                        "Remove"));
09681:                jButtonRemLinkParameter.setText(I18n.getString(
09682:                        "elementPropertiesDialog.buttonRemLinkParameter",
09683:                        "Remove"));
09684:                jButtonRemParameter
09685:                        .setText(I18n.getString(
09686:                                "elementPropertiesDialog.buttonRemParameter",
09687:                                "Remove"));
09688:                jButtonRemReturnValue.setText(I18n.getString(
09689:                        "elementPropertiesDialog.buttonRemReturnValue",
09690:                        "Remove"));
09691:                jLabel1.setText(I18n.getString(
09692:                        "elementPropertiesDialog.label1", "Band "));
09693:                jLabel10.setText(I18n.getString(
09694:                        "elementPropertiesDialog.label10",
09695:                        "Print when expression"));
09696:                jLabel11.setText(I18n.getString(
09697:                        "elementPropertiesDialog.label11", "Pen"));
09698:                jLabel12.setText(I18n.getString(
09699:                        "elementPropertiesDialog.label12", "Stretch Type"));
09700:                jLabel13.setText(I18n.getString(
09701:                        "elementPropertiesDialog.label13", "Fill"));
09702:                jLabel14.setText(I18n.getString(
09703:                        "elementPropertiesDialog.label14", "Radius"));
09704:                jLabel15.setText(I18n.getString(
09705:                        "elementPropertiesDialog.label15", "Line direction"));
09706:                jLabel16.setText(I18n.getString(
09707:                        "elementPropertiesDialog.label16", "Image Expression"));
09708:                jLabel17.setText(I18n.getString(
09709:                        "elementPropertiesDialog.label17",
09710:                        "Image Expression Class"));
09711:                jLabel18.setText(I18n.getString(
09712:                        "elementPropertiesDialog.label18", "Scale Image"));
09713:                jLabel19.setText(I18n
09714:                        .getString("elementPropertiesDialog.label19",
09715:                                "Vertical alignment"));
09716:                jLabel2.setText(I18n.getString(
09717:                        "elementPropertiesDialog.label2", "Top "));
09718:                jLabel20.setText(I18n.getString(
09719:                        "elementPropertiesDialog.label20",
09720:                        "Horizontal alignment"));
09721:                jLabel21.setText(I18n.getString(
09722:                        "elementPropertiesDialog.label21", "Evaluation time"));
09723:                jLabel22.setText(I18n.getString(
09724:                        "elementPropertiesDialog.label22", "Evaluation group"));
09725:                jLabel23.setText(I18n.getString(
09726:                        "elementPropertiesDialog.label23", "Report font"));
09727:                jLabel24.setText(I18n.getString(
09728:                        "elementPropertiesDialog.label24", "Font name"));
09729:                jLabel25.setText(I18n.getString(
09730:                        "elementPropertiesDialog.label25", "PDF font name"));
09731:                jLabel26.setText(I18n.getString(
09732:                        "elementPropertiesDialog.label26",
09733:                        "Subreport Expression"));
09734:                jLabel27.setText(I18n.getString(
09735:                        "elementPropertiesDialog.label27", "Size"));
09736:                jLabel28.setText(I18n.getString(
09737:                        "elementPropertiesDialog.label28",
09738:                        "Textfield Expression Class"));
09739:                jLabel29.setText(I18n.getString(
09740:                        "elementPropertiesDialog.label29", "Line spacing"));
09741:                jLabel3.setText(I18n.getString(
09742:                        "elementPropertiesDialog.label3", "Left "));
09743:                jLabel30.setText(I18n.getString(
09744:                        "elementPropertiesDialog.label30", "Horizontal align"));
09745:                jLabel31.setText(I18n.getString(
09746:                        "elementPropertiesDialog.label31", "Vertical align"));
09747:                jLabel32.setText(I18n.getString(
09748:                        "elementPropertiesDialog.label32", "PDF Encoding"));
09749:                jLabel33.setText(I18n.getString(
09750:                        "elementPropertiesDialog.label33",
09751:                        "Subreport Expression Class"));
09752:                jLabel34.setText(I18n.getString(
09753:                        "elementPropertiesDialog.label34", "On error type"));
09754:                jLabel35.setText(I18n.getString(
09755:                        "elementPropertiesDialog.label35",
09756:                        "Anchor Name Expression"));
09757:                jLabel36.setText(I18n.getString(
09758:                        "elementPropertiesDialog.label36", "Hyperlink type"));
09759:                jLabel37.setText(I18n.getString(
09760:                        "elementPropertiesDialog.label37", "Evaluation time"));
09761:                jLabel38.setText(I18n.getString(
09762:                        "elementPropertiesDialog.label38", "Evaluation group"));
09763:                jLabel39.setText(I18n.getString(
09764:                        "elementPropertiesDialog.label39", "Pattern"));
09765:                jLabel4.setText(I18n.getString(
09766:                        "elementPropertiesDialog.label4", "Width"));
09767:                jLabel40.setText(I18n.getString(
09768:                        "elementPropertiesDialog.label40",
09769:                        "Textfield expression"));
09770:                jLabel41.setText(I18n.getString(
09771:                        "elementPropertiesDialog.label41",
09772:                        "Connection / Datasource Expression"));
09773:                jLabel42.setText(I18n.getString(
09774:                        "elementPropertiesDialog.label42",
09775:                        "Parameters Map Expression"));
09776:                jLabel43.setText(I18n.getString(
09777:                        "elementPropertiesDialog.label43", "Evaluation group"));
09778:                jLabel44.setText(I18n.getString(
09779:                        "elementPropertiesDialog.label44", "Evaluation time"));
09780:                jLabel45.setText(I18n.getString(
09781:                        "elementPropertiesDialog.label45", "Evaluation group"));
09782:                jLabel46.setText(I18n.getString(
09783:                        "elementPropertiesDialog.label46", "Key"));
09784:                jLabel47.setText(I18n.getString(
09785:                        "elementPropertiesDialog.label47", "Type"));
09786:                jLabel48.setText(I18n
09787:                        .getString("elementPropertiesDialog.label48",
09788:                                "Barcode expression"));
09789:                jLabel49.setText(I18n.getString(
09790:                        "elementPropertiesDialog.label49", "Rotation"));
09791:                jLabel5.setText(I18n.getString(
09792:                        "elementPropertiesDialog.label5", "Height "));
09793:                jLabel50.setText(I18n.getString(
09794:                        "elementPropertiesDialog.label50", "Evaluation time"));
09795:                jLabel51.setText(I18n.getString(
09796:                        "elementPropertiesDialog.label51",
09797:                        "Parameters Map Expression"));
09798:                jLabel52.setText(I18n.getString(
09799:                        "elementPropertiesDialog.label52",
09800:                        "Crosstab parameters"));
09801:                jLabel53.setText(I18n.getString(
09802:                        "elementPropertiesDialog.label53",
09803:                        "Column break offset"));
09804:                jLabel54.setText(I18n.getString(
09805:                        "elementPropertiesDialog.label54",
09806:                        "Scale Barcode Image"));
09807:                jLabel55.setText(I18n.getString(
09808:                        "elementPropertiesDialog.label55", "On error type"));
09809:                jLabel56.setText(I18n.getString(
09810:                        "elementPropertiesDialog.label56",
09811:                        "Horizontal alignment"));
09812:                jLabel57.setText(I18n
09813:                        .getString("elementPropertiesDialog.label57",
09814:                                "Vertical alignment"));
09815:                jLabel58.setText(I18n.getString(
09816:                        "elementPropertiesDialog.label58", "Bar height"));
09817:                jLabel59.setText(I18n.getString(
09818:                        "elementPropertiesDialog.label59",
09819:                        "Application identifier"));
09820:                jLabel6.setText(I18n.getString(
09821:                        "elementPropertiesDialog.label6", "Foreground "));
09822:                jLabel60.setText(I18n.getString(
09823:                        "elementPropertiesDialog.label60", "(0 = default)"));
09824:                jLabel61.setText(I18n.getString(
09825:                        "elementPropertiesDialog.label61", "Bar width"));
09826:                jLabel7.setText(I18n.getString(
09827:                        "elementPropertiesDialog.label7", "Background "));
09828:                jLabel8.setText(I18n.getString(
09829:                        "elementPropertiesDialog.label8", "Position type"));
09830:                jLabel9.setText(I18n.getString(
09831:                        "elementPropertiesDialog.label9",
09832:                        "Print when group changes"));
09833:                jLabelAnchor.setText(I18n.getString(
09834:                        "elementPropertiesDialog.labelAnchor",
09835:                        "Hyperlink Anchor Expression"));
09836:                jLabelPage.setText(I18n.getString(
09837:                        "elementPropertiesDialog.labelPage",
09838:                        "Hyperlink Page Expression"));
09839:                jLabelReference.setText(I18n.getString(
09840:                        "elementPropertiesDialog.labelReference",
09841:                        "Hyperlink Reference Expression"));
09842:                jLabelStyle.setText(I18n.getString(
09843:                        "elementPropertiesDialog.labelStyle", "Style"));
09844:                jLabelTarget.setText(I18n.getString(
09845:                        "elementPropertiesDialog.labelTarget",
09846:                        "Hyperlink target"));
09847:                jLabelTarget1.setText(I18n.getString(
09848:                        "elementPropertiesDialog.labelTarget1",
09849:                        "Bookmark level"));
09850:                // End autogenerated code ----------------------
09851:
09852:                jTableSubreportParameters
09853:                        .getColumnModel()
09854:                        .getColumn(0)
09855:                        .setHeaderValue(
09856:                                I18n
09857:                                        .getString(
09858:                                                "elementPropertiesDialog.subreportParameters.parameter",
09859:                                                "Parameter"));
09860:                jTableSubreportParameters
09861:                        .getColumnModel()
09862:                        .getColumn(1)
09863:                        .setHeaderValue(
09864:                                I18n
09865:                                        .getString(
09866:                                                "elementPropertiesDialog.subreportParameters.expression",
09867:                                                "Expression"));
09868:
09869:                jTableSubreportReturnValues
09870:                        .getColumnModel()
09871:                        .getColumn(0)
09872:                        .setHeaderValue(
09873:                                I18n
09874:                                        .getString(
09875:                                                "elementPropertiesDialog.subreportReturnValues.subreportVariable",
09876:                                                "Subreport variable"));
09877:                jTableSubreportReturnValues
09878:                        .getColumnModel()
09879:                        .getColumn(1)
09880:                        .setHeaderValue(
09881:                                I18n
09882:                                        .getString(
09883:                                                "elementPropertiesDialog.subreportReturnValues.destinationVariable",
09884:                                                "Destination variable"));
09885:
09886:                jTableLinkParameters
09887:                        .getColumnModel()
09888:                        .getColumn(0)
09889:                        .setHeaderValue(
09890:                                I18n
09891:                                        .getString(
09892:                                                "elementPropertiesDialog.linkParameters.linkParameter",
09893:                                                "Link parameter"));
09894:                jTableLinkParameters
09895:                        .getColumnModel()
09896:                        .getColumn(1)
09897:                        .setHeaderValue(
09898:                                I18n
09899:                                        .getString(
09900:                                                "elementPropertiesDialog.linkParameters.expression",
09901:                                                "Expression"));
09902:
09903:                jTableCrosstabParameters
09904:                        .getColumnModel()
09905:                        .getColumn(0)
09906:                        .setHeaderValue(
09907:                                I18n
09908:                                        .getString(
09909:                                                "elementPropertiesDialog.crosstabParameters.parameter",
09910:                                                "Parameter"));
09911:                jTableCrosstabParameters
09912:                        .getColumnModel()
09913:                        .getColumn(1)
09914:                        .setHeaderValue(
09915:                                I18n
09916:                                        .getString(
09917:                                                "elementPropertiesDialog.crosstabParameters.expression",
09918:                                                "Expression"));
09919:
09920:                // Position types...     
09921:                jComboBoxPositionType.removeAllItems();
09922:                jComboBoxPositionType
09923:                        .addItem(new Tag(
09924:                                "FixRelativeToTop",
09925:                                I18n
09926:                                        .getString(
09927:                                                "gui.elementpropertiessheet.positionType.FixRelativeToTop",
09928:                                                "FixRelativeToTop")));
09929:                jComboBoxPositionType.addItem(new Tag("Float", I18n.getString(
09930:                        "gui.elementpropertiessheet.positionType.Float",
09931:                        "Float")));
09932:                jComboBoxPositionType
09933:                        .addItem(new Tag(
09934:                                "FixRelativeToBottom",
09935:                                I18n
09936:                                        .getString(
09937:                                                "gui.elementpropertiessheet.positionType.FixRelativeToBottom",
09938:                                                "FixRelativeToBottom")));
09939:
09940:                // Pens...
09941:                jComboBoxPen.removeAllItems();
09942:                jComboBoxPen.addItem(new Tag("None", I18n.getString(
09943:                        "gui.elementpropertiessheet.pen.None", "None")));
09944:                jComboBoxPen.addItem(new Tag("Thin", I18n.getString(
09945:                        "gui.elementpropertiessheet.pen.Thin", "Thin")));
09946:                jComboBoxPen.addItem(new Tag("1Point", I18n.getString(
09947:                        "gui.elementpropertiessheet.pen.1Point", "1Point")));
09948:                jComboBoxPen.addItem(new Tag("2Point", I18n.getString(
09949:                        "gui.elementpropertiessheet.pen.2Point", "2Point")));
09950:                jComboBoxPen.addItem(new Tag("4Point", I18n.getString(
09951:                        "gui.elementpropertiessheet.pen.4Point", "4Point")));
09952:                jComboBoxPen.addItem(new Tag("Dotted", I18n.getString(
09953:                        "gui.elementpropertiessheet.pen.Dotted", "Dotted")));
09954:
09955:                // StretchTypes...
09956:                jComboBoxStretchType.removeAllItems();
09957:                jComboBoxStretchType
09958:                        .addItem(new Tag(
09959:                                "NoStretch",
09960:                                I18n
09961:                                        .getString(
09962:                                                "gui.elementpropertiessheet.stretchType.NoStretch",
09963:                                                "No stretch")));
09964:                jComboBoxStretchType
09965:                        .addItem(new Tag(
09966:                                "RelativeToTallestObject",
09967:                                I18n
09968:                                        .getString(
09969:                                                "gui.elementpropertiessheet.stretchType.RelativeToTallestObject",
09970:                                                "Relative to tallest object")));
09971:                jComboBoxStretchType
09972:                        .addItem(new Tag(
09973:                                "RelativeToBandHeight",
09974:                                I18n
09975:                                        .getString(
09976:                                                "gui.elementpropertiessheet.stretchType.RelativeToBandHeight",
09977:                                                "Relative to band height")));
09978:
09979:                // Fill...
09980:                jComboBoxFill.removeAllItems();
09981:                jComboBoxFill.addItem(new Tag("Solid", I18n.getString(
09982:                        "gui.elementpropertiessheet.fill.Solid", "Solid")));
09983:
09984:                // Line...
09985:                jComboBoxLineDirection.removeAllItems();
09986:                jComboBoxLineDirection.addItem(new Tag("TopDown", I18n
09987:                        .getString(
09988:                                "gui.elementpropertiessheet.direction.TopDown",
09989:                                "Top-down (\\)")));
09990:                jComboBoxLineDirection
09991:                        .addItem(new Tag(
09992:                                "BottomUp",
09993:                                I18n
09994:                                        .getString(
09995:                                                "gui.elementpropertiessheet.direction.BottomUp",
09996:                                                "Bottom-up (/)")));
09997:
09998:                // Rotate
09999:                jComboBoxRotation.removeAllItems();
10000:                jComboBoxRotation.addItem(new Tag("None", I18n.getString(
10001:                        "gui.elementpropertiessheet.rotate.None", "None")));
10002:                jComboBoxRotation.addItem(new Tag("Left", I18n.getString(
10003:                        "gui.elementpropertiessheet.rotate.Left", "Left")));
10004:                jComboBoxRotation.addItem(new Tag("Right", I18n.getString(
10005:                        "gui.elementpropertiessheet.rotate.Right", "Right")));
10006:                jComboBoxRotation.addItem(new Tag("UpsideDown", I18n.getString(
10007:                        "gui.elementpropertiessheet.rotate.UpsideDown",
10008:                        "Upside down")));
10009:
10010:                // Scale Image...
10011:                jComboBoxScale.removeAllItems();
10012:                jComboBoxScale.addItem(new Tag("Clip", I18n.getString(
10013:                        "gui.elementpropertiessheet.imageScale.Clip", "Clip")));
10014:                jComboBoxScale.addItem(new Tag("FillFrame", I18n.getString(
10015:                        "gui.elementpropertiessheet.imageScale.FillFrame",
10016:                        "Fill frame")));
10017:                jComboBoxScale.addItem(new Tag("RetainShape", I18n.getString(
10018:                        "gui.elementpropertiessheet.imageScale.RetainShape",
10019:                        "Retain shape")));
10020:
10021:                // bARCODE Scale Image...
10022:                jComboBoxScale1.removeAllItems();
10023:                jComboBoxScale1.addItem(new Tag("Clip", I18n.getString(
10024:                        "gui.elementpropertiessheet.imageScale.Clip", "Clip")));
10025:                jComboBoxScale1.addItem(new Tag("FillFrame", I18n.getString(
10026:                        "gui.elementpropertiessheet.imageScale.FillFrame",
10027:                        "Fill frame")));
10028:                jComboBoxScale1.addItem(new Tag("RetainShape", I18n.getString(
10029:                        "gui.elementpropertiessheet.imageScale.RetainShape",
10030:                        "Retain shape")));
10031:
10032:                // On error...
10033:                jComboBoxImageOnError.removeAllItems();
10034:                jComboBoxImageOnError
10035:                        .addItem(new Tag("Error", I18n.getString(
10036:                                "gui.elementpropertiessheet.imageScale.Error",
10037:                                "Error")));
10038:                jComboBoxImageOnError
10039:                        .addItem(new Tag("Blank", I18n.getString(
10040:                                "gui.elementpropertiessheet.imageScale.Blank",
10041:                                "Blank")));
10042:                jComboBoxImageOnError.addItem(new Tag("Icon", I18n.getString(
10043:                        "gui.elementpropertiessheet.imageScale.Icon", "Icon")));
10044:
10045:                // BARCODE On error...
10046:                jComboBoxImageOnError1.removeAllItems();
10047:                jComboBoxImageOnError1
10048:                        .addItem(new Tag("Error", I18n.getString(
10049:                                "gui.elementpropertiessheet.imageScale.Error",
10050:                                "Error")));
10051:                jComboBoxImageOnError1
10052:                        .addItem(new Tag("Blank", I18n.getString(
10053:                                "gui.elementpropertiessheet.imageScale.Blank",
10054:                                "Blank")));
10055:                jComboBoxImageOnError1.addItem(new Tag("Icon", I18n.getString(
10056:                        "gui.elementpropertiessheet.imageScale.Icon", "Icon")));
10057:
10058:                // Image Evaluation Time...
10059:                jComboBoxEvaluationTime.removeAllItems();
10060:                jComboBoxEvaluationTime
10061:                        .addItem(new Tag(
10062:                                "Now",
10063:                                I18n
10064:                                        .getString(
10065:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Now",
10066:                                                "Now")));
10067:                jComboBoxEvaluationTime
10068:                        .addItem(new Tag(
10069:                                "Report",
10070:                                I18n
10071:                                        .getString(
10072:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Report",
10073:                                                "Report")));
10074:                jComboBoxEvaluationTime
10075:                        .addItem(new Tag(
10076:                                "Page",
10077:                                I18n
10078:                                        .getString(
10079:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Page",
10080:                                                "Page")));
10081:                jComboBoxEvaluationTime
10082:                        .addItem(new Tag(
10083:                                "Column",
10084:                                I18n
10085:                                        .getString(
10086:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Column",
10087:                                                "Column")));
10088:                jComboBoxEvaluationTime
10089:                        .addItem(new Tag(
10090:                                "Group",
10091:                                I18n
10092:                                        .getString(
10093:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Group",
10094:                                                "Group")));
10095:                jComboBoxEvaluationTime
10096:                        .addItem(new Tag(
10097:                                "Band",
10098:                                I18n
10099:                                        .getString(
10100:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Band",
10101:                                                "Band")));
10102:                jComboBoxEvaluationTime
10103:                        .addItem(new Tag(
10104:                                "Auto",
10105:                                I18n
10106:                                        .getString(
10107:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Auto",
10108:                                                "Auto")));
10109:
10110:                // Image Evaluation Time chart...
10111:                jComboBoxEvaluationTime1.removeAllItems();
10112:                jComboBoxEvaluationTime1
10113:                        .addItem(new Tag(
10114:                                "Now",
10115:                                I18n
10116:                                        .getString(
10117:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Now",
10118:                                                "Now")));
10119:                jComboBoxEvaluationTime1
10120:                        .addItem(new Tag(
10121:                                "Report",
10122:                                I18n
10123:                                        .getString(
10124:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Report",
10125:                                                "Report")));
10126:                jComboBoxEvaluationTime1
10127:                        .addItem(new Tag(
10128:                                "Page",
10129:                                I18n
10130:                                        .getString(
10131:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Page",
10132:                                                "Page")));
10133:                jComboBoxEvaluationTime1
10134:                        .addItem(new Tag(
10135:                                "Column",
10136:                                I18n
10137:                                        .getString(
10138:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Column",
10139:                                                "Column")));
10140:                jComboBoxEvaluationTime1
10141:                        .addItem(new Tag(
10142:                                "Group",
10143:                                I18n
10144:                                        .getString(
10145:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Group",
10146:                                                "Group")));
10147:                jComboBoxEvaluationTime1
10148:                        .addItem(new Tag(
10149:                                "Band",
10150:                                I18n
10151:                                        .getString(
10152:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Band",
10153:                                                "Band")));
10154:                jComboBoxEvaluationTime1
10155:                        .addItem(new Tag(
10156:                                "Auto",
10157:                                I18n
10158:                                        .getString(
10159:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Auto",
10160:                                                "Auto")));
10161:
10162:                // Image Vertical Alignments...    
10163:                jComboBoxVerticalAlignment.removeAllItems();
10164:                jComboBoxVerticalAlignment.addItem(new Tag("Top", I18n
10165:                        .getString("gui.elementpropertiessheet.valign.Top",
10166:                                "Top")));
10167:                jComboBoxVerticalAlignment.addItem(new Tag("Middle", I18n
10168:                        .getString("gui.elementpropertiessheet.valign.Middle",
10169:                                "Middle")));
10170:                jComboBoxVerticalAlignment.addItem(new Tag("Bottom", I18n
10171:                        .getString("gui.elementpropertiessheet.valign.Bottom",
10172:                                "Bottom")));
10173:
10174:                // Image Horizontal Alignments...
10175:                jComboBoxHorizontalAlignment.removeAllItems();
10176:                jComboBoxHorizontalAlignment.addItem(new Tag("Left", I18n
10177:                        .getString("gui.elementpropertiessheet.halign.Left",
10178:                                "Left")));
10179:                jComboBoxHorizontalAlignment.addItem(new Tag("Center", I18n
10180:                        .getString("gui.elementpropertiessheet.halign.Center",
10181:                                "Center")));
10182:                jComboBoxHorizontalAlignment.addItem(new Tag("Right", I18n
10183:                        .getString("gui.elementpropertiessheet.halign.Right",
10184:                                "Right")));
10185:
10186:                // bARCODE Vertical Alignments...
10187:                jComboBoxVerticalAlignment1.removeAllItems();
10188:                jComboBoxVerticalAlignment1.addItem(new Tag("Top", I18n
10189:                        .getString("gui.elementpropertiessheet.valign.Top",
10190:                                "Top")));
10191:                jComboBoxVerticalAlignment1.addItem(new Tag("Middle", I18n
10192:                        .getString("gui.elementpropertiessheet.valign.Middle",
10193:                                "Middle")));
10194:                jComboBoxVerticalAlignment1.addItem(new Tag("Bottom", I18n
10195:                        .getString("gui.elementpropertiessheet.valign.Bottom",
10196:                                "Bottom")));
10197:
10198:                // bARCODE Horizontal Alignments...
10199:                jComboBoxHorizontalAlignment1.removeAllItems();
10200:                jComboBoxHorizontalAlignment1.addItem(new Tag("Left", I18n
10201:                        .getString("gui.elementpropertiessheet.halign.Left",
10202:                                "Left")));
10203:                jComboBoxHorizontalAlignment1.addItem(new Tag("Center", I18n
10204:                        .getString("gui.elementpropertiessheet.halign.Center",
10205:                                "Center")));
10206:                jComboBoxHorizontalAlignment1.addItem(new Tag("Right", I18n
10207:                        .getString("gui.elementpropertiessheet.halign.Right",
10208:                                "Right")));
10209:
10210:                //jComboBoxPDFFontName.addItem("External TTF font...");
10211:
10212:                // Text Vertical Alignments...
10213:                jComboBoxVAlign.removeAllItems();
10214:                jComboBoxVAlign.addItem(new Tag("Top", I18n.getString(
10215:                        "gui.elementpropertiessheet.valign.Top", "Top")));
10216:                jComboBoxVAlign.addItem(new Tag("Middle", I18n.getString(
10217:                        "gui.elementpropertiessheet.valign.Middle", "Middle")));
10218:                jComboBoxVAlign.addItem(new Tag("Bottom", I18n.getString(
10219:                        "gui.elementpropertiessheet.valign.Bottom", "Bottom")));
10220:
10221:                // Image Horizontal Alignments...
10222:                jComboBoxHAlign.removeAllItems();
10223:                jComboBoxHAlign.addItem(new Tag("Left", I18n.getString(
10224:                        "gui.elementpropertiessheet.halign.Left", "Left")));
10225:                jComboBoxHAlign.addItem(new Tag("Center", I18n.getString(
10226:                        "gui.elementpropertiessheet.halign.Center", "Center")));
10227:                jComboBoxHAlign.addItem(new Tag("Right", I18n.getString(
10228:                        "gui.elementpropertiessheet.halign.Right", "Right")));
10229:                jComboBoxHAlign.addItem(new Tag("Justified", I18n.getString(
10230:                        "gui.elementpropertiessheet.halign.Justified",
10231:                        "Justified")));
10232:
10233:                jComboBoxLineSpacing.removeAllItems();
10234:                jComboBoxLineSpacing.addItem(new Tag("Single", I18n.getString(
10235:                        "gui.elementpropertiessheet.lineSpacing.Single",
10236:                        "Single")));
10237:                jComboBoxLineSpacing.addItem(new Tag("1_1_2", I18n
10238:                        .getString(
10239:                                "gui.elementpropertiessheet.lineSpacing.1_1_2",
10240:                                "1-1-2")));
10241:                jComboBoxLineSpacing.addItem(new Tag("Double", I18n.getString(
10242:                        "gui.elementpropertiessheet.lineSpacing.Double",
10243:                        "Double")));
10244:
10245:                // Text field Evaluation Time...
10246:                jComboBoxTextFieldEvaluationTime.removeAllItems();
10247:                jComboBoxTextFieldEvaluationTime
10248:                        .addItem(new Tag(
10249:                                "Now",
10250:                                I18n
10251:                                        .getString(
10252:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Now",
10253:                                                "Now")));
10254:                jComboBoxTextFieldEvaluationTime
10255:                        .addItem(new Tag(
10256:                                "Report",
10257:                                I18n
10258:                                        .getString(
10259:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Report",
10260:                                                "Report")));
10261:                jComboBoxTextFieldEvaluationTime
10262:                        .addItem(new Tag(
10263:                                "Page",
10264:                                I18n
10265:                                        .getString(
10266:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Page",
10267:                                                "Page")));
10268:                jComboBoxTextFieldEvaluationTime
10269:                        .addItem(new Tag(
10270:                                "Column",
10271:                                I18n
10272:                                        .getString(
10273:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Column",
10274:                                                "Column")));
10275:                jComboBoxTextFieldEvaluationTime
10276:                        .addItem(new Tag(
10277:                                "Group",
10278:                                I18n
10279:                                        .getString(
10280:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Group",
10281:                                                "Group")));
10282:                jComboBoxTextFieldEvaluationTime
10283:                        .addItem(new Tag(
10284:                                "Band",
10285:                                I18n
10286:                                        .getString(
10287:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Band",
10288:                                                "Band")));
10289:                jComboBoxTextFieldEvaluationTime
10290:                        .addItem(new Tag(
10291:                                "Auto",
10292:                                I18n
10293:                                        .getString(
10294:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Auto",
10295:                                                "Auto")));
10296:
10297:                jComboBoxSubreportConnectionType.removeAllItems();
10298:                jComboBoxSubreportConnectionType.addItem(I18n.getString(
10299:                        "ConnectionType.1",
10300:                        "Don't use connection or datasource"));
10301:                jComboBoxSubreportConnectionType.addItem(I18n.getString(
10302:                        "ConnectionType.2", "Use connection expression"));
10303:                jComboBoxSubreportConnectionType.addItem(I18n.getString(
10304:                        "ConnectionType.3", "Use datasource expression"));
10305:
10306:                // Barcode Evaluation Time...
10307:                jComboBoxEvaluationTimeBarcode.removeAllItems();
10308:                jComboBoxEvaluationTimeBarcode
10309:                        .addItem(new Tag(
10310:                                "Now",
10311:                                I18n
10312:                                        .getString(
10313:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Now",
10314:                                                "Now")));
10315:                jComboBoxEvaluationTimeBarcode
10316:                        .addItem(new Tag(
10317:                                "Report",
10318:                                I18n
10319:                                        .getString(
10320:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Report",
10321:                                                "Report")));
10322:                jComboBoxEvaluationTimeBarcode
10323:                        .addItem(new Tag(
10324:                                "Page",
10325:                                I18n
10326:                                        .getString(
10327:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Page",
10328:                                                "Page")));
10329:                jComboBoxEvaluationTimeBarcode
10330:                        .addItem(new Tag(
10331:                                "Column",
10332:                                I18n
10333:                                        .getString(
10334:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Column",
10335:                                                "Column")));
10336:                jComboBoxEvaluationTimeBarcode
10337:                        .addItem(new Tag(
10338:                                "Group",
10339:                                I18n
10340:                                        .getString(
10341:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Group",
10342:                                                "Group")));
10343:                jComboBoxEvaluationTimeBarcode
10344:                        .addItem(new Tag(
10345:                                "Band",
10346:                                I18n
10347:                                        .getString(
10348:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Band",
10349:                                                "Band")));
10350:                jComboBoxEvaluationTimeBarcode
10351:                        .addItem(new Tag(
10352:                                "Auto",
10353:                                I18n
10354:                                        .getString(
10355:                                                "gui.elementpropertiessheet.textfieldEvaluationTime.Auto",
10356:                                                "Auto")));
10357:
10358:                jTabbedPane1
10359:                        .setTitleAt(
10360:                                0,
10361:                                it.businesslogic.ireport.util.I18n
10362:                                        .getString(
10363:                                                "elementPropertiesDialog.tab.SubreportParameters",
10364:                                                "Subreport parameters"));
10365:                jTabbedPane1
10366:                        .setTitleAt(
10367:                                1,
10368:                                it.businesslogic.ireport.util.I18n
10369:                                        .getString(
10370:                                                "elementPropertiesDialog.tab.SubreportReturnValues",
10371:                                                "Subreport return values"));
10372:
10373:                ((javax.swing.border.TitledBorder) jPanel1.getBorder())
10374:                        .setTitle(it.businesslogic.ireport.util.I18n
10375:                                .getString(
10376:                                        "elementPropertiesDialog.panelBorder.RectangleRadius",
10377:                                        "Rectangle radius"));
10378:
10379:                this .updateSelection();
10380:            }
10381:
10382:            public static final int COMPONENT_NONE = 0;
10383:            public static final int COMPONENT_ANCHORNAME_EXPRESSION = 1;
10384:            public static final int COMPONENT_HYPERLINK_REFERENCE_EXPRESSION = 2;
10385:            public static final int COMPONENT_HYPERLINK_ANCHOR_EXPRESSION = 3;
10386:            public static final int COMPONENT_HYPERLINK_PAGE_EXPRESSION = 4;
10387:            public static final int COMPONENT_HYPERLINK_TOOLTIP_EXPRESSION = 5;
10388:            public static final int COMPONENT_HYPERLINK_PARAMETERS = 6;
10389:            public static final int COMPONENT_SUBREPORT_MAP_EXPRESSION = 7;
10390:            public static final int COMPONENT_SUBREPORT_DS_CONN_EXPRESSION = 8;
10391:            public static final int COMPONENT_SUBREPORT_EXPRESSION = 9;
10392:            public static final int COMPONENT_SUBREPORT_PARAMETERS = 10;
10393:            public static final int COMPONENT_SUBREPORT_RETURN_VALUES = 11;
10394:            public static final int COMPONENT_CROSSTAB_PARAMETERS = 12;
10395:            public static final int COMPONENT_CROSSTAB_MAP_EXPRESSION = 13;
10396:
10397:            /**
10398:             * This method set the focus on a specific component.
10399:             * Valid constants are something like:
10400:             * COMPONENT_NONE, COMPONENT_ANCHORNAME_EXPRESSION, ...
10401:             *
10402:             */
10403:            public void setFocusedExpression(int expID, int paramIdex) {
10404:                try {
10405:                    switch (expID) {
10406:                    case COMPONENT_ANCHORNAME_EXPRESSION:
10407:                        this .jTabbedPane
10408:                                .setSelectedComponent(this .jPanelHyperLink);
10409:                        Misc
10410:                                .selectTextAndFocusArea(jRTextExpressionAreaAnchorName);
10411:                        break;
10412:                    case COMPONENT_HYPERLINK_REFERENCE_EXPRESSION:
10413:                        this .jTabbedPane
10414:                                .setSelectedComponent(this .jPanelHyperLink);
10415:                        this .jTabbedPane2.setSelectedComponent(jPanelReference);
10416:                        Misc
10417:                                .selectTextAndFocusArea(jRTextExpressionAreaReference);
10418:                        break;
10419:                    case COMPONENT_HYPERLINK_ANCHOR_EXPRESSION:
10420:                        this .jTabbedPane
10421:                                .setSelectedComponent(this .jPanelHyperLink);
10422:                        this .jTabbedPane2.setSelectedComponent(jPanelAnchor);
10423:                        Misc.selectTextAndFocusArea(jRTextExpressionAreaAnchor);
10424:                        break;
10425:                    case COMPONENT_HYPERLINK_PAGE_EXPRESSION:
10426:                        this .jTabbedPane
10427:                                .setSelectedComponent(this .jPanelHyperLink);
10428:                        this .jTabbedPane2.setSelectedComponent(jPanelPage);
10429:                        Misc.selectTextAndFocusArea(jRTextExpressionAreaPage);
10430:                        break;
10431:                    case COMPONENT_HYPERLINK_TOOLTIP_EXPRESSION:
10432:                        this .jTabbedPane
10433:                                .setSelectedComponent(this .jPanelHyperLink);
10434:                        this .jTabbedPane2.setSelectedComponent(jPanelTooltip);
10435:                        Misc
10436:                                .selectTextAndFocusArea(jRTextExpressionAreaTooltip);
10437:                        break;
10438:                    case COMPONENT_HYPERLINK_PARAMETERS:
10439:                        this .jTabbedPane
10440:                                .setSelectedComponent(this .jPanelHyperLink);
10441:                        this .jTabbedPane2
10442:                                .setSelectedComponent(jPanelLinkParams);
10443:                        if (paramIdex >= 0
10444:                                && jTableLinkParameters.getRowCount() > paramIdex) {
10445:                            jTableLinkParameters.setRowSelectionInterval(
10446:                                    paramIdex, paramIdex);
10447:                        }
10448:                        break;
10449:                    case COMPONENT_SUBREPORT_MAP_EXPRESSION:
10450:                        this .jTabbedPane
10451:                                .setSelectedComponent(this .jPanelSubreport1);
10452:                        Misc
10453:                                .selectTextAndFocusArea(jRTextExpressionAreaSubreportMapExpression);
10454:                        break;
10455:                    case COMPONENT_SUBREPORT_DS_CONN_EXPRESSION:
10456:                        this .jTabbedPane
10457:                                .setSelectedComponent(this .jPanelSubreport1);
10458:                        Misc
10459:                                .selectTextAndFocusArea(jRTextExpressionAreaTextConnectionExpression);
10460:                        break;
10461:                    case COMPONENT_SUBREPORT_EXPRESSION:
10462:                        this .jTabbedPane
10463:                                .setSelectedComponent(this .jPanelSubreport2);
10464:                        Misc
10465:                                .selectTextAndFocusArea(jRTextExpressionAreaSubreportExpression);
10466:                        break;
10467:                    case COMPONENT_SUBREPORT_PARAMETERS:
10468:                        this .jTabbedPane
10469:                                .setSelectedComponent(this .jPanelSubreport2);
10470:                        this .jTabbedPane1.setSelectedComponent(jPanel16);
10471:                        if (paramIdex >= 0
10472:                                && jTableSubreportParameters.getRowCount() > paramIdex) {
10473:                            jTableSubreportParameters.setRowSelectionInterval(
10474:                                    paramIdex, paramIdex);
10475:                        }
10476:                        break;
10477:                    case COMPONENT_SUBREPORT_RETURN_VALUES:
10478:                        this .jTabbedPane
10479:                                .setSelectedComponent(this .jPanelSubreport2);
10480:                        this .jTabbedPane1
10481:                                .setSelectedComponent(jPanelSubreportReturnValues);
10482:                        if (paramIdex >= 0
10483:                                && jTableSubreportReturnValues.getRowCount() > paramIdex) {
10484:                            jTableSubreportReturnValues
10485:                                    .setRowSelectionInterval(paramIdex,
10486:                                            paramIdex);
10487:                        }
10488:                        break;
10489:                    case COMPONENT_CROSSTAB_PARAMETERS:
10490:                        this .jTabbedPane
10491:                                .setSelectedComponent(this .jPanelCrosstab);
10492:                        if (paramIdex >= 0
10493:                                && jTableCrosstabParameters.getRowCount() > paramIdex) {
10494:                            jTableCrosstabParameters.setRowSelectionInterval(
10495:                                    paramIdex, paramIdex);
10496:                        }
10497:                        break;
10498:                    case COMPONENT_CROSSTAB_MAP_EXPRESSION:
10499:                        this .jTabbedPane
10500:                                .setSelectedComponent(this .jPanelCrosstab);
10501:                        Misc
10502:                                .selectTextAndFocusArea(jRTextExpressionAreaCrosstabParametersMapExpression);
10503:                        break;
10504:                    }
10505:                } catch (Exception ex) {
10506:                }
10507:            }
10508:
10509:            /**
10510:             * this method modify the parameter selected in the parameters list.<br>
10511:             * An element must be selected.<br>
10512:             * If <b>paramExpressionId</b> is specified, that expression is highlighted 
10513:             */
10514:            public void modifyLinkParameter(int paramExpressionId) {
10515:                //setFocusedExpression(COMPONENT_HYPERLINK_PARAMETERS);
10516:
10517:                Enumeration e = getElementSelection().elements();
10518:                HyperLinkableReportElement element = (HyperLinkableReportElement) e
10519:                        .nextElement();
10520:                if (jTableLinkParameters.getSelectedRow() < 0)
10521:                    return;
10522:                JRLinkParameter parameter = (JRLinkParameter) jTableLinkParameters
10523:                        .getValueAt(jTableLinkParameters.getSelectedRow(), 0);
10524:
10525:                JRLinkParameterDialog jrpd = new JRLinkParameterDialog(this ,
10526:                        true);
10527:                jrpd.setParameter(parameter);
10528:                jrpd.setFocusedExpression(paramExpressionId);
10529:                jrpd.setVisible(true);
10530:
10531:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
10532:                    parameter.setName(jrpd.getParameter().getName());
10533:                    parameter
10534:                            .setExpression(jrpd.getParameter().getExpression());
10535:
10536:                    jTableLinkParameters.setValueAt(parameter,
10537:                            jTableSubreportParameters.getSelectedRow(), 0);
10538:                    jTableLinkParameters.setValueAt(parameter.getExpression(),
10539:                            jTableSubreportParameters.getSelectedRow(), 1);
10540:                    jTableLinkParameters.updateUI();
10541:
10542:                    MainFrame.getMainInstance().getActiveReportFrame()
10543:                            .getReport().incrementReportChanges();
10544:                }
10545:                // TODO open the parameter expression...
10546:            }
10547:
10548:            /**
10549:             * this method modify the parameter selected in the parameters list.<br>
10550:             * An element must be selected.<br>
10551:             * If <b>paramExpressionId</b> is specified, that expression is highlighted 
10552:             */
10553:            public void modifySubreportParameter(int paramExpressionId) {
10554:
10555:                Enumeration e = getElementSelection().elements();
10556:                SubReportElement element = (SubReportElement) e.nextElement();
10557:                if (jTableSubreportParameters.getSelectedRow() < 0)
10558:                    return;
10559:                JRSubreportParameter parameter = (JRSubreportParameter) jTableSubreportParameters
10560:                        .getValueAt(jTableSubreportParameters.getSelectedRow(),
10561:                                0);
10562:
10563:                JRSubreportParameterDialog jrpd = new JRSubreportParameterDialog(
10564:                        this , true);
10565:                jrpd.setParameter(parameter);
10566:                jrpd.setFocusedExpression(paramExpressionId);
10567:                jrpd.setVisible(true);
10568:
10569:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
10570:                    parameter.setName(jrpd.getParameter().getName());
10571:                    parameter
10572:                            .setExpression(jrpd.getParameter().getExpression());
10573:
10574:                    jTableSubreportParameters.setValueAt(parameter,
10575:                            jTableSubreportParameters.getSelectedRow(), 0);
10576:                    jTableSubreportParameters.setValueAt(parameter
10577:                            .getExpression(), jTableSubreportParameters
10578:                            .getSelectedRow(), 1);
10579:                    jTableSubreportParameters.updateUI();
10580:
10581:                    MainFrame.getMainInstance().getActiveReportFrame()
10582:                            .getReport().incrementReportChanges();
10583:                }
10584:            }
10585:
10586:            /**
10587:             * this method modify the parameter selected in the parameters list.<br>
10588:             * An element must be selected.<br>
10589:             * If <b>paramExpressionId</b> is specified, that expression is highlighted 
10590:             */
10591:            public void modifyCrosstabParameter(int paramExpressionId) {
10592:                Enumeration e = getElementSelection().elements();
10593:                CrosstabReportElement element = (CrosstabReportElement) e
10594:                        .nextElement();
10595:
10596:                if (jTableCrosstabParameters.getSelectedRow() < 0)
10597:                    return;
10598:                it.businesslogic.ireport.crosstab.CrosstabParameter parameter = (it.businesslogic.ireport.crosstab.CrosstabParameter) jTableCrosstabParameters
10599:                        .getValueAt(jTableCrosstabParameters.getSelectedRow(),
10600:                                0);
10601:
10602:                it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog jrpd = new it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog(
10603:                        this , true);
10604:                jrpd.setParameter(parameter);
10605:                jrpd.setFocusedExpression(paramExpressionId);
10606:                jrpd.setVisible(true);
10607:
10608:                if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
10609:                    parameter.setName(jrpd.getParameter().getName());
10610:                    parameter.setParameterValueExpression(jrpd.getParameter()
10611:                            .getParameterValueExpression());
10612:
10613:                    jTableCrosstabParameters.setValueAt(parameter,
10614:                            jTableCrosstabParameters.getSelectedRow(), 0);
10615:                    jTableCrosstabParameters.setValueAt(parameter
10616:                            .getParameterValueExpression(),
10617:                            jTableCrosstabParameters.getSelectedRow(), 1);
10618:                    jTableCrosstabParameters.updateUI();
10619:
10620:                    jrf
10621:                            .fireReportListenerReportElementsChanged(new ReportElementChangedEvent(
10622:                                    jrf, getElementSelection(),
10623:                                    ReportElementChangedEvent.CHANGED));
10624:
10625:                }
10626:            }
10627:
10628:            public void updateLinkTypes() {
10629:                DefaultComboBoxModel cbm = new DefaultComboBoxModel(MainFrame
10630:                        .getMainInstance().getLinkTypes());
10631:                jComboBoxLinkType.setModel(cbm);
10632:            }
10633:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.