Source Code Cross Referenced for PositionStyleEditor.java in  » IDE-Netbeans » css » org » netbeans » modules » css » visual » ui » 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 » IDE Netbeans » css » org.netbeans.modules.css.visual.ui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0003:         *
0004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0005:         *
0006:         * The contents of this file are subject to the terms of either the GNU
0007:         * General Public License Version 2 only ("GPL") or the Common
0008:         * Development and Distribution License("CDDL") (collectively, the
0009:         * "License"). You may not use this file except in compliance with the
0010:         * License. You can obtain a copy of the License at
0011:         * http://www.netbeans.org/cddl-gplv2.html
0012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0013:         * specific language governing permissions and limitations under the
0014:         * License.  When distributing the software, include this License Header
0015:         * Notice in each file and include the License file at
0016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
0017:         * particular file as subject to the "Classpath" exception as provided
0018:         * by Sun in the GPL Version 2 section of the License file that
0019:         * accompanied this code. If applicable, add the following below the
0020:         * License Header, with the fields enclosed by brackets [] replaced by
0021:         * your own identifying information:
0022:         * "Portions Copyrighted [year] [name of copyright owner]"
0023:         *
0024:         * Contributor(s):
0025:         *
0026:         * The Original Software is NetBeans. The Initial Developer of the Original
0027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
0028:         * Microsystems, Inc. All Rights Reserved.
0029:         *
0030:         * If you wish your version of this file to be governed by only the CDDL
0031:         * or only the GPL Version 2, indicate your decision by adding
0032:         * "[Contributor] elects to include this software in this distribution
0033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
0034:         * single choice of license, a recipient has the option to distribute
0035:         * your version of this file under either the CDDL, the GPL Version 2 or
0036:         * to extend the choice of license to its licensees as provided above.
0037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
0038:         * Version 2 license, then the option applies only if the new code is
0039:         * made subject to such option by the copyright holder.
0040:         */
0041:
0042:        /*
0043:         * PositionStyleEditor.java
0044:         *
0045:         * Created on October 13, 2004, 12:23 PM
0046:         */
0047:
0048:        package org.netbeans.modules.css.visual.ui;
0049:
0050:        import org.netbeans.modules.css.visual.model.ClipData;
0051:        import org.netbeans.modules.css.visual.model.ClipModel;
0052:        import org.netbeans.modules.css.visual.model.CssProperties;
0053:        import org.netbeans.modules.css.editor.model.CssRuleContent;
0054:        import org.netbeans.modules.css.visual.model.PositionData;
0055:        import org.netbeans.modules.css.visual.model.PositionModel;
0056:        import org.netbeans.modules.css.visual.model.PropertyData;
0057:        import org.netbeans.modules.css.visual.model.PropertyWithUnitData;
0058:        import org.netbeans.modules.css.visual.model.PropertyData;
0059:        import javax.swing.DefaultComboBoxModel;
0060:        import javax.swing.JTextField;
0061:        import javax.swing.SwingUtilities;
0062:        import org.netbeans.modules.css.visual.model.Utils;
0063:        import org.openide.util.NbBundle;
0064:
0065:        /**
0066:         * Position Style editor.
0067:         * @author  Winston Prakash
0068:         * @version 1.0
0069:         */
0070:        public class PositionStyleEditor extends StyleEditor {
0071:
0072:            DefaultComboBoxModel positionModeList;
0073:            PositionData positionData = new PositionData();
0074:            ClipData clipData = new ClipData();
0075:
0076:            /** Creates new form FontStyleEditor */
0077:            public PositionStyleEditor() {
0078:                setName("positionStyleEditor"); //NOI18N
0079:                setDisplayName(NbBundle.getMessage(PositionStyleEditor.class,
0080:                        "POSITION_EDITOR_DISPNAME"));
0081:                initComponents();
0082:                initialize();
0083:
0084:                // Add editor listeners to the width & height combobox
0085:                final JTextField widthComboBoxEditor = (JTextField) widthComboBox
0086:                        .getEditor().getEditorComponent();
0087:                widthComboBoxEditor
0088:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0089:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0090:                                SwingUtilities.invokeLater(new Runnable() {
0091:                                    public void run() {
0092:                                        widthUnitComboBox.setEnabled(Utils
0093:                                                .isInteger(widthComboBoxEditor
0094:                                                        .getText()));
0095:                                    }
0096:                                });
0097:                            }
0098:                        });
0099:                final JTextField heightComboBoxEditor = (JTextField) heightComboBox
0100:                        .getEditor().getEditorComponent();
0101:                heightComboBoxEditor
0102:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0103:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0104:                                SwingUtilities.invokeLater(new Runnable() {
0105:                                    public void run() {
0106:                                        heightUnitComboBox.setEnabled(Utils
0107:                                                .isInteger(heightComboBoxEditor
0108:                                                        .getText()));
0109:                                    }
0110:                                });
0111:                            }
0112:                        });
0113:
0114:                // Add editor listeners to the top, right, bottom & left combobox
0115:
0116:                final JTextField posTopComboBoxEditor = (JTextField) posTopComboBox
0117:                        .getEditor().getEditorComponent();
0118:                posTopComboBoxEditor
0119:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0120:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0121:                                SwingUtilities.invokeLater(new Runnable() {
0122:                                    public void run() {
0123:                                        posTopUnitComboBox.setEnabled(Utils
0124:                                                .isInteger(posTopComboBoxEditor
0125:                                                        .getText()));
0126:                                    }
0127:                                });
0128:                            }
0129:                        });
0130:                final JTextField posRightComboBoxEditor = (JTextField) posRightComboBox
0131:                        .getEditor().getEditorComponent();
0132:                posRightComboBoxEditor
0133:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0134:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0135:                                SwingUtilities.invokeLater(new Runnable() {
0136:                                    public void run() {
0137:                                        posRightUnitComboBox
0138:                                                .setEnabled(Utils
0139:                                                        .isInteger(posRightComboBoxEditor
0140:                                                                .getText()));
0141:                                    }
0142:                                });
0143:                            }
0144:                        });
0145:                final JTextField posBottomComboBoxEditor = (JTextField) posBottomComboBox
0146:                        .getEditor().getEditorComponent();
0147:                posBottomComboBoxEditor
0148:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0149:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0150:                                SwingUtilities.invokeLater(new Runnable() {
0151:                                    public void run() {
0152:                                        posBottomUnitComboBox
0153:                                                .setEnabled(Utils
0154:                                                        .isInteger(posBottomComboBoxEditor
0155:                                                                .getText()));
0156:                                    }
0157:                                });
0158:                            }
0159:                        });
0160:                final JTextField posLeftComboBoxEditor = (JTextField) posLeftComboBox
0161:                        .getEditor().getEditorComponent();
0162:                posLeftComboBoxEditor
0163:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0164:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0165:                                SwingUtilities.invokeLater(new Runnable() {
0166:                                    public void run() {
0167:                                        posLeftUnitComboBox
0168:                                                .setEnabled(Utils
0169:                                                        .isInteger(posLeftComboBoxEditor
0170:                                                                .getText()));
0171:                                    }
0172:                                });
0173:
0174:                            }
0175:                        });
0176:
0177:                // Add editor listeners to the top, right, bottom & left Clip combobox
0178:
0179:                final JTextField clipTopComboBoxEditor = (JTextField) clipTopComboBox
0180:                        .getEditor().getEditorComponent();
0181:                clipTopComboBoxEditor
0182:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0183:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0184:                                SwingUtilities.invokeLater(new Runnable() {
0185:                                    public void run() {
0186:                                        clipTopUnitComboBox
0187:                                                .setEnabled(Utils
0188:                                                        .isInteger(clipTopComboBoxEditor
0189:                                                                .getText()));
0190:                                    }
0191:                                });
0192:                            }
0193:                        });
0194:                final JTextField clipRightComboBoxEditor = (JTextField) clipRightComboBox
0195:                        .getEditor().getEditorComponent();
0196:                clipRightComboBoxEditor
0197:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0198:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0199:                                SwingUtilities.invokeLater(new Runnable() {
0200:                                    public void run() {
0201:                                        clipRightUnitComboBox
0202:                                                .setEnabled(Utils
0203:                                                        .isInteger(clipRightComboBoxEditor
0204:                                                                .getText()));
0205:                                    }
0206:                                });
0207:                            }
0208:                        });
0209:                final JTextField clipBottomComboBoxEditor = (JTextField) clipBottomComboBox
0210:                        .getEditor().getEditorComponent();
0211:                clipBottomComboBoxEditor
0212:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0213:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0214:                                SwingUtilities.invokeLater(new Runnable() {
0215:                                    public void run() {
0216:                                        clipBottomUnitComboBox
0217:                                                .setEnabled(Utils
0218:                                                        .isInteger(clipBottomComboBoxEditor
0219:                                                                .getText()));
0220:                                    }
0221:                                });
0222:                            }
0223:                        });
0224:                final JTextField clipLeftComboBoxEditor = (JTextField) clipLeftComboBox
0225:                        .getEditor().getEditorComponent();
0226:                clipLeftComboBoxEditor
0227:                        .addKeyListener(new java.awt.event.KeyAdapter() {
0228:                            public void keyTyped(java.awt.event.KeyEvent evt) {
0229:                                SwingUtilities.invokeLater(new Runnable() {
0230:                                    public void run() {
0231:                                        clipLeftComboBoxEditor
0232:                                                .setEnabled(Utils
0233:                                                        .isInteger(clipLeftComboBoxEditor
0234:                                                                .getText()));
0235:                                    }
0236:                                });
0237:                            }
0238:                        });
0239:            }
0240:
0241:            /**
0242:             * Set the CSS Properties Values from the CssStyleData data structure
0243:             * to the GUI components.
0244:             */
0245:            protected void setCssPropertyValues(CssRuleContent cssStyleData) {
0246:                removeCssPropertyChangeListener();
0247:                String positionMode = cssStyleData
0248:                        .getProperty(CssProperties.POSITION);
0249:                if (positionMode != null) {
0250:                    positionModeCombo.setSelectedItem(positionMode);
0251:                } else {
0252:                    positionModeCombo.setSelectedIndex(0);
0253:                }
0254:                String posTop = cssStyleData.getProperty(CssProperties.TOP);
0255:                if (posTop != null) {
0256:                    positionData.setTop(posTop);
0257:                    posTopComboBox.setSelectedItem(positionData.getTopValue());
0258:                    posTopUnitComboBox.setSelectedItem(positionData
0259:                            .getTopUnit());
0260:                } else {
0261:                    posTopComboBox.setSelectedIndex(0);
0262:                    posTopUnitComboBox.setSelectedItem("px"); //NOI18N
0263:                }
0264:
0265:                String posBottom = cssStyleData
0266:                        .getProperty(CssProperties.BOTTOM);
0267:                if (posBottom != null) {
0268:                    positionData.setBottom(posBottom);
0269:                    posBottomComboBox.setSelectedItem(positionData
0270:                            .getBottomValue());
0271:                    posBottomUnitComboBox.setSelectedItem(positionData
0272:                            .getBottomUnit());
0273:                } else {
0274:                    posBottomComboBox.setSelectedIndex(0);
0275:                    posBottomUnitComboBox.setSelectedItem("px"); //NOI18N
0276:                }
0277:
0278:                String posLeft = cssStyleData.getProperty(CssProperties.LEFT);
0279:                if (posLeft != null) {
0280:                    positionData.setLeft(posLeft);
0281:                    posLeftComboBox
0282:                            .setSelectedItem(positionData.getLeftValue());
0283:                    posLeftUnitComboBox.setSelectedItem(positionData
0284:                            .getLeftUnit());
0285:                } else {
0286:                    posLeftComboBox.setSelectedIndex(0);
0287:                    posLeftUnitComboBox.setSelectedItem("px"); //NOI18N
0288:                }
0289:
0290:                String width = cssStyleData.getProperty(CssProperties.WIDTH);
0291:                if (width != null) {
0292:                    positionData.setWidth(width);
0293:                    widthComboBox.setSelectedItem(positionData.getWidthValue());
0294:                    widthUnitComboBox.setSelectedItem(positionData
0295:                            .getWidthUnit());
0296:                } else {
0297:                    widthComboBox.setSelectedIndex(0);
0298:                    widthUnitComboBox.setSelectedItem("px"); //NOI18N
0299:                }
0300:
0301:                String height = cssStyleData.getProperty(CssProperties.HEIGHT);
0302:                if (height != null) {
0303:                    positionData.setHeight(height);
0304:                    heightComboBox.setSelectedItem(positionData
0305:                            .getHeightValue());
0306:                    heightUnitComboBox.setSelectedItem(positionData
0307:                            .getHeightUnit());
0308:                } else {
0309:                    heightComboBox.setSelectedIndex(0);
0310:                    heightUnitComboBox.setSelectedItem("px"); //NOI18N
0311:                }
0312:
0313:                String visibility = cssStyleData
0314:                        .getProperty(CssProperties.VISIBILITY);
0315:                if (visibility != null) {
0316:                    visibleComboBox.setSelectedItem(visibility);
0317:                } else {
0318:                    visibleComboBox.setSelectedIndex(0);
0319:                }
0320:
0321:                String zindex = cssStyleData.getProperty(CssProperties.Z_INDEX);
0322:                if (zindex != null) {
0323:                    zindexComboBox.setSelectedItem(zindex);
0324:                } else {
0325:                    zindexComboBox.setSelectedIndex(0);
0326:                }
0327:
0328:                String posRight = cssStyleData.getProperty(CssProperties.RIGHT);
0329:                if (posRight != null) {
0330:                    positionData.setRight(posRight);
0331:                    posRightComboBox.setSelectedItem(positionData
0332:                            .getRightValue());
0333:                    posRightUnitComboBox.setSelectedItem(positionData
0334:                            .getRightUnit());
0335:                } else {
0336:                    posRightComboBox.setSelectedIndex(0);
0337:                    posRightUnitComboBox.setSelectedItem("px"); //NOI18N
0338:                }
0339:
0340:                String clip = cssStyleData.getProperty(CssProperties.CLIP);
0341:                clipData.setClip(clip);
0342:                clipTopComboBox.setSelectedItem(clipData.getTopValue());
0343:                clipTopUnitComboBox.setSelectedItem(clipData.getTopUnit());
0344:                clipBottomComboBox.setSelectedItem(clipData.getBottomValue());
0345:                clipBottomUnitComboBox
0346:                        .setSelectedItem(clipData.getBottomUnit());
0347:                clipLeftComboBox.setSelectedItem(clipData.getLeftValue());
0348:                clipLeftUnitComboBox.setSelectedItem(clipData.getLeftUnit());
0349:                clipRightComboBox.setSelectedItem(clipData.getRightValue());
0350:                clipRightUnitComboBox.setSelectedItem(clipData.getRightUnit());
0351:
0352:                setCssPropertyChangeListener(cssStyleData);
0353:            }
0354:
0355:            public void initialize() {
0356:                PositionModel positionModel = new PositionModel();
0357:
0358:                // Set the Position Mode to the GUI
0359:                positionModeList = positionModel.getModeList();
0360:                positionModeCombo.setModel(positionModeList);
0361:
0362:                // Set the Position Top to the GUI
0363:                DefaultComboBoxModel posTopList = positionModel
0364:                        .getPositionList();
0365:                posTopComboBox.setModel(posTopList);
0366:                posTopUnitComboBox
0367:                        .setModel(positionModel.getPositionUnitList());
0368:
0369:                // Set the Position Bottom to the GUI
0370:                DefaultComboBoxModel posBottomList = positionModel
0371:                        .getPositionList();
0372:                posBottomComboBox.setModel(posBottomList);
0373:                posBottomUnitComboBox.setModel(positionModel
0374:                        .getPositionUnitList());
0375:
0376:                // Set the Position Left to the GUI
0377:                DefaultComboBoxModel posLeftList = positionModel
0378:                        .getPositionList();
0379:                posLeftComboBox.setModel(posLeftList);
0380:                posLeftUnitComboBox.setModel(positionModel
0381:                        .getPositionUnitList());
0382:
0383:                // Set the Width to the GUI
0384:                DefaultComboBoxModel widthList = positionModel.getSizeList();
0385:                widthComboBox.setModel(widthList);
0386:                widthUnitComboBox.setModel(positionModel.getPositionUnitList());
0387:
0388:                // Set the Height to the GUI
0389:                DefaultComboBoxModel heightList = positionModel.getSizeList();
0390:                heightComboBox.setModel(heightList);
0391:                heightUnitComboBox
0392:                        .setModel(positionModel.getPositionUnitList());
0393:
0394:                // Set the Visibility to the GUI
0395:                DefaultComboBoxModel visibilityList = positionModel
0396:                        .getVisibilityList();
0397:                visibleComboBox.setModel(visibilityList);
0398:
0399:                // Set the Visibility to the GUI
0400:                DefaultComboBoxModel zindexList = positionModel.getZIndexList();
0401:                zindexComboBox.setModel(zindexList);
0402:
0403:                // Set the Position Left to the GUI
0404:                DefaultComboBoxModel posRightList = positionModel
0405:                        .getPositionList();
0406:                posRightComboBox.setModel(posRightList);
0407:                posRightUnitComboBox.setModel(positionModel
0408:                        .getPositionUnitList());
0409:
0410:                ClipModel clipModel = new ClipModel();
0411:
0412:                // Set the Position Top to the GUI
0413:                clipTopComboBox.setModel(clipModel.getClipList());
0414:                clipTopUnitComboBox.setModel(clipModel.getClipUnitList());
0415:                clipBottomComboBox.setModel(clipModel.getClipList());
0416:                clipBottomUnitComboBox.setModel(clipModel.getClipUnitList());
0417:                clipLeftComboBox.setModel(clipModel.getClipList());
0418:                clipLeftUnitComboBox.setModel(clipModel.getClipUnitList());
0419:                clipRightComboBox.setModel(clipModel.getClipList());
0420:                clipRightUnitComboBox.setModel(clipModel.getClipUnitList());
0421:
0422:            }
0423:
0424:            // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
0425:            private void initComponents() {
0426:                java.awt.GridBagConstraints gridBagConstraints;
0427:
0428:                mainPositionPanel = new javax.swing.JPanel();
0429:                clipPanel = new javax.swing.JPanel();
0430:                clipLeftLabel1 = new javax.swing.JLabel();
0431:                clipBottomUnitComboBox = new javax.swing.JComboBox();
0432:                clipLeftUnitComboBox = new javax.swing.JComboBox();
0433:                clipTopLabel1 = new javax.swing.JLabel();
0434:                clipLeftComboBox = new javax.swing.JComboBox();
0435:                clipTopUnitComboBox = new javax.swing.JComboBox();
0436:                clipRightLabel1 = new javax.swing.JLabel();
0437:                clipBottomComboBox = new javax.swing.JComboBox();
0438:                clipRightUnitComboBox = new javax.swing.JComboBox();
0439:                clipBottomLabel = new javax.swing.JLabel();
0440:                clipTopComboBox = new javax.swing.JComboBox();
0441:                clipRightComboBox = new javax.swing.JComboBox();
0442:                jLabel3 = new javax.swing.JLabel();
0443:                positionContainerPanel = new javax.swing.JPanel();
0444:                posTopLabel = new javax.swing.JLabel();
0445:                posTopComboBox = new javax.swing.JComboBox();
0446:                posTopUnitComboBox = new javax.swing.JComboBox();
0447:                posBottomLabel1 = new javax.swing.JLabel();
0448:                posBottomComboBox = new javax.swing.JComboBox();
0449:                posBottomUnitComboBox = new javax.swing.JComboBox();
0450:                posRightLabel = new javax.swing.JLabel();
0451:                posRightComboBox = new javax.swing.JComboBox();
0452:                posRightUnitComboBox = new javax.swing.JComboBox();
0453:                posLeftLabel1 = new javax.swing.JLabel();
0454:                posLeftComboBox = new javax.swing.JComboBox();
0455:                posLeftUnitComboBox = new javax.swing.JComboBox();
0456:                positionModeCombo = new javax.swing.JComboBox();
0457:                positionModeLabel = new javax.swing.JLabel();
0458:                jLabel1 = new javax.swing.JLabel();
0459:                sizeContainerPanel = new javax.swing.JPanel();
0460:                heightLabel = new javax.swing.JLabel();
0461:                heightComboBox = new javax.swing.JComboBox();
0462:                heightUnitComboBox = new javax.swing.JComboBox();
0463:                widthLabel = new javax.swing.JLabel();
0464:                widthComboBox = new javax.swing.JComboBox();
0465:                widthUnitComboBox = new javax.swing.JComboBox();
0466:                visibleLabel1 = new javax.swing.JLabel();
0467:                visibleComboBox = new javax.swing.JComboBox();
0468:                zIndexLabel1 = new javax.swing.JLabel();
0469:                zindexComboBox = new javax.swing.JComboBox();
0470:                jLabel2 = new javax.swing.JLabel();
0471:
0472:                setLayout(new java.awt.BorderLayout());
0473:
0474:                mainPositionPanel.setLayout(new java.awt.GridBagLayout());
0475:
0476:                clipPanel.setBorder(javax.swing.BorderFactory
0477:                        .createEmptyBorder(1, 10, 1, 1));
0478:                clipPanel.setLayout(new java.awt.GridBagLayout());
0479:
0480:                clipLeftLabel1.setDisplayedMnemonic(java.util.ResourceBundle
0481:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0482:                        .getString("MNE_CLIP_LEFT").charAt(0));
0483:                clipLeftLabel1.setLabelFor(clipLeftComboBox);
0484:                clipLeftLabel1.setText(org.openide.util.NbBundle.getMessage(
0485:                        PositionStyleEditor.class, "CLIP_LEFT")); // NOI18N
0486:                gridBagConstraints = new java.awt.GridBagConstraints();
0487:                gridBagConstraints.gridx = 0;
0488:                gridBagConstraints.gridy = 4;
0489:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0490:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0491:                clipPanel.add(clipLeftLabel1, gridBagConstraints);
0492:
0493:                clipBottomUnitComboBox.setEnabled(false);
0494:                clipBottomUnitComboBox
0495:                        .addItemListener(new java.awt.event.ItemListener() {
0496:                            public void itemStateChanged(
0497:                                    java.awt.event.ItemEvent evt) {
0498:                                clipBottomUnitComboBoxItemStateChanged(evt);
0499:                            }
0500:                        });
0501:                gridBagConstraints = new java.awt.GridBagConstraints();
0502:                gridBagConstraints.gridx = 2;
0503:                gridBagConstraints.gridy = 3;
0504:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0505:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0506:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0507:                clipPanel.add(clipBottomUnitComboBox, gridBagConstraints);
0508:                clipBottomUnitComboBox.getAccessibleContext()
0509:                        .setAccessibleName("null");
0510:                clipBottomUnitComboBox.getAccessibleContext()
0511:                        .setAccessibleDescription("null");
0512:
0513:                clipLeftUnitComboBox.setEnabled(false);
0514:                clipLeftUnitComboBox
0515:                        .addItemListener(new java.awt.event.ItemListener() {
0516:                            public void itemStateChanged(
0517:                                    java.awt.event.ItemEvent evt) {
0518:                                clipLeftUnitComboBoxItemStateChanged(evt);
0519:                            }
0520:                        });
0521:                gridBagConstraints = new java.awt.GridBagConstraints();
0522:                gridBagConstraints.gridx = 2;
0523:                gridBagConstraints.gridy = 4;
0524:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0525:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0526:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0527:                clipPanel.add(clipLeftUnitComboBox, gridBagConstraints);
0528:                clipLeftUnitComboBox.getAccessibleContext().setAccessibleName(
0529:                        "null");
0530:                clipLeftUnitComboBox.getAccessibleContext()
0531:                        .setAccessibleDescription("null");
0532:
0533:                clipTopLabel1.setDisplayedMnemonic(java.util.ResourceBundle
0534:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0535:                        .getString("MNE_CLIP_TOP").charAt(0));
0536:                clipTopLabel1.setLabelFor(clipTopComboBox);
0537:                clipTopLabel1.setText(org.openide.util.NbBundle.getMessage(
0538:                        PositionStyleEditor.class, "CLIP_TOP")); // NOI18N
0539:                gridBagConstraints = new java.awt.GridBagConstraints();
0540:                gridBagConstraints.gridx = 0;
0541:                gridBagConstraints.gridy = 1;
0542:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0543:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0544:                clipPanel.add(clipTopLabel1, gridBagConstraints);
0545:
0546:                clipLeftComboBox.setEditable(true);
0547:                clipLeftComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
0548:                clipLeftComboBox.setPreferredSize(new java.awt.Dimension(100,
0549:                        24));
0550:                clipLeftComboBox
0551:                        .addItemListener(new java.awt.event.ItemListener() {
0552:                            public void itemStateChanged(
0553:                                    java.awt.event.ItemEvent evt) {
0554:                                clipLeftComboBoxItemStateChanged(evt);
0555:                            }
0556:                        });
0557:                gridBagConstraints = new java.awt.GridBagConstraints();
0558:                gridBagConstraints.gridx = 1;
0559:                gridBagConstraints.gridy = 4;
0560:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0561:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0562:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0563:                clipPanel.add(clipLeftComboBox, gridBagConstraints);
0564:                clipLeftComboBox.getAccessibleContext().setAccessibleName(
0565:                        "null");
0566:                clipLeftComboBox.getAccessibleContext()
0567:                        .setAccessibleDescription("null");
0568:
0569:                clipTopUnitComboBox.setEnabled(false);
0570:                clipTopUnitComboBox
0571:                        .addItemListener(new java.awt.event.ItemListener() {
0572:                            public void itemStateChanged(
0573:                                    java.awt.event.ItemEvent evt) {
0574:                                clipTopUnitComboBoxItemStateChanged(evt);
0575:                            }
0576:                        });
0577:                gridBagConstraints = new java.awt.GridBagConstraints();
0578:                gridBagConstraints.gridx = 2;
0579:                gridBagConstraints.gridy = 1;
0580:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0581:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0582:                clipPanel.add(clipTopUnitComboBox, gridBagConstraints);
0583:                clipTopUnitComboBox.getAccessibleContext().setAccessibleName(
0584:                        "null");
0585:                clipTopUnitComboBox.getAccessibleContext()
0586:                        .setAccessibleDescription("null");
0587:
0588:                clipRightLabel1.setDisplayedMnemonic(java.util.ResourceBundle
0589:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0590:                        .getString("MNE_CLIP_RIGHT").charAt(0));
0591:                clipRightLabel1.setLabelFor(clipRightComboBox);
0592:                clipRightLabel1.setText(org.openide.util.NbBundle.getMessage(
0593:                        PositionStyleEditor.class, "CLIP_RIGHT")); // NOI18N
0594:                gridBagConstraints = new java.awt.GridBagConstraints();
0595:                gridBagConstraints.gridx = 0;
0596:                gridBagConstraints.gridy = 2;
0597:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0598:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0599:                clipPanel.add(clipRightLabel1, gridBagConstraints);
0600:
0601:                clipBottomComboBox.setEditable(true);
0602:                clipBottomComboBox
0603:                        .setMinimumSize(new java.awt.Dimension(60, 24));
0604:                clipBottomComboBox.setPreferredSize(new java.awt.Dimension(100,
0605:                        24));
0606:                clipBottomComboBox
0607:                        .addItemListener(new java.awt.event.ItemListener() {
0608:                            public void itemStateChanged(
0609:                                    java.awt.event.ItemEvent evt) {
0610:                                clipBottomComboBoxItemStateChanged(evt);
0611:                            }
0612:                        });
0613:                gridBagConstraints = new java.awt.GridBagConstraints();
0614:                gridBagConstraints.gridx = 1;
0615:                gridBagConstraints.gridy = 3;
0616:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0617:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0618:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0619:                clipPanel.add(clipBottomComboBox, gridBagConstraints);
0620:                clipBottomComboBox.getAccessibleContext().setAccessibleName(
0621:                        "null");
0622:                clipBottomComboBox.getAccessibleContext()
0623:                        .setAccessibleDescription("null");
0624:
0625:                clipRightUnitComboBox.setEnabled(false);
0626:                clipRightUnitComboBox
0627:                        .addItemListener(new java.awt.event.ItemListener() {
0628:                            public void itemStateChanged(
0629:                                    java.awt.event.ItemEvent evt) {
0630:                                clipRightUnitComboBoxItemStateChanged(evt);
0631:                            }
0632:                        });
0633:                gridBagConstraints = new java.awt.GridBagConstraints();
0634:                gridBagConstraints.gridx = 2;
0635:                gridBagConstraints.gridy = 2;
0636:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0637:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0638:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0639:                clipPanel.add(clipRightUnitComboBox, gridBagConstraints);
0640:                clipRightUnitComboBox.getAccessibleContext().setAccessibleName(
0641:                        "null");
0642:                clipRightUnitComboBox.getAccessibleContext()
0643:                        .setAccessibleDescription("null");
0644:
0645:                clipBottomLabel.setDisplayedMnemonic(java.util.ResourceBundle
0646:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0647:                        .getString("MNE_CLIP_BOTTOM").charAt(0));
0648:                clipBottomLabel.setLabelFor(clipBottomComboBox);
0649:                clipBottomLabel.setText(org.openide.util.NbBundle.getMessage(
0650:                        PositionStyleEditor.class, "CLIP_BOTTOM")); // NOI18N
0651:                gridBagConstraints = new java.awt.GridBagConstraints();
0652:                gridBagConstraints.gridx = 0;
0653:                gridBagConstraints.gridy = 3;
0654:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0655:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0656:                clipPanel.add(clipBottomLabel, gridBagConstraints);
0657:
0658:                clipTopComboBox.setEditable(true);
0659:                clipTopComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
0660:                clipTopComboBox
0661:                        .setPreferredSize(new java.awt.Dimension(100, 24));
0662:                clipTopComboBox
0663:                        .addItemListener(new java.awt.event.ItemListener() {
0664:                            public void itemStateChanged(
0665:                                    java.awt.event.ItemEvent evt) {
0666:                                clipTopComboBoxItemStateChanged(evt);
0667:                            }
0668:                        });
0669:                gridBagConstraints = new java.awt.GridBagConstraints();
0670:                gridBagConstraints.gridx = 1;
0671:                gridBagConstraints.gridy = 1;
0672:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0673:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0674:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0675:                clipPanel.add(clipTopComboBox, gridBagConstraints);
0676:                clipTopComboBox.getAccessibleContext()
0677:                        .setAccessibleName("null");
0678:                clipTopComboBox.getAccessibleContext()
0679:                        .setAccessibleDescription("null");
0680:
0681:                clipRightComboBox.setEditable(true);
0682:                clipRightComboBox
0683:                        .setMinimumSize(new java.awt.Dimension(60, 24));
0684:                clipRightComboBox.setPreferredSize(new java.awt.Dimension(100,
0685:                        24));
0686:                clipRightComboBox
0687:                        .addItemListener(new java.awt.event.ItemListener() {
0688:                            public void itemStateChanged(
0689:                                    java.awt.event.ItemEvent evt) {
0690:                                clipRightComboBoxItemStateChanged(evt);
0691:                            }
0692:                        });
0693:                gridBagConstraints = new java.awt.GridBagConstraints();
0694:                gridBagConstraints.gridx = 1;
0695:                gridBagConstraints.gridy = 2;
0696:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0697:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0698:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0699:                clipPanel.add(clipRightComboBox, gridBagConstraints);
0700:                clipRightComboBox.getAccessibleContext().setAccessibleName(
0701:                        "null");
0702:                clipRightComboBox.getAccessibleContext()
0703:                        .setAccessibleDescription("null");
0704:
0705:                jLabel3.setText(org.openide.util.NbBundle.getMessage(
0706:                        PositionStyleEditor.class, "CLIP_TITLE")); // NOI18N
0707:                gridBagConstraints = new java.awt.GridBagConstraints();
0708:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0709:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0710:                clipPanel.add(jLabel3, gridBagConstraints);
0711:
0712:                gridBagConstraints = new java.awt.GridBagConstraints();
0713:                gridBagConstraints.gridx = 2;
0714:                gridBagConstraints.gridy = 0;
0715:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
0716:                mainPositionPanel.add(clipPanel, gridBagConstraints);
0717:
0718:                positionContainerPanel.setBorder(javax.swing.BorderFactory
0719:                        .createEmptyBorder(1, 1, 1, 1));
0720:                positionContainerPanel.setLayout(new java.awt.GridBagLayout());
0721:
0722:                posTopLabel.setDisplayedMnemonic(java.util.ResourceBundle
0723:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0724:                        .getString("MNE_POSITION_TOP").charAt(0));
0725:                posTopLabel.setLabelFor(posTopComboBox);
0726:                posTopLabel.setText(org.openide.util.NbBundle.getMessage(
0727:                        PositionStyleEditor.class, "POSITION_TOP")); // NOI18N
0728:                gridBagConstraints = new java.awt.GridBagConstraints();
0729:                gridBagConstraints.gridx = 0;
0730:                gridBagConstraints.gridy = 2;
0731:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0732:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0733:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0734:                positionContainerPanel.add(posTopLabel, gridBagConstraints);
0735:
0736:                posTopComboBox.setEditable(true);
0737:                posTopComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
0738:                posTopComboBox.setPreferredSize(new java.awt.Dimension(60, 24));
0739:                posTopComboBox
0740:                        .addItemListener(new java.awt.event.ItemListener() {
0741:                            public void itemStateChanged(
0742:                                    java.awt.event.ItemEvent evt) {
0743:                                posTopComboBoxItemStateChanged(evt);
0744:                            }
0745:                        });
0746:                gridBagConstraints = new java.awt.GridBagConstraints();
0747:                gridBagConstraints.gridx = 1;
0748:                gridBagConstraints.gridy = 2;
0749:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0750:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0751:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0752:                positionContainerPanel.add(posTopComboBox, gridBagConstraints);
0753:                posTopComboBox.getAccessibleContext().setAccessibleName("null");
0754:                posTopComboBox.getAccessibleContext().setAccessibleDescription(
0755:                        "null");
0756:
0757:                posTopUnitComboBox.setEnabled(false);
0758:                posTopUnitComboBox
0759:                        .addItemListener(new java.awt.event.ItemListener() {
0760:                            public void itemStateChanged(
0761:                                    java.awt.event.ItemEvent evt) {
0762:                                posTopUnitComboBoxItemStateChanged(evt);
0763:                            }
0764:                        });
0765:                gridBagConstraints = new java.awt.GridBagConstraints();
0766:                gridBagConstraints.gridx = 2;
0767:                gridBagConstraints.gridy = 2;
0768:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0769:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0770:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0771:                positionContainerPanel.add(posTopUnitComboBox,
0772:                        gridBagConstraints);
0773:                posTopUnitComboBox.getAccessibleContext().setAccessibleName(
0774:                        "null");
0775:                posTopUnitComboBox.getAccessibleContext()
0776:                        .setAccessibleDescription("null");
0777:
0778:                posBottomLabel1.setDisplayedMnemonic(java.util.ResourceBundle
0779:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0780:                        .getString("MNE_POSITION_BOTTOM").charAt(0));
0781:                posBottomLabel1.setLabelFor(posBottomComboBox);
0782:                posBottomLabel1.setText(org.openide.util.NbBundle.getMessage(
0783:                        PositionStyleEditor.class, "POSITION_BOTTOM")); // NOI18N
0784:                gridBagConstraints = new java.awt.GridBagConstraints();
0785:                gridBagConstraints.gridx = 0;
0786:                gridBagConstraints.gridy = 4;
0787:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0788:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0789:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0790:                positionContainerPanel.add(posBottomLabel1, gridBagConstraints);
0791:
0792:                posBottomComboBox.setEditable(true);
0793:                posBottomComboBox
0794:                        .setMinimumSize(new java.awt.Dimension(60, 24));
0795:                posBottomComboBox.setPreferredSize(new java.awt.Dimension(60,
0796:                        24));
0797:                posBottomComboBox
0798:                        .addItemListener(new java.awt.event.ItemListener() {
0799:                            public void itemStateChanged(
0800:                                    java.awt.event.ItemEvent evt) {
0801:                                posBottomComboBoxItemStateChanged(evt);
0802:                            }
0803:                        });
0804:                gridBagConstraints = new java.awt.GridBagConstraints();
0805:                gridBagConstraints.gridx = 1;
0806:                gridBagConstraints.gridy = 4;
0807:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0808:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0809:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0810:                positionContainerPanel.add(posBottomComboBox,
0811:                        gridBagConstraints);
0812:                posBottomComboBox.getAccessibleContext().setAccessibleName(
0813:                        "null");
0814:                posBottomComboBox.getAccessibleContext()
0815:                        .setAccessibleDescription("null");
0816:
0817:                posBottomUnitComboBox.setEnabled(false);
0818:                posBottomUnitComboBox
0819:                        .addItemListener(new java.awt.event.ItemListener() {
0820:                            public void itemStateChanged(
0821:                                    java.awt.event.ItemEvent evt) {
0822:                                posBottomUnitComboBoxItemStateChanged(evt);
0823:                            }
0824:                        });
0825:                gridBagConstraints = new java.awt.GridBagConstraints();
0826:                gridBagConstraints.gridx = 2;
0827:                gridBagConstraints.gridy = 4;
0828:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0829:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0830:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0831:                positionContainerPanel.add(posBottomUnitComboBox,
0832:                        gridBagConstraints);
0833:                posBottomUnitComboBox.getAccessibleContext().setAccessibleName(
0834:                        "null");
0835:                posBottomUnitComboBox.getAccessibleContext()
0836:                        .setAccessibleDescription("null");
0837:
0838:                posRightLabel.setDisplayedMnemonic(java.util.ResourceBundle
0839:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0840:                        .getString("MNE_POSITION_RIGHT").charAt(0));
0841:                posRightLabel.setLabelFor(posRightComboBox);
0842:                posRightLabel.setText(org.openide.util.NbBundle.getMessage(
0843:                        PositionStyleEditor.class, "POSITION_RIGHT")); // NOI18N
0844:                gridBagConstraints = new java.awt.GridBagConstraints();
0845:                gridBagConstraints.gridx = 0;
0846:                gridBagConstraints.gridy = 3;
0847:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0848:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0849:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0850:                positionContainerPanel.add(posRightLabel, gridBagConstraints);
0851:
0852:                posRightComboBox.setEditable(true);
0853:                posRightComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
0854:                posRightComboBox
0855:                        .setPreferredSize(new java.awt.Dimension(60, 24));
0856:                posRightComboBox
0857:                        .addItemListener(new java.awt.event.ItemListener() {
0858:                            public void itemStateChanged(
0859:                                    java.awt.event.ItemEvent evt) {
0860:                                posRightComboBoxItemStateChanged(evt);
0861:                            }
0862:                        });
0863:                gridBagConstraints = new java.awt.GridBagConstraints();
0864:                gridBagConstraints.gridx = 1;
0865:                gridBagConstraints.gridy = 3;
0866:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0867:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0868:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0869:                positionContainerPanel
0870:                        .add(posRightComboBox, gridBagConstraints);
0871:                posRightComboBox.getAccessibleContext().setAccessibleName(
0872:                        "null");
0873:                posRightComboBox.getAccessibleContext()
0874:                        .setAccessibleDescription("null");
0875:
0876:                posRightUnitComboBox.setEnabled(false);
0877:                posRightUnitComboBox
0878:                        .addItemListener(new java.awt.event.ItemListener() {
0879:                            public void itemStateChanged(
0880:                                    java.awt.event.ItemEvent evt) {
0881:                                posRightUnitComboBoxItemStateChanged(evt);
0882:                            }
0883:                        });
0884:                gridBagConstraints = new java.awt.GridBagConstraints();
0885:                gridBagConstraints.gridx = 2;
0886:                gridBagConstraints.gridy = 3;
0887:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0888:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0889:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0890:                positionContainerPanel.add(posRightUnitComboBox,
0891:                        gridBagConstraints);
0892:                posRightUnitComboBox.getAccessibleContext().setAccessibleName(
0893:                        "null");
0894:                posRightUnitComboBox.getAccessibleContext()
0895:                        .setAccessibleDescription("null");
0896:
0897:                posLeftLabel1.setDisplayedMnemonic(java.util.ResourceBundle
0898:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0899:                        .getString("MNE_POSITION_LEFT").charAt(0));
0900:                posLeftLabel1.setLabelFor(posLeftComboBox);
0901:                posLeftLabel1.setText(org.openide.util.NbBundle.getMessage(
0902:                        PositionStyleEditor.class, "POSITION_LEFT")); // NOI18N
0903:                gridBagConstraints = new java.awt.GridBagConstraints();
0904:                gridBagConstraints.gridx = 0;
0905:                gridBagConstraints.gridy = 5;
0906:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0907:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0908:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0909:                positionContainerPanel.add(posLeftLabel1, gridBagConstraints);
0910:
0911:                posLeftComboBox.setEditable(true);
0912:                posLeftComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
0913:                posLeftComboBox
0914:                        .setPreferredSize(new java.awt.Dimension(60, 24));
0915:                posLeftComboBox
0916:                        .addItemListener(new java.awt.event.ItemListener() {
0917:                            public void itemStateChanged(
0918:                                    java.awt.event.ItemEvent evt) {
0919:                                posLeftComboBoxItemStateChanged(evt);
0920:                            }
0921:                        });
0922:                gridBagConstraints = new java.awt.GridBagConstraints();
0923:                gridBagConstraints.gridx = 1;
0924:                gridBagConstraints.gridy = 5;
0925:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0926:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0927:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0928:                positionContainerPanel.add(posLeftComboBox, gridBagConstraints);
0929:                posLeftComboBox.getAccessibleContext()
0930:                        .setAccessibleName("null");
0931:                posLeftComboBox.getAccessibleContext()
0932:                        .setAccessibleDescription("null");
0933:
0934:                posLeftUnitComboBox.setEnabled(false);
0935:                posLeftUnitComboBox
0936:                        .addItemListener(new java.awt.event.ItemListener() {
0937:                            public void itemStateChanged(
0938:                                    java.awt.event.ItemEvent evt) {
0939:                                posLeftUnitComboBoxItemStateChanged(evt);
0940:                            }
0941:                        });
0942:                gridBagConstraints = new java.awt.GridBagConstraints();
0943:                gridBagConstraints.gridx = 2;
0944:                gridBagConstraints.gridy = 5;
0945:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0946:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0947:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0948:                positionContainerPanel.add(posLeftUnitComboBox,
0949:                        gridBagConstraints);
0950:                posLeftUnitComboBox.getAccessibleContext().setAccessibleName(
0951:                        "null");
0952:                posLeftUnitComboBox.getAccessibleContext()
0953:                        .setAccessibleDescription("null");
0954:
0955:                positionModeCombo.setMinimumSize(null);
0956:                positionModeCombo.setPreferredSize(null);
0957:                positionModeCombo
0958:                        .addItemListener(new java.awt.event.ItemListener() {
0959:                            public void itemStateChanged(
0960:                                    java.awt.event.ItemEvent evt) {
0961:                                positionModeComboItemStateChanged(evt);
0962:                            }
0963:                        });
0964:                gridBagConstraints = new java.awt.GridBagConstraints();
0965:                gridBagConstraints.gridx = 1;
0966:                gridBagConstraints.gridy = 1;
0967:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0968:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
0969:                positionContainerPanel.add(positionModeCombo,
0970:                        gridBagConstraints);
0971:                positionModeCombo.getAccessibleContext().setAccessibleName(
0972:                        "null");
0973:                positionModeCombo.getAccessibleContext()
0974:                        .setAccessibleDescription("null");
0975:
0976:                positionModeLabel.setDisplayedMnemonic(java.util.ResourceBundle
0977:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
0978:                        .getString("MNE_POSITION_MODE").charAt(0));
0979:                positionModeLabel.setLabelFor(positionModeCombo);
0980:                positionModeLabel.setText(org.openide.util.NbBundle.getMessage(
0981:                        PositionStyleEditor.class, "POSITION_MODE")); // NOI18N
0982:                gridBagConstraints = new java.awt.GridBagConstraints();
0983:                gridBagConstraints.gridx = 0;
0984:                gridBagConstraints.gridy = 1;
0985:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0986:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0987:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0988:                positionContainerPanel.add(positionModeLabel,
0989:                        gridBagConstraints);
0990:
0991:                org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
0992:                        org.openide.util.NbBundle.getMessage(
0993:                                PositionStyleEditor.class, "POISTION_TITLE")); // NOI18N
0994:                gridBagConstraints = new java.awt.GridBagConstraints();
0995:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
0996:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
0997:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
0998:                positionContainerPanel.add(jLabel1, gridBagConstraints);
0999:
1000:                gridBagConstraints = new java.awt.GridBagConstraints();
1001:                gridBagConstraints.gridx = 0;
1002:                gridBagConstraints.gridy = 0;
1003:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
1004:                mainPositionPanel.add(positionContainerPanel,
1005:                        gridBagConstraints);
1006:
1007:                sizeContainerPanel.setBorder(javax.swing.BorderFactory
1008:                        .createEmptyBorder(1, 10, 1, 1));
1009:                sizeContainerPanel.setLayout(new java.awt.GridBagLayout());
1010:
1011:                heightLabel.setDisplayedMnemonic(java.util.ResourceBundle
1012:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
1013:                        .getString("MNE_POSITION_HEIGHT").charAt(0));
1014:                heightLabel.setLabelFor(heightComboBox);
1015:                heightLabel.setText(org.openide.util.NbBundle.getMessage(
1016:                        PositionStyleEditor.class, "POSITION_HEIGHT")); // NOI18N
1017:                gridBagConstraints = new java.awt.GridBagConstraints();
1018:                gridBagConstraints.gridx = 0;
1019:                gridBagConstraints.gridy = 2;
1020:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1021:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1022:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
1023:                sizeContainerPanel.add(heightLabel, gridBagConstraints);
1024:
1025:                heightComboBox.setEditable(true);
1026:                heightComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
1027:                heightComboBox
1028:                        .setPreferredSize(new java.awt.Dimension(100, 24));
1029:                heightComboBox
1030:                        .addItemListener(new java.awt.event.ItemListener() {
1031:                            public void itemStateChanged(
1032:                                    java.awt.event.ItemEvent evt) {
1033:                                heightComboBoxItemStateChanged(evt);
1034:                            }
1035:                        });
1036:                gridBagConstraints = new java.awt.GridBagConstraints();
1037:                gridBagConstraints.gridx = 1;
1038:                gridBagConstraints.gridy = 2;
1039:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1040:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1041:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1042:                sizeContainerPanel.add(heightComboBox, gridBagConstraints);
1043:                heightComboBox.getAccessibleContext().setAccessibleName("null");
1044:                heightComboBox.getAccessibleContext().setAccessibleDescription(
1045:                        "null");
1046:
1047:                heightUnitComboBox.setEnabled(false);
1048:                heightUnitComboBox
1049:                        .addItemListener(new java.awt.event.ItemListener() {
1050:                            public void itemStateChanged(
1051:                                    java.awt.event.ItemEvent evt) {
1052:                                heightUnitComboBoxItemStateChanged(evt);
1053:                            }
1054:                        });
1055:                gridBagConstraints = new java.awt.GridBagConstraints();
1056:                gridBagConstraints.gridx = 2;
1057:                gridBagConstraints.gridy = 2;
1058:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1059:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1060:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1061:                sizeContainerPanel.add(heightUnitComboBox, gridBagConstraints);
1062:                heightUnitComboBox.getAccessibleContext().setAccessibleName(
1063:                        "null");
1064:                heightUnitComboBox.getAccessibleContext()
1065:                        .setAccessibleDescription("null");
1066:
1067:                widthLabel.setDisplayedMnemonic(java.util.ResourceBundle
1068:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
1069:                        .getString("MNE_POSITION_WIDTH").charAt(0));
1070:                widthLabel.setLabelFor(widthComboBox);
1071:                widthLabel.setText(org.openide.util.NbBundle.getMessage(
1072:                        PositionStyleEditor.class, "POSITION_WIDTH")); // NOI18N
1073:                gridBagConstraints = new java.awt.GridBagConstraints();
1074:                gridBagConstraints.gridx = 0;
1075:                gridBagConstraints.gridy = 1;
1076:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1077:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1078:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
1079:                sizeContainerPanel.add(widthLabel, gridBagConstraints);
1080:
1081:                widthComboBox.setEditable(true);
1082:                widthComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
1083:                widthComboBox.setPreferredSize(new java.awt.Dimension(100, 24));
1084:                widthComboBox
1085:                        .addItemListener(new java.awt.event.ItemListener() {
1086:                            public void itemStateChanged(
1087:                                    java.awt.event.ItemEvent evt) {
1088:                                widthComboBoxItemStateChanged(evt);
1089:                            }
1090:                        });
1091:                gridBagConstraints = new java.awt.GridBagConstraints();
1092:                gridBagConstraints.gridx = 1;
1093:                gridBagConstraints.gridy = 1;
1094:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1095:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1096:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1097:                sizeContainerPanel.add(widthComboBox, gridBagConstraints);
1098:                widthComboBox.getAccessibleContext().setAccessibleName("null");
1099:                widthComboBox.getAccessibleContext().setAccessibleDescription(
1100:                        "null");
1101:
1102:                widthUnitComboBox.setEnabled(false);
1103:                widthUnitComboBox
1104:                        .addItemListener(new java.awt.event.ItemListener() {
1105:                            public void itemStateChanged(
1106:                                    java.awt.event.ItemEvent evt) {
1107:                                widthUnitComboBoxItemStateChanged(evt);
1108:                            }
1109:                        });
1110:                gridBagConstraints = new java.awt.GridBagConstraints();
1111:                gridBagConstraints.gridx = 2;
1112:                gridBagConstraints.gridy = 1;
1113:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1114:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1115:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1116:                sizeContainerPanel.add(widthUnitComboBox, gridBagConstraints);
1117:                widthUnitComboBox.getAccessibleContext().setAccessibleName(
1118:                        "null");
1119:                widthUnitComboBox.getAccessibleContext()
1120:                        .setAccessibleDescription("null");
1121:
1122:                visibleLabel1.setDisplayedMnemonic(java.util.ResourceBundle
1123:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
1124:                        .getString("MNE_VISIBILITY").charAt(0));
1125:                visibleLabel1.setLabelFor(visibleComboBox);
1126:                visibleLabel1.setText(org.openide.util.NbBundle.getMessage(
1127:                        PositionStyleEditor.class, "VISIBILITY")); // NOI18N
1128:                gridBagConstraints = new java.awt.GridBagConstraints();
1129:                gridBagConstraints.gridx = 0;
1130:                gridBagConstraints.gridy = 3;
1131:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1132:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1133:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
1134:                sizeContainerPanel.add(visibleLabel1, gridBagConstraints);
1135:
1136:                visibleComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
1137:                visibleComboBox
1138:                        .setPreferredSize(new java.awt.Dimension(100, 24));
1139:                visibleComboBox
1140:                        .addItemListener(new java.awt.event.ItemListener() {
1141:                            public void itemStateChanged(
1142:                                    java.awt.event.ItemEvent evt) {
1143:                                visibleComboBoxItemStateChanged(evt);
1144:                            }
1145:                        });
1146:                gridBagConstraints = new java.awt.GridBagConstraints();
1147:                gridBagConstraints.gridx = 1;
1148:                gridBagConstraints.gridy = 3;
1149:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1150:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1151:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1152:                sizeContainerPanel.add(visibleComboBox, gridBagConstraints);
1153:                visibleComboBox.getAccessibleContext()
1154:                        .setAccessibleName("null");
1155:                visibleComboBox.getAccessibleContext()
1156:                        .setAccessibleDescription("null");
1157:
1158:                zIndexLabel1.setDisplayedMnemonic(java.util.ResourceBundle
1159:                        .getBundle("org/netbeans/modules/css/visual/ui/Bundle")
1160:                        .getString("MNE_Z_INDEX").charAt(0));
1161:                zIndexLabel1.setLabelFor(zindexComboBox);
1162:                zIndexLabel1.setText(org.openide.util.NbBundle.getMessage(
1163:                        PositionStyleEditor.class, "Z_INDEX")); // NOI18N
1164:                gridBagConstraints = new java.awt.GridBagConstraints();
1165:                gridBagConstraints.gridx = 0;
1166:                gridBagConstraints.gridy = 4;
1167:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1168:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1169:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
1170:                sizeContainerPanel.add(zIndexLabel1, gridBagConstraints);
1171:
1172:                zindexComboBox.setEditable(true);
1173:                zindexComboBox.setMinimumSize(new java.awt.Dimension(60, 24));
1174:                zindexComboBox
1175:                        .setPreferredSize(new java.awt.Dimension(100, 24));
1176:                zindexComboBox
1177:                        .addItemListener(new java.awt.event.ItemListener() {
1178:                            public void itemStateChanged(
1179:                                    java.awt.event.ItemEvent evt) {
1180:                                zindexComboBoxItemStateChanged(evt);
1181:                            }
1182:                        });
1183:                gridBagConstraints = new java.awt.GridBagConstraints();
1184:                gridBagConstraints.gridx = 1;
1185:                gridBagConstraints.gridy = 4;
1186:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1187:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1188:                gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
1189:                sizeContainerPanel.add(zindexComboBox, gridBagConstraints);
1190:                zindexComboBox.getAccessibleContext().setAccessibleName("null");
1191:                zindexComboBox.getAccessibleContext().setAccessibleDescription(
1192:                        "null");
1193:
1194:                jLabel2.setText(org.openide.util.NbBundle.getMessage(
1195:                        PositionStyleEditor.class, "SIZE_TITLE")); // NOI18N
1196:                gridBagConstraints = new java.awt.GridBagConstraints();
1197:                gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1198:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1199:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
1200:                sizeContainerPanel.add(jLabel2, gridBagConstraints);
1201:
1202:                gridBagConstraints = new java.awt.GridBagConstraints();
1203:                gridBagConstraints.gridx = 1;
1204:                gridBagConstraints.gridy = 0;
1205:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
1206:                mainPositionPanel.add(sizeContainerPanel, gridBagConstraints);
1207:
1208:                add(mainPositionPanel, java.awt.BorderLayout.NORTH);
1209:            }// </editor-fold>//GEN-END:initComponents
1210:
1211:            private void clipLeftUnitComboBoxItemStateChanged(
1212:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipLeftUnitComboBoxItemStateChanged
1213:                if (evt.getStateChange() != evt.DESELECTED) {
1214:                    clipData.setLeftUnit(clipLeftUnitComboBox.getSelectedItem()
1215:                            .toString());
1216:                    cssPropertyChangeSupport().firePropertyChange(
1217:                            CssProperties.CLIP, null, clipData.toString());
1218:                }
1219:            }//GEN-LAST:event_clipLeftUnitComboBoxItemStateChanged
1220:
1221:            private void clipLeftComboBoxItemStateChanged(
1222:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipLeftComboBoxItemStateChanged
1223:                if (evt.getStateChange() != evt.DESELECTED) {
1224:                    clipData.setLeft(clipLeftComboBox.getSelectedItem()
1225:                            .toString());
1226:                    clipLeftUnitComboBox.setEnabled(clipData
1227:                            .isLeftValueInteger());
1228:                    cssPropertyChangeSupport().firePropertyChange(
1229:                            CssProperties.CLIP, null, clipData.toString());
1230:                }
1231:            }//GEN-LAST:event_clipLeftComboBoxItemStateChanged
1232:
1233:            private void clipBottomUnitComboBoxItemStateChanged(
1234:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipBottomUnitComboBoxItemStateChanged
1235:                if (evt.getStateChange() != evt.DESELECTED) {
1236:                    clipData.setBottomUnit(clipBottomUnitComboBox
1237:                            .getSelectedItem().toString());
1238:                    cssPropertyChangeSupport().firePropertyChange(
1239:                            CssProperties.CLIP, null, clipData.toString());
1240:                }
1241:            }//GEN-LAST:event_clipBottomUnitComboBoxItemStateChanged
1242:
1243:            private void clipBottomComboBoxItemStateChanged(
1244:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipBottomComboBoxItemStateChanged
1245:                if (evt.getStateChange() != evt.DESELECTED) {
1246:                    clipData.setBottom(clipBottomComboBox.getSelectedItem()
1247:                            .toString());
1248:                    clipBottomUnitComboBox.setEnabled(clipData
1249:                            .isBottomValueInteger());
1250:                    cssPropertyChangeSupport().firePropertyChange(
1251:                            CssProperties.CLIP, null, clipData.toString());
1252:                }
1253:            }//GEN-LAST:event_clipBottomComboBoxItemStateChanged
1254:
1255:            private void clipRightUnitComboBoxItemStateChanged(
1256:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipRightUnitComboBoxItemStateChanged
1257:                if (evt.getStateChange() != evt.DESELECTED) {
1258:                    clipData.setRightUnit(clipRightUnitComboBox
1259:                            .getSelectedItem().toString());
1260:                    cssPropertyChangeSupport().firePropertyChange(
1261:                            CssProperties.CLIP, null, clipData.toString());
1262:                }
1263:            }//GEN-LAST:event_clipRightUnitComboBoxItemStateChanged
1264:
1265:            private void clipRightComboBoxItemStateChanged(
1266:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipRightComboBoxItemStateChanged
1267:                if (evt.getStateChange() != evt.DESELECTED) {
1268:                    clipData.setRight(clipRightComboBox.getSelectedItem()
1269:                            .toString());
1270:                    clipRightUnitComboBox.setEnabled(clipData
1271:                            .isRightValueInteger());
1272:                    cssPropertyChangeSupport().firePropertyChange(
1273:                            CssProperties.CLIP, null, clipData.toString());
1274:                }
1275:            }//GEN-LAST:event_clipRightComboBoxItemStateChanged
1276:
1277:            private void clipTopUnitComboBoxItemStateChanged(
1278:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipTopUnitComboBoxItemStateChanged
1279:                if (evt.getStateChange() != evt.DESELECTED) {
1280:                    clipData.setTopUnit(clipTopUnitComboBox.getSelectedItem()
1281:                            .toString());
1282:                    cssPropertyChangeSupport().firePropertyChange(
1283:                            CssProperties.CLIP, null, clipData.toString());
1284:                }
1285:            }//GEN-LAST:event_clipTopUnitComboBoxItemStateChanged
1286:
1287:            private void clipTopComboBoxItemStateChanged(
1288:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_clipTopComboBoxItemStateChanged
1289:                if (evt.getStateChange() != evt.DESELECTED) {
1290:                    clipData.setTop(clipTopComboBox.getSelectedItem()
1291:                            .toString());
1292:                    clipTopUnitComboBox
1293:                            .setEnabled(clipData.isTopValueInteger());
1294:                    cssPropertyChangeSupport().firePropertyChange(
1295:                            CssProperties.CLIP, null, clipData.toString());
1296:                }
1297:            }//GEN-LAST:event_clipTopComboBoxItemStateChanged
1298:
1299:            private void zindexComboBoxItemStateChanged(
1300:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_zindexComboBoxItemStateChanged
1301:                if (evt.getStateChange() != evt.DESELECTED) {
1302:                    setZindex();
1303:                }
1304:            }//GEN-LAST:event_zindexComboBoxItemStateChanged
1305:
1306:            private void visibleComboBoxItemStateChanged(
1307:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_visibleComboBoxItemStateChanged
1308:                if (evt.getStateChange() != evt.DESELECTED) {
1309:                    setVisibility();
1310:                }
1311:            }//GEN-LAST:event_visibleComboBoxItemStateChanged
1312:
1313:            private void heightUnitComboBoxItemStateChanged(
1314:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_heightUnitComboBoxItemStateChanged
1315:                if (evt.getStateChange() != evt.DESELECTED) {
1316:                    setHeight();
1317:                }
1318:            }//GEN-LAST:event_heightUnitComboBoxItemStateChanged
1319:
1320:            private void heightComboBoxItemStateChanged(
1321:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_heightComboBoxItemStateChanged
1322:                if (evt.getStateChange() != evt.DESELECTED) {
1323:                    setHeight();
1324:                }
1325:            }//GEN-LAST:event_heightComboBoxItemStateChanged
1326:
1327:            private void widthComboBoxItemStateChanged(
1328:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_widthComboBoxItemStateChanged
1329:                if (evt.getStateChange() != evt.DESELECTED) {
1330:                    setWidth();
1331:                }
1332:            }//GEN-LAST:event_widthComboBoxItemStateChanged
1333:
1334:            private void widthUnitComboBoxItemStateChanged(
1335:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_widthUnitComboBoxItemStateChanged
1336:                if (evt.getStateChange() != evt.DESELECTED) {
1337:                    setWidth();
1338:                }
1339:            }//GEN-LAST:event_widthUnitComboBoxItemStateChanged
1340:
1341:            private void posRightUnitComboBoxItemStateChanged(
1342:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posRightUnitComboBoxItemStateChanged
1343:                if (evt.getStateChange() != evt.DESELECTED) {
1344:                    setRightPos();
1345:                }
1346:            }//GEN-LAST:event_posRightUnitComboBoxItemStateChanged
1347:
1348:            private void posRightComboBoxItemStateChanged(
1349:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posRightComboBoxItemStateChanged
1350:                if (evt.getStateChange() != evt.DESELECTED) {
1351:                    setRightPos();
1352:                }
1353:            }//GEN-LAST:event_posRightComboBoxItemStateChanged
1354:
1355:            private void posLeftUnitComboBoxItemStateChanged(
1356:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posLeftUnitComboBoxItemStateChanged
1357:                if (evt.getStateChange() != evt.DESELECTED) {
1358:                    setLeftPos();
1359:                }
1360:            }//GEN-LAST:event_posLeftUnitComboBoxItemStateChanged
1361:
1362:            private void posLeftComboBoxItemStateChanged(
1363:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posLeftComboBoxItemStateChanged
1364:                if (evt.getStateChange() != evt.DESELECTED) {
1365:                    setLeftPos();
1366:                }
1367:            }//GEN-LAST:event_posLeftComboBoxItemStateChanged
1368:
1369:            private void posBottomUnitComboBoxItemStateChanged(
1370:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posBottomUnitComboBoxItemStateChanged
1371:                if (evt.getStateChange() != evt.DESELECTED) {
1372:                    setBottomPos();
1373:                }
1374:            }//GEN-LAST:event_posBottomUnitComboBoxItemStateChanged
1375:
1376:            private void posBottomComboBoxItemStateChanged(
1377:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posBottomComboBoxItemStateChanged
1378:                if (evt.getStateChange() != evt.DESELECTED) {
1379:                    setBottomPos();
1380:                }
1381:            }//GEN-LAST:event_posBottomComboBoxItemStateChanged
1382:
1383:            private void posTopUnitComboBoxItemStateChanged(
1384:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posTopUnitComboBoxItemStateChanged
1385:                if (evt.getStateChange() != evt.DESELECTED) {
1386:                    setTopPos();
1387:                }
1388:            }//GEN-LAST:event_posTopUnitComboBoxItemStateChanged
1389:
1390:            private void posTopComboBoxItemStateChanged(
1391:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_posTopComboBoxItemStateChanged
1392:                if (evt.getStateChange() != evt.DESELECTED) {
1393:                    setTopPos();
1394:                }
1395:            }//GEN-LAST:event_posTopComboBoxItemStateChanged
1396:
1397:            private void positionModeComboItemStateChanged(
1398:                    java.awt.event.ItemEvent evt) {//GEN-FIRST:event_positionModeComboItemStateChanged
1399:                if (evt.getStateChange() != evt.DESELECTED) {
1400:                    setPosition();
1401:                }
1402:            }//GEN-LAST:event_positionModeComboItemStateChanged
1403:
1404:            private void setZindex() {
1405:                PropertyData zindexData = new PropertyData();
1406:                zindexData
1407:                        .setValue(zindexComboBox.getSelectedItem().toString());
1408:                cssPropertyChangeSupport().firePropertyChange(
1409:                        CssProperties.Z_INDEX, null, zindexData.toString());
1410:            }
1411:
1412:            public void setVisibility() {
1413:                PropertyData visibleData = new PropertyData();
1414:                visibleData.setValue(visibleComboBox.getSelectedItem()
1415:                        .toString());
1416:                cssPropertyChangeSupport().firePropertyChange(
1417:                        CssProperties.VISIBILITY, null, visibleData.toString());
1418:            }
1419:
1420:            private void setHeight() {
1421:                PropertyWithUnitData heightData = new PropertyWithUnitData();
1422:                heightData.setUnit(heightUnitComboBox.getSelectedItem()
1423:                        .toString());
1424:                heightData
1425:                        .setValue(heightComboBox.getSelectedItem().toString());
1426:                cssPropertyChangeSupport().firePropertyChange(
1427:                        CssProperties.HEIGHT, null, heightData.toString());
1428:                heightUnitComboBox.setEnabled(heightData.isValueInteger());
1429:            }
1430:
1431:            private void setWidth() {
1432:                PropertyWithUnitData widthData = new PropertyWithUnitData();
1433:                widthData.setUnit(widthUnitComboBox.getSelectedItem()
1434:                        .toString());
1435:                widthData.setValue(widthComboBox.getSelectedItem().toString());
1436:                cssPropertyChangeSupport().firePropertyChange(
1437:                        CssProperties.WIDTH, null, widthData.toString());
1438:                widthUnitComboBox.setEnabled(widthData.isValueInteger());
1439:            }
1440:
1441:            private void setRightPos() {
1442:                PropertyWithUnitData posRightData = new PropertyWithUnitData();
1443:                posRightData.setUnit(posRightUnitComboBox.getSelectedItem()
1444:                        .toString());
1445:                posRightData.setValue(posRightComboBox.getSelectedItem()
1446:                        .toString());
1447:                cssPropertyChangeSupport().firePropertyChange(
1448:                        CssProperties.RIGHT, null, posRightData.toString());
1449:                posRightUnitComboBox.setEnabled(posRightData.isValueInteger());
1450:            }
1451:
1452:            private void setLeftPos() {
1453:                PropertyWithUnitData posLeftData = new PropertyWithUnitData();
1454:                posLeftData.setUnit(posLeftUnitComboBox.getSelectedItem()
1455:                        .toString());
1456:                posLeftData.setValue(posLeftComboBox.getSelectedItem()
1457:                        .toString());
1458:                cssPropertyChangeSupport().firePropertyChange(
1459:                        CssProperties.LEFT, null, posLeftData.toString());
1460:                posLeftUnitComboBox.setEnabled(posLeftData.isValueInteger());
1461:            }
1462:
1463:            private void setBottomPos() {
1464:                PropertyWithUnitData posBottomData = new PropertyWithUnitData();
1465:                posBottomData.setUnit(posBottomUnitComboBox.getSelectedItem()
1466:                        .toString());
1467:                posBottomData.setValue(posBottomComboBox.getSelectedItem()
1468:                        .toString());
1469:                cssPropertyChangeSupport().firePropertyChange(
1470:                        CssProperties.BOTTOM, null, posBottomData.toString());
1471:                posBottomUnitComboBox
1472:                        .setEnabled(posBottomData.isValueInteger());
1473:            }
1474:
1475:            private void setTopPos() {
1476:                PropertyWithUnitData posTopData = new PropertyWithUnitData();
1477:                posTopData.setUnit(posTopUnitComboBox.getSelectedItem()
1478:                        .toString());
1479:                posTopData
1480:                        .setValue(posTopComboBox.getSelectedItem().toString());
1481:                cssPropertyChangeSupport().firePropertyChange(
1482:                        CssProperties.TOP, null, posTopData.toString());
1483:                posTopUnitComboBox.setEnabled(posTopData.isValueInteger());
1484:            }
1485:
1486:            public void setPosition() {
1487:                PropertyData positionData = new PropertyData();
1488:                positionData.setValue(positionModeCombo.getSelectedItem()
1489:                        .toString());
1490:                cssPropertyChangeSupport().firePropertyChange(
1491:                        CssProperties.POSITION, null, positionData.toString());
1492:            }
1493:
1494:            // Variables declaration - do not modify//GEN-BEGIN:variables
1495:            private javax.swing.JComboBox clipBottomComboBox;
1496:            private javax.swing.JLabel clipBottomLabel;
1497:            private javax.swing.JComboBox clipBottomUnitComboBox;
1498:            private javax.swing.JComboBox clipLeftComboBox;
1499:            private javax.swing.JLabel clipLeftLabel1;
1500:            private javax.swing.JComboBox clipLeftUnitComboBox;
1501:            private javax.swing.JPanel clipPanel;
1502:            private javax.swing.JComboBox clipRightComboBox;
1503:            private javax.swing.JLabel clipRightLabel1;
1504:            private javax.swing.JComboBox clipRightUnitComboBox;
1505:            private javax.swing.JComboBox clipTopComboBox;
1506:            private javax.swing.JLabel clipTopLabel1;
1507:            private javax.swing.JComboBox clipTopUnitComboBox;
1508:            private javax.swing.JComboBox heightComboBox;
1509:            private javax.swing.JLabel heightLabel;
1510:            private javax.swing.JComboBox heightUnitComboBox;
1511:            private javax.swing.JLabel jLabel1;
1512:            private javax.swing.JLabel jLabel2;
1513:            private javax.swing.JLabel jLabel3;
1514:            private javax.swing.JPanel mainPositionPanel;
1515:            private javax.swing.JComboBox posBottomComboBox;
1516:            private javax.swing.JLabel posBottomLabel1;
1517:            private javax.swing.JComboBox posBottomUnitComboBox;
1518:            private javax.swing.JComboBox posLeftComboBox;
1519:            private javax.swing.JLabel posLeftLabel1;
1520:            private javax.swing.JComboBox posLeftUnitComboBox;
1521:            private javax.swing.JComboBox posRightComboBox;
1522:            private javax.swing.JLabel posRightLabel;
1523:            private javax.swing.JComboBox posRightUnitComboBox;
1524:            private javax.swing.JComboBox posTopComboBox;
1525:            private javax.swing.JLabel posTopLabel;
1526:            private javax.swing.JComboBox posTopUnitComboBox;
1527:            private javax.swing.JPanel positionContainerPanel;
1528:            private javax.swing.JComboBox positionModeCombo;
1529:            private javax.swing.JLabel positionModeLabel;
1530:            private javax.swing.JPanel sizeContainerPanel;
1531:            private javax.swing.JComboBox visibleComboBox;
1532:            private javax.swing.JLabel visibleLabel1;
1533:            private javax.swing.JComboBox widthComboBox;
1534:            private javax.swing.JLabel widthLabel;
1535:            private javax.swing.JComboBox widthUnitComboBox;
1536:            private javax.swing.JLabel zIndexLabel1;
1537:            private javax.swing.JComboBox zindexComboBox;
1538:            // End of variables declaration//GEN-END:variables
1539:
1540:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.