This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 161384
Collapse All | Expand All

(-)html/src/org/netbeans/modules/html/palette/items/BUTTON.java (-2 / +33 lines)
Lines 63-68 Link Here
63
    private String type = TYPE_SUBMIT;
63
    private String type = TYPE_SUBMIT;
64
    private boolean disabled = false;
64
    private boolean disabled = false;
65
    private String name = "";
65
    private String name = "";
66
    private boolean generateID = false;
67
    private boolean generateLabel = false;
66
    
68
    
67
    public BUTTON() {
69
    public BUTTON() {
68
    }
70
    }
Lines 94-102 Link Here
94
            strName = " name=\"" + name + "\""; // NOI18N
96
            strName = " name=\"" + name + "\""; // NOI18N
95
97
96
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
98
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
99
        String strId = (generateID ? " id=\""+name+"\" " : ""); // NOI18N
100
        String strLabel = (generateLabel? "<label for=\""+name+"\"></label>":"");
101
        String inputBody = strLabel+"<input" + strType + strValue + strId+ strName + strDisabled + " />"; // NOI18N
97
102
98
        String inputBody = "<input" + strType + strValue + strName + strDisabled + " />"; // NOI18N
99
        
100
        return inputBody;
103
        return inputBody;
101
    }
104
    }
102
105
Lines 132-135 Link Here
132
        this.name = name;
135
        this.name = name;
133
    }
136
    }
134
        
137
        
138
    /**
139
     * @return the generateID
140
     */
141
    public boolean isGenerateID() {
142
        return generateID;
135
}
143
}
144
145
    /**
146
     * @param generateID the generateID to set
147
     */
148
    public void setGenerateID(boolean generateID) {
149
        this.generateID = generateID;
150
    }
151
152
    /**
153
     * @return the generateLabel
154
     */
155
    public boolean isGenerateLabel() {
156
        return generateLabel;
157
    }
158
159
    /**
160
     * @param generateLabel the generateLabel to set
161
     */
162
    public void setGenerateLabel(boolean generateLabel) {
163
        this.generateLabel = generateLabel;
164
    }
165
        
166
}
(-)html/src/org/netbeans/modules/html/palette/items/BUTTONCustomizer.form (-3 / +94 lines)
Lines 1-6 Link Here
1
<?xml version="1.0" encoding="UTF-8" ?>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
2
3
<Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
3
<Form version="1.4" maxVersion="1.4" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
4
  <NonVisualComponents>
4
  <NonVisualComponents>
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
6
    </Component>
6
    </Component>
Lines 230-236 Link Here
230
      </Properties>
230
      </Properties>
231
      <Constraints>
231
      <Constraints>
232
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
232
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
233
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
233
          <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
234
        </Constraint>
234
        </Constraint>
235
      </Constraints>
235
      </Constraints>
236
    </Component>
236
    </Component>
Lines 253-261 Link Here
253
      </AccessibilityProperties>
253
      </AccessibilityProperties>
254
      <Constraints>
254
      <Constraints>
255
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
255
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
256
          <GridBagConstraints gridX="0" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
256
          <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
257
        </Constraint>
257
        </Constraint>
258
      </Constraints>
258
      </Constraints>
259
    </Component>
259
    </Component>
260
    <Component class="javax.swing.JLabel" name="jLabel5">
261
      <Properties>
262
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
263
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_BUTTON_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
264
        </Property>
265
      </Properties>
266
      <AccessibilityProperties>
267
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
268
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_BUTTON_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
269
        </Property>
270
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
271
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_BUTTON_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
272
        </Property>
273
      </AccessibilityProperties>
274
      <Constraints>
275
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
276
          <GridBagConstraints gridX="0" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
277
        </Constraint>
278
      </Constraints>
279
    </Component>
280
    <Component class="javax.swing.JCheckBox" name="jCheckBox2">
281
      <Properties>
282
        <Property name="selected" type="boolean" value="true"/>
283
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
284
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_CHECKBOX_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
285
        </Property>
286
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
287
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
288
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
289
          </Border>
290
        </Property>
291
      </Properties>
292
      <AccessibilityProperties>
293
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
294
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_BUTTON_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
295
        </Property>
296
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
297
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_BUTTON_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
298
        </Property>
299
      </AccessibilityProperties>
300
      <Constraints>
301
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
302
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
303
        </Constraint>
304
      </Constraints>
305
    </Component>
306
    <Component class="javax.swing.JLabel" name="jLabel6">
307
      <Properties>
308
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
309
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_BUTTON_LabelElement" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
310
        </Property>
311
      </Properties>
312
      <AccessibilityProperties>
313
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
314
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_BUTTON_LabelElement" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
315
        </Property>
316
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
317
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_BUTTON_LabelElement" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
318
        </Property>
319
      </AccessibilityProperties>
320
      <Constraints>
321
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
322
          <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
323
        </Constraint>
324
      </Constraints>
325
    </Component>
326
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
327
      <Properties>
328
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
329
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_BUTTON_LabelElementSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
330
        </Property>
331
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
332
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
333
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
334
          </Border>
335
        </Property>
336
      </Properties>
337
      <AccessibilityProperties>
338
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
339
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_BUTTON_LabelElementSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
340
        </Property>
341
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
342
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_BUTTON_LabelElementSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
343
        </Property>
344
      </AccessibilityProperties>
345
      <Constraints>
346
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
347
          <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="0.0"/>
348
        </Constraint>
349
      </Constraints>
350
    </Component>
260
  </SubComponents>
351
  </SubComponents>
261
</Form>
352
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/BUTTONCustomizer.java (-2 / +61 lines)
Lines 119-124 Link Here
119
119
120
        button.setDisabled(jCheckBox1.isSelected());
120
        button.setDisabled(jCheckBox1.isSelected());
121
        
121
        
122
        button.setGenerateID(jCheckBox2.isSelected());
123
        
124
        button.setGenerateLabel(jCheckBox3.isSelected());
125
        
122
        String name = jTextField2.getText();
126
        String name = jTextField2.getText();
123
        button.setName(name);
127
        button.setName(name);
124
        
128
        
Lines 144-149 Link Here
144
        jCheckBox1 = new javax.swing.JCheckBox();
148
        jCheckBox1 = new javax.swing.JCheckBox();
145
        jTextField2 = new javax.swing.JTextField();
149
        jTextField2 = new javax.swing.JTextField();
146
        jLabel4 = new javax.swing.JLabel();
150
        jLabel4 = new javax.swing.JLabel();
151
        jLabel5 = new javax.swing.JLabel();
152
        jCheckBox2 = new javax.swing.JCheckBox();
153
        jLabel6 = new javax.swing.JLabel();
154
        jCheckBox3 = new javax.swing.JCheckBox();
147
155
148
        setLayout(new java.awt.GridBagLayout());
156
        setLayout(new java.awt.GridBagLayout());
149
157
Lines 249-255 Link Here
249
        jTextField2.setColumns(30);
257
        jTextField2.setColumns(30);
250
        gridBagConstraints = new java.awt.GridBagConstraints();
258
        gridBagConstraints = new java.awt.GridBagConstraints();
251
        gridBagConstraints.gridx = 1;
259
        gridBagConstraints.gridx = 1;
252
        gridBagConstraints.gridy = 5;
260
        gridBagConstraints.gridy = 7;
253
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
261
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
254
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
262
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
255
        gridBagConstraints.weighty = 1.0;
263
        gridBagConstraints.weighty = 1.0;
Lines 260-266 Link Here
260
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_BUTTON_Name")); // NOI18N
268
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_BUTTON_Name")); // NOI18N
261
        gridBagConstraints = new java.awt.GridBagConstraints();
269
        gridBagConstraints = new java.awt.GridBagConstraints();
262
        gridBagConstraints.gridx = 0;
270
        gridBagConstraints.gridx = 0;
263
        gridBagConstraints.gridy = 5;
271
        gridBagConstraints.gridy = 7;
264
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
272
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
265
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
273
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
266
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
274
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
Lines 268-273 Link Here
268
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_Name")); // NOI18N
276
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_Name")); // NOI18N
269
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_Name")); // NOI18N
277
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_Name")); // NOI18N
270
278
279
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_BUTTON_Id")); // NOI18N
280
        gridBagConstraints = new java.awt.GridBagConstraints();
281
        gridBagConstraints.gridx = 0;
282
        gridBagConstraints.gridy = 5;
283
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
284
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
285
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
286
        add(jLabel5, gridBagConstraints);
287
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_Id")); // NOI18N
288
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_Id")); // NOI18N
289
290
        jCheckBox2.setSelected(true);
291
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_CHECKBOX_IdSelected")); // NOI18N
292
        jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
293
        gridBagConstraints = new java.awt.GridBagConstraints();
294
        gridBagConstraints.gridx = 1;
295
        gridBagConstraints.gridy = 5;
296
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
297
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
298
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
299
        add(jCheckBox2, gridBagConstraints);
300
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_IdSelected")); // NOI18N
301
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_IdSelected")); // NOI18N
302
303
        org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_BUTTON_LabelElement")); // NOI18N
304
        gridBagConstraints = new java.awt.GridBagConstraints();
305
        gridBagConstraints.gridx = 0;
306
        gridBagConstraints.gridy = 6;
307
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
308
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
309
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
310
        add(jLabel6, gridBagConstraints);
311
        jLabel6.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_LabelElement")); // NOI18N
312
        jLabel6.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_LabelElement")); // NOI18N
313
314
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "LBL_BUTTON_LabelElementSelected")); // NOI18N
315
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
316
        gridBagConstraints = new java.awt.GridBagConstraints();
317
        gridBagConstraints.gridx = 1;
318
        gridBagConstraints.gridy = 6;
319
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
320
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
321
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
322
        add(jCheckBox3, gridBagConstraints);
323
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_LabelElementSelected")); // NOI18N
324
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_LabelElementSelected")); // NOI18N
325
271
        getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_Form")); // NOI18N
326
        getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSN_BUTTON_Form")); // NOI18N
272
        getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_Form")); // NOI18N
327
        getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(BUTTONCustomizer.class, "ACSD_BUTTON_Form")); // NOI18N
273
    }// </editor-fold>//GEN-END:initComponents
328
    }// </editor-fold>//GEN-END:initComponents
Lines 276-285 Link Here
276
    // Variables declaration - do not modify//GEN-BEGIN:variables
331
    // Variables declaration - do not modify//GEN-BEGIN:variables
277
    private javax.swing.ButtonGroup buttonGroup1;
332
    private javax.swing.ButtonGroup buttonGroup1;
278
    private javax.swing.JCheckBox jCheckBox1;
333
    private javax.swing.JCheckBox jCheckBox1;
334
    private javax.swing.JCheckBox jCheckBox2;
335
    private javax.swing.JCheckBox jCheckBox3;
279
    private javax.swing.JLabel jLabel1;
336
    private javax.swing.JLabel jLabel1;
280
    private javax.swing.JLabel jLabel2;
337
    private javax.swing.JLabel jLabel2;
281
    private javax.swing.JLabel jLabel3;
338
    private javax.swing.JLabel jLabel3;
282
    private javax.swing.JLabel jLabel4;
339
    private javax.swing.JLabel jLabel4;
340
    private javax.swing.JLabel jLabel5;
341
    private javax.swing.JLabel jLabel6;
283
    private javax.swing.JRadioButton jRadioButton1;
342
    private javax.swing.JRadioButton jRadioButton1;
284
    private javax.swing.JRadioButton jRadioButton2;
343
    private javax.swing.JRadioButton jRadioButton2;
285
    private javax.swing.JRadioButton jRadioButton3;
344
    private javax.swing.JRadioButton jRadioButton3;
(-)html/src/org/netbeans/modules/html/palette/items/Bundle.properties (-1 / +182 lines)
Lines 1-4 Link Here
1
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1
S# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
#
2
#
3
# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
3
# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
4
#
4
#
Lines 139-144 Link Here
139
139
140
ACSN_BUTTON_standard=standard
140
ACSN_BUTTON_standard=standard
141
141
142
ACSD_BUTTON_Id=Element ID
143
144
LBL_BUTTON_Id=ID\:
145
146
ACSN_BUTTON_Id=ID
147
148
ACSD_BUTTON_IdSelected=Select if the button should have ID attribute
149
150
LBL_BUTTON_IdSelected=&generate
151
152
ACSN_BUTTON_IdSelected=generate attribute
153
154
ACSD_BUTTON_LabelElement=Element label
155
156
LBL_BUTTON_LabelElement=Label Element\:
157
158
ACSN_BUTTON_LabelElement=Label Element
159
160
ACSD_BUTTON_LabelElementSelected=Select if label element should be generated for the button
161
162
LBL_BUTTON_LabelElementSelected=&create label
163
164
ACSN_BUTTON_LabelElementSelected=create label
165
142
#Checkbox
166
#Checkbox
143
LBL_CHECKBOX_Name=&Name\:
167
LBL_CHECKBOX_Name=&Name\:
144
168
Lines 180-185 Link Here
180
204
181
LBL_CHECKBOX_disabled=&disabled
205
LBL_CHECKBOX_disabled=&disabled
182
206
207
ACSD_CHECKBOX_Id=Element ID
208
209
LBL_CHECKBOX_Id=ID\:
210
211
ACSN_CHECKBOX_Id=ID
212
213
ACSD_CHECKBOX_IdSelected=Select if the checkbox should have ID attribute
214
215
LBL_CHECKBOX_IdSelected=&generate
216
217
ACSN_CHECKBOX_IdSelected=generate attribute
218
219
ACSD_CHECKBOX_Label=Element label
220
221
LBL_CHECKBOX_Label=Label Element\:
222
223
ACSN_CHECKBOX_Label=Label Element
224
225
ACSD_CHECKBOX_LabelSelected=Select if label element should be generated for the checkbox
226
227
LBL_CHECKBOX_LabelSelected=&create label
228
229
ACSN_CHECKBOX_LabelSelected=create label
230
183
#File select
231
#File select
184
LBL_FILESEL_Name=&Name\:
232
LBL_FILESEL_Name=&Name\:
185
233
Lines 209-214 Link Here
209
257
210
ACSD_FILESEL_disabled=Select if the file select should be initially disabled.
258
ACSD_FILESEL_disabled=Select if the file select should be initially disabled.
211
259
260
ACSD_FILESEL_Id=Element ID
261
262
LBL_FILESEL_Id=ID\:
263
264
ACSN_FILESEL_Id=ID
265
266
ACSD_FILESEL_IdSelected=Select if the file select should have ID attribute
267
268
LBL_FILESEL_IdSelected=&generate
269
270
ACSN_FILESEL_IdSelected=generate attribute
271
272
ACSD_FILESEL_Label=Element label
273
274
LBL_FILESEL_Label=Label Element\:
275
276
ACSN_FILESEL_Label=Label Element
277
278
ACSD_FILESEL_LabelSelected=Select if label element should be generated for the file select
279
280
LBL_FILESEL_LabelSelected=&create label
281
282
ACSN_FILESEL_LabelSelected=create label
283
284
212
#Form
285
#Form
213
LBL_FORM_Action=&Action\:
286
LBL_FORM_Action=&Action\:
214
287
Lines 252-257 Link Here
252
325
253
ACSD_FORM_Name=Form object name
326
ACSD_FORM_Name=Form object name
254
327
328
ACSD_FORM_Id=Form ID attribute
329
330
LBL_FORM_Id=&ID\:
331
332
ACSN_FORM_Id=ID
333
255
#Image
334
#Image
256
LBL_IMG_Location=&Location\:
335
LBL_IMG_Location=&Location\:
257
336
Lines 285-290 Link Here
285
364
286
LBL_IMG_FileChooserDesc=Image Files
365
LBL_IMG_FileChooserDesc=Image Files
287
366
367
ACSD_IMG_Figure=HTML5 figure
368
369
LBL_IMG_Figure=As HTML5 figure\:
370
371
ACSN_IMG_Figure=HTML5 figure
372
373
ACSD_IMG_FigureSelected=Select if image should be HTML5 figure with figcaption
374
375
LBL_IMG_FigureSelected=&generate
376
377
ACSN_IMG_FigureSelected=generate as HTML5 figure
378
288
#Input
379
#Input
289
LBL_INPUT_Name=&Name\:
380
LBL_INPUT_Name=&Name\:
290
381
Lines 350-355 Link Here
350
441
351
ACSD_INPUT_Width=Input width
442
ACSD_INPUT_Width=Input width
352
443
444
ACSD_INPUT_Id=Element ID
445
446
LBL_INPUT_Id=ID\:
447
448
ACSN_INPUT_Id=ID
449
450
ACSD_INPUT_IdSelected=Select if the input should have ID attribute
451
452
LBL_INPUT_IdSelected=&generate
453
454
ACSN_INPUT_IdSelected=generate attribute
455
456
ACSD_INPUT_Label=Element label
457
458
LBL_INPUT_Label=Label Element\:
459
460
ACSN_INPUT_Label=Label Element
461
462
ACSD_INPUT_LabelSelected=Select if label element should be generated for the input
463
464
LBL_INPUT_LabelSelected=&create label
465
466
ACSN_INPUT_LabelSelected=create label
467
468
469
353
#Meta
470
#Meta
354
LBL_META_Type=Type\:
471
LBL_META_Type=Type\:
355
472
Lines 463-468 Link Here
463
580
464
ACSD_RADIO_disabled=Radio button initially disabled.
581
ACSD_RADIO_disabled=Radio button initially disabled.
465
582
583
ACSD_RADIO_Id=Element ID
584
585
LBL_RADIO_Id=ID\:
586
587
ACSN_RADIO_Id=ID
588
589
ACSD_RADIO_IdSelected=Select if the radio should have ID attribute
590
591
LBL_RADIO_IdSelected=&generate
592
593
ACSN_RADIO_IdSelected=generate attribute
466
#Select
594
#Select
467
LBL_SELECT_Name=&Name\:
595
LBL_SELECT_Name=&Name\:
468
596
Lines 512-517 Link Here
512
640
513
ACSD_SELECT_disabled=When selected then initial state is disabled
641
ACSD_SELECT_disabled=When selected then initial state is disabled
514
642
643
ACSD_SELECT_Id=Element ID
644
645
LBL_SELECT_Id=ID\:
646
647
ACSN_SELECT_Id=ID
648
649
ACSD_SELECT_IdSelected=Select if the select input should have ID attribute
650
651
LBL_SELECT_IdSelected=&generate
652
653
ACSN_SELECT_IdSelected=generate attribute
654
655
ACSD_SELECT_Label=Element label
656
657
LBL_SELECT_Label=Label Element\:
658
659
ACSN_SELECT_Label=Label Element
660
661
ACSD_SELECT_LabelSelected=Select if label element should be generated for the select input
662
663
LBL_SELECT_LabelSelected=&create label
664
665
ACSN_SELECT_LabelSelected=create label
666
515
#Table
667
#Table
516
LBL_TABLE_Name=&Name\:
668
LBL_TABLE_Name=&Name\:
517
669
Lines 571-576 Link Here
571
723
572
LBL_TABLE_PaddingHelp=The amount of space between the border of the cell and its content.
724
LBL_TABLE_PaddingHelp=The amount of space between the border of the cell and its content.
573
725
726
ACSD_TABLE_Caption=Table caption
727
728
LBL_TABLE_Caption=Captio&n\:
729
730
ACSN_TABLE_Caption=Caption
731
574
#Textarea
732
#Textarea
575
LBL_TEXTAREA_Name=&Name\:
733
LBL_TEXTAREA_Name=&Name\:
576
734
Lines 618-623 Link Here
618
776
619
ACSD_TEXTAREA_Columns=Number of columns
777
ACSD_TEXTAREA_Columns=Number of columns
620
778
779
ACSD_TEXTAREA_Id=Element ID
780
781
LBL_TEXTAREA_Id=ID\:
782
783
ACSN_TEXTAREA_Id=ID
784
785
ACSD_TEXTAREA_IdSelected=Select if the textarea should have ID attribute
786
787
LBL_TEXTAREA_IdSelected=&generate
788
789
ACSN_TEXTAREA_IdSelected=generate attribute
790
791
ACSD_TEXTAREA_Label=Element label
792
793
LBL_TEXTAREA_Label=Label Element\:
794
795
ACSN_TEXTAREA_Label=Label Element
796
797
ACSD_TEXTAREA_LabelSelected=Select if label element should be generated for the textarea
798
799
LBL_TEXTAREA_LabelSelected=&create label
800
801
ACSN_TEXTAREA_LabelSelected=create label
621
#Unordered class
802
#Unordered class
622
LBL_UL_Items=&Number of Items\:
803
LBL_UL_Items=&Number of Items\:
623
804
(-)html/src/org/netbeans/modules/html/palette/items/CHECKBOX.java (-1 / +27 lines)
Lines 61-66 Link Here
61
    private String value = VALUE_DEFAULT;
61
    private String value = VALUE_DEFAULT;
62
    private boolean selected = false;
62
    private boolean selected = false;
63
    private boolean disabled = false;
63
    private boolean disabled = false;
64
    private boolean generateID = false;
65
    private boolean generateLabel = false;
64
66
65
    public CHECKBOX() {
67
    public CHECKBOX() {
66
    }
68
    }
Lines 91-97 Link Here
91
93
92
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
94
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
93
        
95
        
94
        String inputBody = "<input type=\"checkbox\"" + strName + strValue + strSelected + strDisabled + " />"; // NOI18N
96
        String strId = (generateID ? " id=\""+name+"\" " : ""); // NOI18N
97
        String strLabel = (generateLabel? "<label for=\""+name+"\"></label>":"");
98
        String inputBody = strLabel+"<input type=\"checkbox\"" + strName + strId + strValue + strSelected + strDisabled + " />"; // NOI18N
95
        
99
        
96
        return inputBody;
100
        return inputBody;
97
    }
101
    }
Lines 128-131 Link Here
128
        this.disabled = disabled;
132
        this.disabled = disabled;
129
    }
133
    }
130
        
134
        
135
    public boolean isGenerateId() {
136
        return generateID;
131
}
137
}
138
139
    public void setGenerateId(boolean generateId) {
140
        this.generateID = generateId;
141
    }
142
143
    /**
144
     * @return the generateLabel
145
     */
146
    public boolean isGenerateLabel() {
147
        return generateLabel;
148
    }
149
150
    /**
151
     * @param generateLabel the generateLabel to set
152
     */
153
    public void setGenerateLabel(boolean generateLabel) {
154
        this.generateLabel = generateLabel;
155
    }
156
        
157
}
(-)html/src/org/netbeans/modules/html/palette/items/CHECKBOXCustomizer.form (-1 / +105 lines)
Lines 5-16 Link Here
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
6
    </Component>
6
    </Component>
7
  </NonVisualComponents>
7
  </NonVisualComponents>
8
  <Properties>
9
    <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
10
      <Dimension value="[502, 220]"/>
11
    </Property>
12
    <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
13
      <Dimension value="[516, 220]"/>
14
    </Property>
15
  </Properties>
8
  <AuxValues>
16
  <AuxValues>
9
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
17
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
10
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
18
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
11
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
19
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
12
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
20
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
13
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
21
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
22
    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
14
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
23
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
15
    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
24
    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
16
    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
25
    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
Lines 121-127 Link Here
121
      </AccessibilityProperties>
130
      </AccessibilityProperties>
122
      <Constraints>
131
      <Constraints>
123
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
132
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
124
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
133
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
125
        </Constraint>
134
        </Constraint>
126
      </Constraints>
135
      </Constraints>
127
    </Component>
136
    </Component>
Lines 181-185 Link Here
181
        </Constraint>
190
        </Constraint>
182
      </Constraints>
191
      </Constraints>
183
    </Component>
192
    </Component>
193
    <Component class="javax.swing.JLabel" name="jLabel4">
194
      <Properties>
195
        <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
196
          <ComponentRef name="jCheckBox3"/>
197
        </Property>
198
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
199
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_CHECKBOX_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
200
        </Property>
201
      </Properties>
202
      <AccessibilityProperties>
203
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
204
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_CHECKBOX_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
205
        </Property>
206
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
207
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_CHECKBOX_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
208
        </Property>
209
      </AccessibilityProperties>
210
      <Constraints>
211
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
212
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="36" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
213
        </Constraint>
214
      </Constraints>
215
    </Component>
216
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
217
      <Properties>
218
        <Property name="selected" type="boolean" value="true"/>
219
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
220
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_CHECKBOX_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
221
        </Property>
222
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
223
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
224
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
225
          </Border>
226
        </Property>
227
      </Properties>
228
      <AccessibilityProperties>
229
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
230
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_CHECKBOX_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
231
        </Property>
232
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
233
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_CHECKBOX_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
234
        </Property>
235
      </AccessibilityProperties>
236
      <Constraints>
237
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
238
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="36" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
239
        </Constraint>
240
      </Constraints>
241
    </Component>
242
    <Component class="javax.swing.JLabel" name="jLabel6">
243
      <Properties>
244
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
245
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_CHECKBOX_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
246
        </Property>
247
        <Property name="toolTipText" type="java.lang.String" value=""/>
248
      </Properties>
249
      <AccessibilityProperties>
250
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
251
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_CHECKBOX_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
252
        </Property>
253
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
254
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_CHECKBOX_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
255
        </Property>
256
      </AccessibilityProperties>
257
      <Constraints>
258
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
259
          <GridBagConstraints gridX="0" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="6" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
260
        </Constraint>
261
      </Constraints>
262
    </Component>
263
    <Component class="javax.swing.JCheckBox" name="jCheckBox4">
264
      <Properties>
265
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
266
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_CHECKBOX_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
267
        </Property>
268
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
269
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
270
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
271
          </Border>
272
        </Property>
273
      </Properties>
274
      <AccessibilityProperties>
275
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
276
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_CHECKBOX_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
277
        </Property>
278
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
279
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_CHECKBOX_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
280
        </Property>
281
      </AccessibilityProperties>
282
      <Constraints>
283
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
284
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="6" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="1.0"/>
285
        </Constraint>
286
      </Constraints>
287
    </Component>
184
  </SubComponents>
288
  </SubComponents>
185
</Form>
289
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/CHECKBOXCustomizer.java (-26 / +83 lines)
Lines 116-121 Link Here
116
116
117
        checkbox.setDisabled(jCheckBox2.isSelected());
117
        checkbox.setDisabled(jCheckBox2.isSelected());
118
        
118
        
119
        checkbox.setGenerateId(jCheckBox3.isSelected());
120
        checkbox.setGenerateLabel(jCheckBox4.isSelected());
119
    }
121
    }
120
    
122
    
121
    /** This method is called from within the constructor to
123
    /** This method is called from within the constructor to
Lines 123-129 Link Here
123
     * WARNING: Do NOT modify this code. The content of this method is
125
     * WARNING: Do NOT modify this code. The content of this method is
124
     * always regenerated by the Form Editor.
126
     * always regenerated by the Form Editor.
125
     */
127
     */
126
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
128
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
127
    private void initComponents() {
129
    private void initComponents() {
128
        java.awt.GridBagConstraints gridBagConstraints;
130
        java.awt.GridBagConstraints gridBagConstraints;
129
131
Lines 136-142 Link Here
136
        jLabel5 = new javax.swing.JLabel();
138
        jLabel5 = new javax.swing.JLabel();
137
        jTextField2 = new javax.swing.JTextField();
139
        jTextField2 = new javax.swing.JTextField();
138
        jLabel2 = new javax.swing.JLabel();
140
        jLabel2 = new javax.swing.JLabel();
141
        jLabel4 = new javax.swing.JLabel();
142
        jCheckBox3 = new javax.swing.JCheckBox();
143
        jLabel6 = new javax.swing.JLabel();
144
        jCheckBox4 = new javax.swing.JCheckBox();
139
145
146
        setMinimumSize(new java.awt.Dimension(502, 220));
147
        setPreferredSize(new java.awt.Dimension(516, 220));
140
        setLayout(new java.awt.GridBagLayout());
148
        setLayout(new java.awt.GridBagLayout());
141
149
142
        jTextField1.setColumns(30);
150
        jTextField1.setColumns(30);
Lines 150-156 Link Here
150
        add(jTextField1, gridBagConstraints);
158
        add(jTextField1, gridBagConstraints);
151
159
152
        jLabel1.setLabelFor(jTextField1);
160
        jLabel1.setLabelFor(jTextField1);
153
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Name"));
161
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Name")); // NOI18N
154
        gridBagConstraints = new java.awt.GridBagConstraints();
162
        gridBagConstraints = new java.awt.GridBagConstraints();
155
        gridBagConstraints.gridx = 0;
163
        gridBagConstraints.gridx = 0;
156
        gridBagConstraints.gridy = 0;
164
        gridBagConstraints.gridy = 0;
Lines 158-167 Link Here
158
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
166
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
159
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
167
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
160
        add(jLabel1, gridBagConstraints);
168
        add(jLabel1, gridBagConstraints);
161
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Name"));
169
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Name")); // NOI18N
162
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Name"));
170
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Name")); // NOI18N
163
171
164
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_ValueHelp"));
172
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_ValueHelp")); // NOI18N
165
        gridBagConstraints = new java.awt.GridBagConstraints();
173
        gridBagConstraints = new java.awt.GridBagConstraints();
166
        gridBagConstraints.gridx = 1;
174
        gridBagConstraints.gridx = 1;
167
        gridBagConstraints.gridy = 2;
175
        gridBagConstraints.gridy = 2;
Lines 169-180 Link Here
169
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
177
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
170
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
178
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
171
        add(jLabel3, gridBagConstraints);
179
        add(jLabel3, gridBagConstraints);
172
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_ValueHelp"));
180
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_ValueHelp")); // NOI18N
173
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_ValueHelp"));
181
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_ValueHelp")); // NOI18N
174
182
175
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_selected"));
183
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_selected")); // NOI18N
176
        jCheckBox1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
184
        jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
177
        jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
178
        gridBagConstraints = new java.awt.GridBagConstraints();
185
        gridBagConstraints = new java.awt.GridBagConstraints();
179
        gridBagConstraints.gridx = 1;
186
        gridBagConstraints.gridx = 1;
180
        gridBagConstraints.gridy = 3;
187
        gridBagConstraints.gridy = 3;
Lines 182-205 Link Here
182
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
189
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
183
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
190
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
184
        add(jCheckBox1, gridBagConstraints);
191
        add(jCheckBox1, gridBagConstraints);
185
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_selected"));
192
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_selected")); // NOI18N
186
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_selected"));
193
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_selected")); // NOI18N
187
194
188
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_disabled"));
195
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_disabled")); // NOI18N
189
        jCheckBox2.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
196
        jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
190
        jCheckBox2.setMargin(new java.awt.Insets(0, 0, 0, 0));
191
        gridBagConstraints = new java.awt.GridBagConstraints();
197
        gridBagConstraints = new java.awt.GridBagConstraints();
192
        gridBagConstraints.gridx = 1;
198
        gridBagConstraints.gridx = 1;
193
        gridBagConstraints.gridy = 4;
199
        gridBagConstraints.gridy = 4;
194
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
200
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
195
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
201
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
196
        gridBagConstraints.weighty = 1.0;
197
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 12, 12);
202
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 12, 12);
198
        add(jCheckBox2, gridBagConstraints);
203
        add(jCheckBox2, gridBagConstraints);
199
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_disabled"));
204
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_disabled")); // NOI18N
200
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_disabled"));
205
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_disabled")); // NOI18N
201
206
202
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_InitState"));
207
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_InitState")); // NOI18N
203
        gridBagConstraints = new java.awt.GridBagConstraints();
208
        gridBagConstraints = new java.awt.GridBagConstraints();
204
        gridBagConstraints.gridx = 0;
209
        gridBagConstraints.gridx = 0;
205
        gridBagConstraints.gridy = 3;
210
        gridBagConstraints.gridy = 3;
Lines 207-214 Link Here
207
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
212
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
208
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
213
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
209
        add(jLabel5, gridBagConstraints);
214
        add(jLabel5, gridBagConstraints);
210
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_InitState"));
215
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_InitState")); // NOI18N
211
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_InitState"));
216
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_InitState")); // NOI18N
212
217
213
        jTextField2.setColumns(30);
218
        jTextField2.setColumns(30);
214
        jTextField2.setText(checkbox.getValue());
219
        jTextField2.setText(checkbox.getValue());
Lines 221-227 Link Here
221
        add(jTextField2, gridBagConstraints);
226
        add(jTextField2, gridBagConstraints);
222
227
223
        jLabel2.setLabelFor(jTextField2);
228
        jLabel2.setLabelFor(jTextField2);
224
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Value"));
229
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Value")); // NOI18N
225
        gridBagConstraints = new java.awt.GridBagConstraints();
230
        gridBagConstraints = new java.awt.GridBagConstraints();
226
        gridBagConstraints.gridx = 0;
231
        gridBagConstraints.gridx = 0;
227
        gridBagConstraints.gridy = 1;
232
        gridBagConstraints.gridy = 1;
Lines 229-249 Link Here
229
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
234
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
230
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
235
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
231
        add(jLabel2, gridBagConstraints);
236
        add(jLabel2, gridBagConstraints);
232
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Value"));
237
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Value")); // NOI18N
233
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Value"));
238
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Value")); // NOI18N
234
239
235
    }
240
        jLabel4.setLabelFor(jCheckBox3);
236
    // </editor-fold>//GEN-END:initComponents
241
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Id")); // NOI18N
242
        gridBagConstraints = new java.awt.GridBagConstraints();
243
        gridBagConstraints.gridx = 0;
244
        gridBagConstraints.gridy = 4;
245
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
246
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
247
        gridBagConstraints.insets = new java.awt.Insets(36, 12, 0, 0);
248
        add(jLabel4, gridBagConstraints);
249
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Id")); // NOI18N
250
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Id")); // NOI18N
237
    
251
    
252
        jCheckBox3.setSelected(true);
253
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_IdSelected")); // NOI18N
254
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
255
        gridBagConstraints = new java.awt.GridBagConstraints();
256
        gridBagConstraints.gridx = 1;
257
        gridBagConstraints.gridy = 4;
258
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
259
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
260
        gridBagConstraints.insets = new java.awt.Insets(36, 12, 0, 12);
261
        add(jCheckBox3, gridBagConstraints);
262
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_IdSelected")); // NOI18N
263
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_IdSelected")); // NOI18N
238
    
264
    
265
        org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_Label")); // NOI18N
266
        jLabel6.setToolTipText("");
267
        gridBagConstraints = new java.awt.GridBagConstraints();
268
        gridBagConstraints.gridx = 0;
269
        gridBagConstraints.gridy = 5;
270
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
271
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
272
        gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
273
        add(jLabel6, gridBagConstraints);
274
        jLabel6.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_Label")); // NOI18N
275
        jLabel6.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_Label")); // NOI18N
276
277
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox4, org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "LBL_CHECKBOX_LabelSelected")); // NOI18N
278
        jCheckBox4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
279
        gridBagConstraints = new java.awt.GridBagConstraints();
280
        gridBagConstraints.gridx = 1;
281
        gridBagConstraints.gridy = 5;
282
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
283
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
284
        gridBagConstraints.weighty = 1.0;
285
        gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 12);
286
        add(jCheckBox4, gridBagConstraints);
287
        jCheckBox4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSN_CHECKBOX_LabelSelected")); // NOI18N
288
        jCheckBox4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CHECKBOXCustomizer.class, "ACSD_CHECKBOX_LabelSelected")); // NOI18N
289
    }// </editor-fold>//GEN-END:initComponents
290
    
291
    
239
    // Variables declaration - do not modify//GEN-BEGIN:variables
292
    // Variables declaration - do not modify//GEN-BEGIN:variables
240
    private javax.swing.ButtonGroup buttonGroup1;
293
    private javax.swing.ButtonGroup buttonGroup1;
241
    private javax.swing.JCheckBox jCheckBox1;
294
    private javax.swing.JCheckBox jCheckBox1;
242
    private javax.swing.JCheckBox jCheckBox2;
295
    private javax.swing.JCheckBox jCheckBox2;
296
    private javax.swing.JCheckBox jCheckBox3;
297
    private javax.swing.JCheckBox jCheckBox4;
243
    private javax.swing.JLabel jLabel1;
298
    private javax.swing.JLabel jLabel1;
244
    private javax.swing.JLabel jLabel2;
299
    private javax.swing.JLabel jLabel2;
245
    private javax.swing.JLabel jLabel3;
300
    private javax.swing.JLabel jLabel3;
301
    private javax.swing.JLabel jLabel4;
246
    private javax.swing.JLabel jLabel5;
302
    private javax.swing.JLabel jLabel5;
303
    private javax.swing.JLabel jLabel6;
247
    private javax.swing.JTextField jTextField1;
304
    private javax.swing.JTextField jTextField1;
248
    private javax.swing.JTextField jTextField2;
305
    private javax.swing.JTextField jTextField2;
249
    // End of variables declaration//GEN-END:variables
306
    // End of variables declaration//GEN-END:variables
(-)html/src/org/netbeans/modules/html/palette/items/FILESEL.java (-6 / +35 lines)
Lines 41-54 Link Here
41
 * Version 2 license, then the option applies only if the new code is
41
 * Version 2 license, then the option applies only if the new code is
42
 * made subject to such option by the copyright holder.
42
 * made subject to such option by the copyright holder.
43
 */
43
 */
44
45
package org.netbeans.modules.html.palette.items;
44
package org.netbeans.modules.html.palette.items;
45
46
import javax.swing.text.BadLocationException;
46
import javax.swing.text.BadLocationException;
47
import javax.swing.text.JTextComponent;
47
import javax.swing.text.JTextComponent;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
49
import org.openide.text.ActiveEditorDrop;
49
import org.openide.text.ActiveEditorDrop;
50
50
51
52
/**
51
/**
53
 *
52
 *
54
 * @author Libor Kotouc
53
 * @author Libor Kotouc
Lines 58-63 Link Here
58
    private String name = "";
57
    private String name = "";
59
    private String width = "";
58
    private String width = "";
60
    private boolean disabled = false;
59
    private boolean disabled = false;
60
    private boolean generateID = false;
61
    private boolean generateLabel = false;
61
62
62
    public FILESEL() {
63
    public FILESEL() {
63
    }
64
    }
Lines 83-95 Link Here
83
        String strName = " name=\"" + name + "\""; // NOI18N
84
        String strName = " name=\"" + name + "\""; // NOI18N
84
85
85
        String strWidth = "";
86
        String strWidth = "";
86
        if (width.length() > 0)
87
        if (width.length() > 0) {
87
            strWidth = " width=\"" + width + "\""; // NOI18N
88
            strWidth = " width=\"" + width + "\""; // NOI18N
88
        
89
        }
89
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
90
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
91
        String strId = (generateID ? " id=\"" + name + "\" " : ""); // NOI18N
92
        String strLabel = (generateLabel ? "<label for=\"" + name + "\"></label>" : "");
93
        String fileselBody = strLabel+"<input type=\"file\"" + strName + strId + " value=\"\"" + strWidth + strDisabled + " />"; // NOI18N
90
94
91
        String fileselBody = "<input type=\"file\"" + strName + " value=\"\"" + strWidth + strDisabled + " />"; // NOI18N
92
        
93
        return fileselBody;
95
        return fileselBody;
94
    }
96
    }
95
97
Lines 117-120 Link Here
117
        this.disabled = disabled;
119
        this.disabled = disabled;
118
    }
120
    }
119
        
121
        
122
    /**
123
     * @return the generateID
124
     */
125
    public boolean isGenerateID() {
126
        return generateID;
120
}
127
}
128
129
    /**
130
     * @param generateID the generateID to set
131
     */
132
    public void setGenerateID(boolean generateID) {
133
        this.generateID = generateID;
134
    }
135
136
    /**
137
     * @return the generateLabel
138
     */
139
    public boolean isGenerateLabel() {
140
        return generateLabel;
141
    }
142
143
    /**
144
     * @param generateLabel the generateLabel to set
145
     */
146
    public void setGenerateLabel(boolean generateLabel) {
147
        this.generateLabel = generateLabel;
148
    }
149
}
(-)html/src/org/netbeans/modules/html/palette/items/FILESELCustomizer.form (-2 / +93 lines)
Lines 94-100 Link Here
94
      </AccessibilityProperties>
94
      </AccessibilityProperties>
95
      <Constraints>
95
      <Constraints>
96
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
96
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
97
          <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
97
          <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
98
        </Constraint>
98
        </Constraint>
99
      </Constraints>
99
      </Constraints>
100
    </Component>
100
    </Component>
Lines 119-125 Link Here
119
      </AccessibilityProperties>
119
      </AccessibilityProperties>
120
      <Constraints>
120
      <Constraints>
121
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
121
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
122
          <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
122
          <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
123
        </Constraint>
123
        </Constraint>
124
      </Constraints>
124
      </Constraints>
125
    </Component>
125
    </Component>
Lines 130-134 Link Here
130
        </Constraint>
130
        </Constraint>
131
      </Constraints>
131
      </Constraints>
132
    </Component>
132
    </Component>
133
    <Component class="javax.swing.JLabel" name="jLabel4">
134
      <Properties>
135
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
136
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_FILESEL_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
137
        </Property>
138
      </Properties>
139
      <AccessibilityProperties>
140
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
141
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_FILESEL_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
142
        </Property>
143
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
144
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_FILESEL_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
145
        </Property>
146
      </AccessibilityProperties>
147
      <Constraints>
148
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
149
          <GridBagConstraints gridX="0" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
150
        </Constraint>
151
      </Constraints>
152
    </Component>
153
    <Component class="javax.swing.JCheckBox" name="jCheckBox2">
154
      <Properties>
155
        <Property name="selected" type="boolean" value="true"/>
156
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
157
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_FILESEL_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
158
        </Property>
159
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
160
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
161
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
162
          </Border>
163
        </Property>
164
      </Properties>
165
      <AccessibilityProperties>
166
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
167
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_FILESEL_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
168
        </Property>
169
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
170
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_FILESEL_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
171
        </Property>
172
      </AccessibilityProperties>
173
      <Constraints>
174
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
175
          <GridBagConstraints gridX="1" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
176
        </Constraint>
177
      </Constraints>
178
    </Component>
179
    <Component class="javax.swing.JLabel" name="jLabel5">
180
      <Properties>
181
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
182
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_FILESEL_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
183
        </Property>
184
      </Properties>
185
      <AccessibilityProperties>
186
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
187
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_FILESEL_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
188
        </Property>
189
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
190
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_FILESEL_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
191
        </Property>
192
      </AccessibilityProperties>
193
      <Constraints>
194
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
195
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
196
        </Constraint>
197
      </Constraints>
198
    </Component>
199
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
200
      <Properties>
201
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
202
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_FILESEL_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
203
        </Property>
204
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
205
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
206
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
207
          </Border>
208
        </Property>
209
      </Properties>
210
      <AccessibilityProperties>
211
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
212
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_FILESEL_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
213
        </Property>
214
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
215
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_FILESEL_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
216
        </Property>
217
      </AccessibilityProperties>
218
      <Constraints>
219
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
220
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="1.0"/>
221
        </Constraint>
222
      </Constraints>
223
    </Component>
133
  </SubComponents>
224
  </SubComponents>
134
</Form>
225
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/FILESELCustomizer.java (-21 / +74 lines)
Lines 113-119 Link Here
113
        filesel.setWidth(width);
113
        filesel.setWidth(width);
114
        
114
        
115
        filesel.setDisabled(jCheckBox1.isSelected());
115
        filesel.setDisabled(jCheckBox1.isSelected());
116
        
116
        filesel.setGenerateID(jCheckBox2.isSelected());
117
        filesel.setGenerateLabel(jCheckBox3.isSelected());
117
    }
118
    }
118
    
119
    
119
    /** This method is called from within the constructor to
120
    /** This method is called from within the constructor to
Lines 121-127 Link Here
121
     * WARNING: Do NOT modify this code. The content of this method is
122
     * WARNING: Do NOT modify this code. The content of this method is
122
     * always regenerated by the Form Editor.
123
     * always regenerated by the Form Editor.
123
     */
124
     */
124
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
125
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
125
    private void initComponents() {
126
    private void initComponents() {
126
        java.awt.GridBagConstraints gridBagConstraints;
127
        java.awt.GridBagConstraints gridBagConstraints;
127
128
Lines 132-137 Link Here
132
        jLabel3 = new javax.swing.JLabel();
133
        jLabel3 = new javax.swing.JLabel();
133
        jCheckBox1 = new javax.swing.JCheckBox();
134
        jCheckBox1 = new javax.swing.JCheckBox();
134
        jTextField2 = new javax.swing.JTextField();
135
        jTextField2 = new javax.swing.JTextField();
136
        jLabel4 = new javax.swing.JLabel();
137
        jCheckBox2 = new javax.swing.JCheckBox();
138
        jLabel5 = new javax.swing.JLabel();
139
        jCheckBox3 = new javax.swing.JCheckBox();
135
140
136
        setLayout(new java.awt.GridBagLayout());
141
        setLayout(new java.awt.GridBagLayout());
137
142
Lines 147-153 Link Here
147
        add(jTextField1, gridBagConstraints);
152
        add(jTextField1, gridBagConstraints);
148
153
149
        jLabel1.setLabelFor(jTextField1);
154
        jLabel1.setLabelFor(jTextField1);
150
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Name"));
155
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Name")); // NOI18N
151
        gridBagConstraints = new java.awt.GridBagConstraints();
156
        gridBagConstraints = new java.awt.GridBagConstraints();
152
        gridBagConstraints.gridx = 0;
157
        gridBagConstraints.gridx = 0;
153
        gridBagConstraints.gridy = 0;
158
        gridBagConstraints.gridy = 0;
Lines 155-165 Link Here
155
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
160
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
156
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
161
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
157
        add(jLabel1, gridBagConstraints);
162
        add(jLabel1, gridBagConstraints);
158
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Name"));
163
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Name")); // NOI18N
159
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Name"));
164
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Name")); // NOI18N
160
165
161
        jLabel2.setLabelFor(jTextField2);
166
        jLabel2.setLabelFor(jTextField2);
162
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Width"));
167
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Width")); // NOI18N
163
        gridBagConstraints = new java.awt.GridBagConstraints();
168
        gridBagConstraints = new java.awt.GridBagConstraints();
164
        gridBagConstraints.gridx = 0;
169
        gridBagConstraints.gridx = 0;
165
        gridBagConstraints.gridy = 1;
170
        gridBagConstraints.gridy = 1;
Lines 167-199 Link Here
167
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
172
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
168
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
173
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
169
        add(jLabel2, gridBagConstraints);
174
        add(jLabel2, gridBagConstraints);
170
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Width"));
175
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Width")); // NOI18N
171
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Width"));
176
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Width")); // NOI18N
172
177
173
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_InitState"));
178
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_InitState")); // NOI18N
174
        gridBagConstraints = new java.awt.GridBagConstraints();
179
        gridBagConstraints = new java.awt.GridBagConstraints();
175
        gridBagConstraints.gridx = 0;
180
        gridBagConstraints.gridx = 0;
176
        gridBagConstraints.gridy = 2;
181
        gridBagConstraints.gridy = 2;
177
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
182
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
178
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
183
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
179
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
184
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
180
        add(jLabel3, gridBagConstraints);
185
        add(jLabel3, gridBagConstraints);
181
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_InitState"));
186
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_InitState")); // NOI18N
182
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_InitState"));
187
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_InitState")); // NOI18N
183
188
184
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_disabled"));
189
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_disabled")); // NOI18N
185
        jCheckBox1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
190
        jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
186
        jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
187
        gridBagConstraints = new java.awt.GridBagConstraints();
191
        gridBagConstraints = new java.awt.GridBagConstraints();
188
        gridBagConstraints.gridx = 1;
192
        gridBagConstraints.gridx = 1;
189
        gridBagConstraints.gridy = 2;
193
        gridBagConstraints.gridy = 2;
190
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
194
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
191
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
195
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
192
        gridBagConstraints.weighty = 1.0;
196
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
193
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12);
194
        add(jCheckBox1, gridBagConstraints);
197
        add(jCheckBox1, gridBagConstraints);
195
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_disabled"));
198
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_disabled")); // NOI18N
196
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_disabled"));
199
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_disabled")); // NOI18N
197
200
198
        gridBagConstraints = new java.awt.GridBagConstraints();
201
        gridBagConstraints = new java.awt.GridBagConstraints();
199
        gridBagConstraints.gridx = 1;
202
        gridBagConstraints.gridx = 1;
Lines 203-218 Link Here
203
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
206
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
204
        add(jTextField2, gridBagConstraints);
207
        add(jTextField2, gridBagConstraints);
205
208
206
    }
209
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Id")); // NOI18N
207
    // </editor-fold>//GEN-END:initComponents
210
        gridBagConstraints = new java.awt.GridBagConstraints();
211
        gridBagConstraints.gridx = 0;
212
        gridBagConstraints.gridy = 3;
213
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
214
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
215
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
216
        add(jLabel4, gridBagConstraints);
217
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Id")); // NOI18N
218
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Id")); // NOI18N
208
    
219
    
220
        jCheckBox2.setSelected(true);
221
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_IdSelected")); // NOI18N
222
        jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
223
        gridBagConstraints = new java.awt.GridBagConstraints();
224
        gridBagConstraints.gridx = 1;
225
        gridBagConstraints.gridy = 3;
226
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
227
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
228
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
229
        add(jCheckBox2, gridBagConstraints);
230
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_IdSelected")); // NOI18N
231
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_IdSelected")); // NOI18N
209
    
232
    
233
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_Label")); // NOI18N
234
        gridBagConstraints = new java.awt.GridBagConstraints();
235
        gridBagConstraints.gridx = 0;
236
        gridBagConstraints.gridy = 4;
237
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
238
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
239
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
240
        add(jLabel5, gridBagConstraints);
241
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_Label")); // NOI18N
242
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_Label")); // NOI18N
243
244
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "LBL_FILESEL_LabelSelected")); // NOI18N
245
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
246
        gridBagConstraints = new java.awt.GridBagConstraints();
247
        gridBagConstraints.gridx = 1;
248
        gridBagConstraints.gridy = 4;
249
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
250
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
251
        gridBagConstraints.weighty = 1.0;
252
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
253
        add(jCheckBox3, gridBagConstraints);
254
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSN_FILESEL_LabelSelected")); // NOI18N
255
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FILESELCustomizer.class, "ACSD_FILESEL_LabelSelected")); // NOI18N
256
    }// </editor-fold>//GEN-END:initComponents
257
    
258
    
210
    // Variables declaration - do not modify//GEN-BEGIN:variables
259
    // Variables declaration - do not modify//GEN-BEGIN:variables
211
    private javax.swing.ButtonGroup buttonGroup1;
260
    private javax.swing.ButtonGroup buttonGroup1;
212
    private javax.swing.JCheckBox jCheckBox1;
261
    private javax.swing.JCheckBox jCheckBox1;
262
    private javax.swing.JCheckBox jCheckBox2;
263
    private javax.swing.JCheckBox jCheckBox3;
213
    private javax.swing.JLabel jLabel1;
264
    private javax.swing.JLabel jLabel1;
214
    private javax.swing.JLabel jLabel2;
265
    private javax.swing.JLabel jLabel2;
215
    private javax.swing.JLabel jLabel3;
266
    private javax.swing.JLabel jLabel3;
267
    private javax.swing.JLabel jLabel4;
268
    private javax.swing.JLabel jLabel5;
216
    private javax.swing.JTextField jTextField1;
269
    private javax.swing.JTextField jTextField1;
217
    private javax.swing.JTextField jTextField2;
270
    private javax.swing.JTextField jTextField2;
218
    // End of variables declaration//GEN-END:variables
271
    // End of variables declaration//GEN-END:variables
(-)html/src/org/netbeans/modules/html/palette/items/FORM.java (-2 / +19 lines)
Lines 68-73 Link Here
68
    private String method = METHOD_DEFAULT;
68
    private String method = METHOD_DEFAULT;
69
    private String enc = ENC_DEFAULT;
69
    private String enc = ENC_DEFAULT;
70
    private String name = "";
70
    private String name = "";
71
    private String id= "";
71
    
72
    
72
    public FORM() {
73
    public FORM() {
73
    }
74
    }
Lines 105-113 Link Here
105
        String strName = "";
106
        String strName = "";
106
        if (name.length() > 0)
107
        if (name.length() > 0)
107
            strName = " name=\"" + name + "\""; // NOI18N
108
            strName = " name=\"" + name + "\""; // NOI18N
109
        String strId = "";
110
        if(id.length()>0)
111
            strId= " id=\""+id+"\"";
112
        String formBody = "<form" + strName + strAction + strMethod + strEnc + strId + ">\n</form>"; // NOI18N
108
113
109
        String formBody = "<form" + strName + strAction + strMethod + strEnc + ">\n</form>"; // NOI18N
110
        
111
        return formBody;
114
        return formBody;
112
    }
115
    }
113
116
Lines 143-146 Link Here
143
        this.name = name;
146
        this.name = name;
144
    }
147
    }
145
        
148
        
149
    /**
150
     * @return the id
151
     */
152
    public String getId() {
153
        return id;
146
}
154
}
155
156
    /**
157
     * @param id the id to set
158
     */
159
    public void setId(String id) {
160
        this.id = id;
161
    }
162
        
163
}
(-)html/src/org/netbeans/modules/html/palette/items/FORMCustomizer.form (-2 / +29 lines)
Lines 45-51 Link Here
45
      </AccessibilityProperties>
45
      </AccessibilityProperties>
46
      <Constraints>
46
      <Constraints>
47
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
47
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
48
          <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="1.0"/>
48
          <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
49
        </Constraint>
49
        </Constraint>
50
      </Constraints>
50
      </Constraints>
51
    </Component>
51
    </Component>
Lines 154-160 Link Here
154
      </Properties>
154
      </Properties>
155
      <Constraints>
155
      <Constraints>
156
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
156
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
157
          <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="1.0" weightY="1.0"/>
157
          <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="1.0" weightY="0.0"/>
158
        </Constraint>
158
        </Constraint>
159
      </Constraints>
159
      </Constraints>
160
    </Component>
160
    </Component>
Lines 271-275 Link Here
271
        </Constraint>
271
        </Constraint>
272
      </Constraints>
272
      </Constraints>
273
    </Component>
273
    </Component>
274
    <Component class="javax.swing.JLabel" name="jLabel5">
275
      <Properties>
276
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
277
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_FORM_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
278
        </Property>
279
      </Properties>
280
      <AccessibilityProperties>
281
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
282
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_FORM_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
283
        </Property>
284
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
285
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_FORM_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
286
        </Property>
287
      </AccessibilityProperties>
288
      <Constraints>
289
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
290
          <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
291
        </Constraint>
292
      </Constraints>
293
    </Component>
294
    <Component class="javax.swing.JTextField" name="jTextField2">
295
      <Constraints>
296
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
297
          <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="11" weightX="0.0" weightY="1.0"/>
298
        </Constraint>
299
      </Constraints>
300
    </Component>
274
  </SubComponents>
301
  </SubComponents>
275
</Form>
302
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/FORMCustomizer.java (-3 / +26 lines)
Lines 131-136 Link Here
131
            form.setEnc(FORM.ENC_MULTI);
131
            form.setEnc(FORM.ENC_MULTI);
132
        
132
        
133
        String name = jTextField4.getText();
133
        String name = jTextField4.getText();
134
        form.setId(jTextField2.getText());
134
        form.setName(name);
135
        form.setName(name);
135
        
136
        
136
    }
137
    }
Lines 172-177 Link Here
172
        jRadioButton2 = new javax.swing.JRadioButton();
173
        jRadioButton2 = new javax.swing.JRadioButton();
173
        jRadioButton3 = new javax.swing.JRadioButton();
174
        jRadioButton3 = new javax.swing.JRadioButton();
174
        jRadioButton4 = new javax.swing.JRadioButton();
175
        jRadioButton4 = new javax.swing.JRadioButton();
176
        jLabel5 = new javax.swing.JLabel();
177
        jTextField2 = new javax.swing.JTextField();
175
178
176
        jFileChooser1.setCurrentDirectory(null);
179
        jFileChooser1.setCurrentDirectory(null);
177
180
Lines 184-190 Link Here
184
        gridBagConstraints.gridy = 6;
187
        gridBagConstraints.gridy = 6;
185
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
188
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
186
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
189
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
187
        gridBagConstraints.weighty = 1.0;
188
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
190
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
189
        add(jLabel4, gridBagConstraints);
191
        add(jLabel4, gridBagConstraints);
190
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSN_FORM_Name")); // NOI18N
192
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSN_FORM_Name")); // NOI18N
Lines 255-262 Link Here
255
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
257
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
256
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
258
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
257
        gridBagConstraints.weightx = 1.0;
259
        gridBagConstraints.weightx = 1.0;
258
        gridBagConstraints.weighty = 1.0;
260
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
259
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
260
        add(jTextField4, gridBagConstraints);
261
        add(jTextField4, gridBagConstraints);
261
262
262
        buttonGroup1.add(jRadioButton1);
263
        buttonGroup1.add(jRadioButton1);
Lines 325-330 Link Here
325
        add(jRadioButton4, gridBagConstraints);
326
        add(jRadioButton4, gridBagConstraints);
326
        jRadioButton4.getAccessibleContext().setAccessibleName("multipart/form-data");
327
        jRadioButton4.getAccessibleContext().setAccessibleName("multipart/form-data");
327
        jRadioButton4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSD_FORM_multi")); // NOI18N
328
        jRadioButton4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSD_FORM_multi")); // NOI18N
329
330
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "LBL_FORM_Id")); // NOI18N
331
        gridBagConstraints = new java.awt.GridBagConstraints();
332
        gridBagConstraints.gridx = 0;
333
        gridBagConstraints.gridy = 7;
334
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
335
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
336
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
337
        add(jLabel5, gridBagConstraints);
338
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSN_FORM_Id")); // NOI18N
339
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(FORMCustomizer.class, "ACSD_FORM_Id")); // NOI18N
340
341
        gridBagConstraints = new java.awt.GridBagConstraints();
342
        gridBagConstraints.gridx = 1;
343
        gridBagConstraints.gridy = 7;
344
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
345
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
346
        gridBagConstraints.weighty = 1.0;
347
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
348
        add(jTextField2, gridBagConstraints);
328
    }// </editor-fold>//GEN-END:initComponents
349
    }// </editor-fold>//GEN-END:initComponents
329
350
330
    private void jRadioButton2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButton2ItemStateChanged
351
    private void jRadioButton2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jRadioButton2ItemStateChanged
Lines 381-391 Link Here
381
    private javax.swing.JLabel jLabel2;
402
    private javax.swing.JLabel jLabel2;
382
    private javax.swing.JLabel jLabel3;
403
    private javax.swing.JLabel jLabel3;
383
    private javax.swing.JLabel jLabel4;
404
    private javax.swing.JLabel jLabel4;
405
    private javax.swing.JLabel jLabel5;
384
    private javax.swing.JRadioButton jRadioButton1;
406
    private javax.swing.JRadioButton jRadioButton1;
385
    private javax.swing.JRadioButton jRadioButton2;
407
    private javax.swing.JRadioButton jRadioButton2;
386
    private javax.swing.JRadioButton jRadioButton3;
408
    private javax.swing.JRadioButton jRadioButton3;
387
    private javax.swing.JRadioButton jRadioButton4;
409
    private javax.swing.JRadioButton jRadioButton4;
388
    private javax.swing.JTextField jTextField1;
410
    private javax.swing.JTextField jTextField1;
411
    private javax.swing.JTextField jTextField2;
389
    private javax.swing.JTextField jTextField4;
412
    private javax.swing.JTextField jTextField4;
390
    // End of variables declaration//GEN-END:variables
413
    // End of variables declaration//GEN-END:variables
391
    
414
    
(-)html/src/org/netbeans/modules/html/palette/items/IMG.java (-2 / +17 lines)
Lines 59-65 Link Here
59
    private String width = "";
59
    private String width = "";
60
    private String height = "";
60
    private String height = "";
61
    private String alttext = "";
61
    private String alttext = "";
62
62
    private boolean generateFigure;
63
    public IMG() {
63
    public IMG() {
64
    }
64
    }
65
65
Lines 98-104 Link Here
98
            strAlt = " alt=\"" + alttext + "\""; // NOI18N
98
            strAlt = " alt=\"" + alttext + "\""; // NOI18N
99
99
100
        String imgBody = "<img" + strLoc + strWidth + strHeight + strAlt + "/>\n"; // NOI18N
100
        String imgBody = "<img" + strLoc + strWidth + strHeight + strAlt + "/>\n"; // NOI18N
101
        
101
        if(generateFigure)
102
            imgBody = "<figure>\n"+imgBody+"\n<figcaption>"+strAlt+"</figcaption>\n</figure>";
102
        return imgBody;
103
        return imgBody;
103
    }
104
    }
104
105
Lines 134-137 Link Here
134
        this.alttext = alttext;
135
        this.alttext = alttext;
135
    }
136
    }
136
        
137
        
138
    /**
139
     * @return the figure
140
     */
141
    public boolean isFigure() {
142
        return generateFigure;
137
}
143
}
144
145
    /**
146
     * @param figure the figure to set
147
     */
148
    public void setFigure(boolean figure) {
149
        this.generateFigure = figure;
150
    }
151
        
152
}
(-)html/src/org/netbeans/modules/html/palette/items/IMGCustomizer.form (-3 / +45 lines)
Lines 1-6 Link Here
1
<?xml version="1.0" encoding="UTF-8" ?>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
2
3
<Form version="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
3
<Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
4
  <NonVisualComponents>
4
  <NonVisualComponents>
5
    <Component class="javax.swing.JFileChooser" name="jFileChooser1">
5
    <Component class="javax.swing.JFileChooser" name="jFileChooser1">
6
      <Properties>
6
      <Properties>
Lines 10-15 Link Here
10
  </NonVisualComponents>
10
  </NonVisualComponents>
11
  <AuxValues>
11
  <AuxValues>
12
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
12
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
13
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
14
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
13
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
15
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
14
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
16
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
15
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
17
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
Lines 39-45 Link Here
39
      </AccessibilityProperties>
41
      </AccessibilityProperties>
40
      <Constraints>
42
      <Constraints>
41
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
43
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
42
          <GridBagConstraints gridX="0" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="1.0"/>
44
          <GridBagConstraints gridX="0" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
43
        </Constraint>
45
        </Constraint>
44
      </Constraints>
46
      </Constraints>
45
    </Component>
47
    </Component>
Lines 186-194 Link Here
186
      </Properties>
188
      </Properties>
187
      <Constraints>
189
      <Constraints>
188
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
190
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
189
          <GridBagConstraints gridX="1" gridY="3" gridWidth="2" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="1.0" weightY="1.0"/>
191
          <GridBagConstraints gridX="1" gridY="3" gridWidth="2" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="1.0" weightY="0.0"/>
190
        </Constraint>
192
        </Constraint>
191
      </Constraints>
193
      </Constraints>
192
    </Component>
194
    </Component>
195
    <Component class="javax.swing.JLabel" name="jLabel5">
196
      <Properties>
197
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
198
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_IMG_Figure" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
199
        </Property>
200
      </Properties>
201
      <AccessibilityProperties>
202
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
203
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_IMG_Figure" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
204
        </Property>
205
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
206
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_IMG_Figure" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
207
        </Property>
208
      </AccessibilityProperties>
209
      <Constraints>
210
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
211
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
212
        </Constraint>
213
      </Constraints>
214
    </Component>
215
    <Component class="javax.swing.JCheckBox" name="jCheckBox1">
216
      <Properties>
217
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
218
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_IMG_FigureSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
219
        </Property>
220
      </Properties>
221
      <AccessibilityProperties>
222
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
223
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_IMG_FigureSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
224
        </Property>
225
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
226
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_IMG_FigureSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
227
        </Property>
228
      </AccessibilityProperties>
229
      <Constraints>
230
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
231
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="11" weightX="0.0" weightY="1.0"/>
232
        </Constraint>
233
      </Constraints>
234
    </Component>
193
  </SubComponents>
235
  </SubComponents>
194
</Form>
236
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/IMGCustomizer.java (-22 / +45 lines)
Lines 143-149 Link Here
143
        
143
        
144
        String height = jTextField3.getText();
144
        String height = jTextField3.getText();
145
        img.setHeight(height);
145
        img.setHeight(height);
146
        
146
        img.setFigure(jCheckBox1.isSelected());
147
        String alt = jTextField4.getText();
147
        String alt = jTextField4.getText();
148
        img.setAlttext(alt);
148
        img.setAlttext(alt);
149
        
149
        
Lines 154-160 Link Here
154
     * WARNING: Do NOT modify this code. The content of this method is
154
     * WARNING: Do NOT modify this code. The content of this method is
155
     * always regenerated by the Form Editor.
155
     * always regenerated by the Form Editor.
156
     */
156
     */
157
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
157
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
158
    private void initComponents() {
158
    private void initComponents() {
159
        java.awt.GridBagConstraints gridBagConstraints;
159
        java.awt.GridBagConstraints gridBagConstraints;
160
160
Lines 168-190 Link Here
168
        jLabel2 = new javax.swing.JLabel();
168
        jLabel2 = new javax.swing.JLabel();
169
        jLabel3 = new javax.swing.JLabel();
169
        jLabel3 = new javax.swing.JLabel();
170
        jTextField4 = new javax.swing.JTextField();
170
        jTextField4 = new javax.swing.JTextField();
171
        jLabel5 = new javax.swing.JLabel();
172
        jCheckBox1 = new javax.swing.JCheckBox();
171
173
172
        jFileChooser1.setCurrentDirectory(null);
174
        jFileChooser1.setCurrentDirectory(null);
173
175
174
        setLayout(new java.awt.GridBagLayout());
176
        setLayout(new java.awt.GridBagLayout());
175
177
176
        jLabel4.setLabelFor(jTextField4);
178
        jLabel4.setLabelFor(jTextField4);
177
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Alt"));
179
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Alt")); // NOI18N
178
        gridBagConstraints = new java.awt.GridBagConstraints();
180
        gridBagConstraints = new java.awt.GridBagConstraints();
179
        gridBagConstraints.gridx = 0;
181
        gridBagConstraints.gridx = 0;
180
        gridBagConstraints.gridy = 3;
182
        gridBagConstraints.gridy = 3;
181
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
183
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
182
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
184
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
183
        gridBagConstraints.weighty = 1.0;
185
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
184
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
185
        add(jLabel4, gridBagConstraints);
186
        add(jLabel4, gridBagConstraints);
186
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Alt"));
187
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Alt")); // NOI18N
187
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Alt"));
188
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Alt")); // NOI18N
188
189
189
        jTextField1.setColumns(30);
190
        jTextField1.setColumns(30);
190
        gridBagConstraints = new java.awt.GridBagConstraints();
191
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 196-216 Link Here
196
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
197
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
197
        add(jTextField1, gridBagConstraints);
198
        add(jTextField1, gridBagConstraints);
198
199
199
        org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Browse"));
200
        org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Browse")); // NOI18N
200
        jButton1.addActionListener(new java.awt.event.ActionListener() {
201
        jButton1.addActionListener(new java.awt.event.ActionListener() {
201
            public void actionPerformed(java.awt.event.ActionEvent evt) {
202
            public void actionPerformed(java.awt.event.ActionEvent evt) {
202
                jButton1ActionPerformed(evt);
203
                jButton1ActionPerformed(evt);
203
            }
204
            }
204
        });
205
        });
205
206
        gridBagConstraints = new java.awt.GridBagConstraints();
206
        gridBagConstraints = new java.awt.GridBagConstraints();
207
        gridBagConstraints.gridx = 3;
207
        gridBagConstraints.gridx = 3;
208
        gridBagConstraints.gridy = 0;
208
        gridBagConstraints.gridy = 0;
209
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
209
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
210
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
210
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
211
        add(jButton1, gridBagConstraints);
211
        add(jButton1, gridBagConstraints);
212
        jButton1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Browse"));
212
        jButton1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Browse")); // NOI18N
213
        jButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Browse"));
213
        jButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Browse")); // NOI18N
214
214
215
        jTextField2.setColumns(10);
215
        jTextField2.setColumns(10);
216
        jTextField2.setMinimumSize(new java.awt.Dimension(100, 19));
216
        jTextField2.setMinimumSize(new java.awt.Dimension(100, 19));
Lines 233-239 Link Here
233
        add(jTextField3, gridBagConstraints);
233
        add(jTextField3, gridBagConstraints);
234
234
235
        jLabel1.setLabelFor(jTextField1);
235
        jLabel1.setLabelFor(jTextField1);
236
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Location"));
236
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Location")); // NOI18N
237
        gridBagConstraints = new java.awt.GridBagConstraints();
237
        gridBagConstraints = new java.awt.GridBagConstraints();
238
        gridBagConstraints.gridx = 0;
238
        gridBagConstraints.gridx = 0;
239
        gridBagConstraints.gridy = 0;
239
        gridBagConstraints.gridy = 0;
Lines 241-251 Link Here
241
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
241
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
242
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
242
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
243
        add(jLabel1, gridBagConstraints);
243
        add(jLabel1, gridBagConstraints);
244
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Location"));
244
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Location")); // NOI18N
245
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Location"));
245
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Location")); // NOI18N
246
246
247
        jLabel2.setLabelFor(jTextField2);
247
        jLabel2.setLabelFor(jTextField2);
248
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Width"));
248
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Width")); // NOI18N
249
        gridBagConstraints = new java.awt.GridBagConstraints();
249
        gridBagConstraints = new java.awt.GridBagConstraints();
250
        gridBagConstraints.gridx = 0;
250
        gridBagConstraints.gridx = 0;
251
        gridBagConstraints.gridy = 1;
251
        gridBagConstraints.gridy = 1;
Lines 253-263 Link Here
253
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
253
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
254
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
254
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
255
        add(jLabel2, gridBagConstraints);
255
        add(jLabel2, gridBagConstraints);
256
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Width"));
256
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Width")); // NOI18N
257
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Width"));
257
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Width")); // NOI18N
258
258
259
        jLabel3.setLabelFor(jTextField3);
259
        jLabel3.setLabelFor(jTextField3);
260
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Height"));
260
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Height")); // NOI18N
261
        gridBagConstraints = new java.awt.GridBagConstraints();
261
        gridBagConstraints = new java.awt.GridBagConstraints();
262
        gridBagConstraints.gridx = 0;
262
        gridBagConstraints.gridx = 0;
263
        gridBagConstraints.gridy = 2;
263
        gridBagConstraints.gridy = 2;
Lines 265-272 Link Here
265
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
265
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
266
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
266
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
267
        add(jLabel3, gridBagConstraints);
267
        add(jLabel3, gridBagConstraints);
268
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Height"));
268
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Height")); // NOI18N
269
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Height"));
269
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Height")); // NOI18N
270
270
271
        jTextField4.setColumns(30);
271
        jTextField4.setColumns(30);
272
        gridBagConstraints = new java.awt.GridBagConstraints();
272
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 276-285 Link Here
276
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
276
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
277
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
277
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
278
        gridBagConstraints.weightx = 1.0;
278
        gridBagConstraints.weightx = 1.0;
279
        gridBagConstraints.weighty = 1.0;
279
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
280
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
281
        add(jTextField4, gridBagConstraints);
280
        add(jTextField4, gridBagConstraints);
282
281
282
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_Figure")); // NOI18N
283
        gridBagConstraints = new java.awt.GridBagConstraints();
284
        gridBagConstraints.gridx = 0;
285
        gridBagConstraints.gridy = 4;
286
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
287
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
288
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
289
        add(jLabel5, gridBagConstraints);
290
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_Figure")); // NOI18N
291
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_Figure")); // NOI18N
292
293
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "LBL_IMG_FigureSelected")); // NOI18N
294
        gridBagConstraints = new java.awt.GridBagConstraints();
295
        gridBagConstraints.gridx = 1;
296
        gridBagConstraints.gridy = 4;
297
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
298
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
299
        gridBagConstraints.weighty = 1.0;
300
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
301
        add(jCheckBox1, gridBagConstraints);
302
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSN_IMG_FigureSelected")); // NOI18N
303
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(IMGCustomizer.class, "ACSD_IMG_FigureSelected")); // NOI18N
283
    }// </editor-fold>//GEN-END:initComponents
304
    }// </editor-fold>//GEN-END:initComponents
284
305
285
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
306
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
Lines 333-343 Link Here
333
    
354
    
334
    // Variables declaration - do not modify//GEN-BEGIN:variables
355
    // Variables declaration - do not modify//GEN-BEGIN:variables
335
    private javax.swing.JButton jButton1;
356
    private javax.swing.JButton jButton1;
357
    private javax.swing.JCheckBox jCheckBox1;
336
    private javax.swing.JFileChooser jFileChooser1;
358
    private javax.swing.JFileChooser jFileChooser1;
337
    private javax.swing.JLabel jLabel1;
359
    private javax.swing.JLabel jLabel1;
338
    private javax.swing.JLabel jLabel2;
360
    private javax.swing.JLabel jLabel2;
339
    private javax.swing.JLabel jLabel3;
361
    private javax.swing.JLabel jLabel3;
340
    private javax.swing.JLabel jLabel4;
362
    private javax.swing.JLabel jLabel4;
363
    private javax.swing.JLabel jLabel5;
341
    private javax.swing.JTextField jTextField1;
364
    private javax.swing.JTextField jTextField1;
342
    private javax.swing.JTextField jTextField2;
365
    private javax.swing.JTextField jTextField2;
343
    private javax.swing.JTextField jTextField3;
366
    private javax.swing.JTextField jTextField3;
(-)html/src/org/netbeans/modules/html/palette/items/INPUT.java (-6 / +35 lines)
Lines 41-54 Link Here
41
 * Version 2 license, then the option applies only if the new code is
41
 * Version 2 license, then the option applies only if the new code is
42
 * made subject to such option by the copyright holder.
42
 * made subject to such option by the copyright holder.
43
 */
43
 */
44
45
package org.netbeans.modules.html.palette.items;
44
package org.netbeans.modules.html.palette.items;
45
46
import javax.swing.text.BadLocationException;
46
import javax.swing.text.BadLocationException;
47
import javax.swing.text.JTextComponent;
47
import javax.swing.text.JTextComponent;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
49
import org.openide.text.ActiveEditorDrop;
49
import org.openide.text.ActiveEditorDrop;
50
50
51
52
/**
51
/**
53
 *
52
 *
54
 * @author Libor Kotouc
53
 * @author Libor Kotouc
Lines 60-66 Link Here
60
    public static final String TYPE_HIDDEN = "hidden"; // NOI18N
59
    public static final String TYPE_HIDDEN = "hidden"; // NOI18N
61
    public static final String STATE_DISABLED = "disabled"; // NOI18N
60
    public static final String STATE_DISABLED = "disabled"; // NOI18N
62
    public static final String STATE_READONLY = "readonly"; // NOI18N
61
    public static final String STATE_READONLY = "readonly"; // NOI18N
63
    
64
    private String name = "";
62
    private String name = "";
65
    private String value = "";
63
    private String value = "";
66
    private String type = TYPE_TEXT;
64
    private String type = TYPE_TEXT;
Lines 68-73 Link Here
68
    private boolean hidden = false;
66
    private boolean hidden = false;
69
    private boolean readonly = false;
67
    private boolean readonly = false;
70
    private String width = "";
68
    private String width = "";
69
    private boolean generateID = false;
70
    private boolean generateLabel = false;
71
    
71
    
72
    public INPUT() {
72
    public INPUT() {
73
    }
73
    }
Lines 100-110 Link Here
100
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
100
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
101
101
102
        String strWidth = "";
102
        String strWidth = "";
103
        if (width.length() > 0)
103
        if (width.length() > 0) {
104
            strWidth = " size=\"" + width + "\""; // NOI18N
104
            strWidth = " size=\"" + width + "\""; // NOI18N
105
        }
106
        String strId = (generateID ? " id=\"" + name + "\" " : ""); // NOI18N
107
        String strLabel = (generateLabel ? "<label for=\"" + name + "\"></label>" : "");
108
        String inputBody = strLabel+"<input" + strType + strName + strId + strValue + strWidth + strReadOnly + strDisabled + " />"; // NOI18N
105
        
109
        
106
        String inputBody = "<input" + strType + strName + strValue + strWidth + strReadOnly + strDisabled + " />"; // NOI18N
107
        
108
        return inputBody;
110
        return inputBody;
109
    }
111
    }
110
112
Lines 164-167 Link Here
164
        this.readonly = readonly;
166
        this.readonly = readonly;
165
    }
167
    }
166
        
168
        
169
    /**
170
     * @return the generateID
171
     */
172
    public boolean isGenerateID() {
173
        return generateID;
167
}
174
}
175
176
    /**
177
     * @param generateID the generateID to set
178
     */
179
    public void setGenerateID(boolean generateID) {
180
        this.generateID = generateID;
181
    }
182
183
    /**
184
     * @return the generateLabel
185
     */
186
    public boolean isGenerateLabel() {
187
        return generateLabel;
188
    }
189
190
    /**
191
     * @param generateLabel the generateLabel to set
192
     */
193
    public void setGenerateLabel(boolean generateLabel) {
194
        this.generateLabel = generateLabel;
195
    }
196
}
(-)html/src/org/netbeans/modules/html/palette/items/INPUTCustomizer.form (-2 / +101 lines)
Lines 5-10 Link Here
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
5
    <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
6
    </Component>
6
    </Component>
7
  </NonVisualComponents>
7
  </NonVisualComponents>
8
  <Properties>
9
    <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
10
      <Dimension value="[493, 311]"/>
11
    </Property>
12
    <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
13
      <Dimension value="[685, 311]"/>
14
    </Property>
15
  </Properties>
8
  <AuxValues>
16
  <AuxValues>
9
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
17
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
10
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
18
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
Lines 38-44 Link Here
38
      </AccessibilityProperties>
46
      </AccessibilityProperties>
39
      <Constraints>
47
      <Constraints>
40
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
48
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
41
          <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="1.0"/>
49
          <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
42
        </Constraint>
50
        </Constraint>
43
      </Constraints>
51
      </Constraints>
44
    </Component>
52
    </Component>
Lines 121-127 Link Here
121
    <Component class="javax.swing.JTextField" name="jTextField4">
129
    <Component class="javax.swing.JTextField" name="jTextField4">
122
      <Constraints>
130
      <Constraints>
123
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
131
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
124
          <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
132
          <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
125
        </Constraint>
133
        </Constraint>
126
      </Constraints>
134
      </Constraints>
127
    </Component>
135
    </Component>
Lines 293-297 Link Here
293
        </Constraint>
301
        </Constraint>
294
      </Constraints>
302
      </Constraints>
295
    </Component>
303
    </Component>
304
    <Component class="javax.swing.JLabel" name="jLabel6">
305
      <Properties>
306
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
307
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_INPUT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
308
        </Property>
309
      </Properties>
310
      <AccessibilityProperties>
311
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
312
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_INPUT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
313
        </Property>
314
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
315
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_INPUT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
316
        </Property>
317
      </AccessibilityProperties>
318
      <Constraints>
319
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
320
          <GridBagConstraints gridX="0" gridY="8" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="0.0"/>
321
        </Constraint>
322
      </Constraints>
323
    </Component>
324
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
325
      <Properties>
326
        <Property name="selected" type="boolean" value="true"/>
327
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
328
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_INPUT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
329
        </Property>
330
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
331
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
332
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
333
          </Border>
334
        </Property>
335
      </Properties>
336
      <AccessibilityProperties>
337
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
338
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_INPUT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
339
        </Property>
340
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
341
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_INPUT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
342
        </Property>
343
      </AccessibilityProperties>
344
      <Constraints>
345
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
346
          <GridBagConstraints gridX="1" gridY="8" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="0.0"/>
347
        </Constraint>
348
      </Constraints>
349
    </Component>
350
    <Component class="javax.swing.JLabel" name="jLabel7">
351
      <Properties>
352
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
353
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_INPUT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
354
        </Property>
355
      </Properties>
356
      <AccessibilityProperties>
357
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
358
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_INPUT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
359
        </Property>
360
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
361
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_INPUT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
362
        </Property>
363
      </AccessibilityProperties>
364
      <Constraints>
365
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
366
          <GridBagConstraints gridX="0" gridY="9" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="1.0"/>
367
        </Constraint>
368
      </Constraints>
369
    </Component>
370
    <Component class="javax.swing.JCheckBox" name="jCheckBox4">
371
      <Properties>
372
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
373
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_INPUT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
374
        </Property>
375
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
376
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
377
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
378
          </Border>
379
        </Property>
380
      </Properties>
381
      <AccessibilityProperties>
382
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
383
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_INPUT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
384
        </Property>
385
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
386
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_INPUT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
387
        </Property>
388
      </AccessibilityProperties>
389
      <Constraints>
390
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
391
          <GridBagConstraints gridX="1" gridY="9" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="1.0"/>
392
        </Constraint>
393
      </Constraints>
394
    </Component>
296
  </SubComponents>
395
  </SubComponents>
297
</Form>
396
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/INPUTCustomizer.java (-48 / +99 lines)
Lines 121-127 Link Here
121
121
122
        input.setDisabled(jCheckBox1.isSelected());
122
        input.setDisabled(jCheckBox1.isSelected());
123
        input.setReadonly(jCheckBox2.isSelected());
123
        input.setReadonly(jCheckBox2.isSelected());
124
        
124
        input.setGenerateID(jCheckBox3.isSelected());
125
        input.setGenerateLabel(jCheckBox4.isSelected());
125
        String width = jTextField4.getText();
126
        String width = jTextField4.getText();
126
        input.setWidth(width);
127
        input.setWidth(width);
127
    }
128
    }
Lines 131-137 Link Here
131
     * WARNING: Do NOT modify this code. The content of this method is
132
     * WARNING: Do NOT modify this code. The content of this method is
132
     * always regenerated by the Form Editor.
133
     * always regenerated by the Form Editor.
133
     */
134
     */
134
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
135
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
135
    private void initComponents() {
136
    private void initComponents() {
136
        java.awt.GridBagConstraints gridBagConstraints;
137
        java.awt.GridBagConstraints gridBagConstraints;
137
138
Lines 149-169 Link Here
149
        jCheckBox2 = new javax.swing.JCheckBox();
150
        jCheckBox2 = new javax.swing.JCheckBox();
150
        jLabel5 = new javax.swing.JLabel();
151
        jLabel5 = new javax.swing.JLabel();
151
        jTextField2 = new javax.swing.JTextField();
152
        jTextField2 = new javax.swing.JTextField();
153
        jLabel6 = new javax.swing.JLabel();
154
        jCheckBox3 = new javax.swing.JCheckBox();
155
        jLabel7 = new javax.swing.JLabel();
156
        jCheckBox4 = new javax.swing.JCheckBox();
152
157
158
        setMinimumSize(new java.awt.Dimension(493, 311));
159
        setPreferredSize(new java.awt.Dimension(685, 311));
153
        setLayout(new java.awt.GridBagLayout());
160
        setLayout(new java.awt.GridBagLayout());
154
161
155
        jLabel4.setLabelFor(jTextField4);
162
        jLabel4.setLabelFor(jTextField4);
156
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Width"));
163
        org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Width")); // NOI18N
157
        gridBagConstraints = new java.awt.GridBagConstraints();
164
        gridBagConstraints = new java.awt.GridBagConstraints();
158
        gridBagConstraints.gridx = 0;
165
        gridBagConstraints.gridx = 0;
159
        gridBagConstraints.gridy = 7;
166
        gridBagConstraints.gridy = 7;
160
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
167
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
161
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
168
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
162
        gridBagConstraints.weighty = 1.0;
169
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
163
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
164
        add(jLabel4, gridBagConstraints);
170
        add(jLabel4, gridBagConstraints);
165
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Width"));
171
        jLabel4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Width")); // NOI18N
166
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Width"));
172
        jLabel4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Width")); // NOI18N
167
173
168
        jTextField1.setColumns(30);
174
        jTextField1.setColumns(30);
169
        gridBagConstraints = new java.awt.GridBagConstraints();
175
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 177-183 Link Here
177
        add(jTextField1, gridBagConstraints);
183
        add(jTextField1, gridBagConstraints);
178
184
179
        jLabel1.setLabelFor(jTextField1);
185
        jLabel1.setLabelFor(jTextField1);
180
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Name"));
186
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Name")); // NOI18N
181
        gridBagConstraints = new java.awt.GridBagConstraints();
187
        gridBagConstraints = new java.awt.GridBagConstraints();
182
        gridBagConstraints.gridx = 0;
188
        gridBagConstraints.gridx = 0;
183
        gridBagConstraints.gridy = 0;
189
        gridBagConstraints.gridy = 0;
Lines 185-194 Link Here
185
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
191
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
186
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
192
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
187
        add(jLabel1, gridBagConstraints);
193
        add(jLabel1, gridBagConstraints);
188
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Name"));
194
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Name")); // NOI18N
189
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Name"));
195
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Name")); // NOI18N
190
196
191
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Type"));
197
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Type")); // NOI18N
192
        gridBagConstraints = new java.awt.GridBagConstraints();
198
        gridBagConstraints = new java.awt.GridBagConstraints();
193
        gridBagConstraints.gridx = 0;
199
        gridBagConstraints.gridx = 0;
194
        gridBagConstraints.gridy = 2;
200
        gridBagConstraints.gridy = 2;
Lines 196-205 Link Here
196
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
202
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
197
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
203
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
198
        add(jLabel2, gridBagConstraints);
204
        add(jLabel2, gridBagConstraints);
199
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Type"));
205
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Type")); // NOI18N
200
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Type"));
206
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Type")); // NOI18N
201
207
202
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_State"));
208
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_State")); // NOI18N
203
        gridBagConstraints = new java.awt.GridBagConstraints();
209
        gridBagConstraints = new java.awt.GridBagConstraints();
204
        gridBagConstraints.gridx = 0;
210
        gridBagConstraints.gridx = 0;
205
        gridBagConstraints.gridy = 5;
211
        gridBagConstraints.gridy = 5;
Lines 207-229 Link Here
207
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
213
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
208
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
214
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
209
        add(jLabel3, gridBagConstraints);
215
        add(jLabel3, gridBagConstraints);
210
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_State"));
216
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_State")); // NOI18N
211
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_state"));
217
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_state")); // NOI18N
212
218
213
        gridBagConstraints = new java.awt.GridBagConstraints();
219
        gridBagConstraints = new java.awt.GridBagConstraints();
214
        gridBagConstraints.gridx = 1;
220
        gridBagConstraints.gridx = 1;
215
        gridBagConstraints.gridy = 7;
221
        gridBagConstraints.gridy = 7;
216
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
222
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
217
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
223
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
218
        gridBagConstraints.weighty = 1.0;
224
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
219
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12);
220
        add(jTextField4, gridBagConstraints);
225
        add(jTextField4, gridBagConstraints);
221
226
222
        buttonGroup1.add(jRadioButton1);
227
        buttonGroup1.add(jRadioButton1);
223
        jRadioButton1.setSelected(true);
228
        jRadioButton1.setSelected(true);
224
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_text"));
229
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_text")); // NOI18N
225
        jRadioButton1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
230
        jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
226
        jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
227
        gridBagConstraints = new java.awt.GridBagConstraints();
231
        gridBagConstraints = new java.awt.GridBagConstraints();
228
        gridBagConstraints.gridx = 1;
232
        gridBagConstraints.gridx = 1;
229
        gridBagConstraints.gridy = 2;
233
        gridBagConstraints.gridy = 2;
Lines 231-243 Link Here
231
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
235
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
232
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
236
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
233
        add(jRadioButton1, gridBagConstraints);
237
        add(jRadioButton1, gridBagConstraints);
234
        jRadioButton1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_text"));
238
        jRadioButton1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_text")); // NOI18N
235
        jRadioButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_text"));
239
        jRadioButton1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_text")); // NOI18N
236
240
237
        buttonGroup1.add(jRadioButton2);
241
        buttonGroup1.add(jRadioButton2);
238
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_password"));
242
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_password")); // NOI18N
239
        jRadioButton2.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
243
        jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
240
        jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
241
        gridBagConstraints = new java.awt.GridBagConstraints();
244
        gridBagConstraints = new java.awt.GridBagConstraints();
242
        gridBagConstraints.gridx = 1;
245
        gridBagConstraints.gridx = 1;
243
        gridBagConstraints.gridy = 3;
246
        gridBagConstraints.gridy = 3;
Lines 245-257 Link Here
245
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
248
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
246
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
249
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
247
        add(jRadioButton2, gridBagConstraints);
250
        add(jRadioButton2, gridBagConstraints);
248
        jRadioButton2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_password"));
251
        jRadioButton2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_password")); // NOI18N
249
        jRadioButton2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_password"));
252
        jRadioButton2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_password")); // NOI18N
250
253
251
        buttonGroup1.add(jRadioButton3);
254
        buttonGroup1.add(jRadioButton3);
252
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton3, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_hidden"));
255
        org.openide.awt.Mnemonics.setLocalizedText(jRadioButton3, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_hidden")); // NOI18N
253
        jRadioButton3.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
256
        jRadioButton3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
254
        jRadioButton3.setMargin(new java.awt.Insets(0, 0, 0, 0));
255
        gridBagConstraints = new java.awt.GridBagConstraints();
257
        gridBagConstraints = new java.awt.GridBagConstraints();
256
        gridBagConstraints.gridx = 1;
258
        gridBagConstraints.gridx = 1;
257
        gridBagConstraints.gridy = 4;
259
        gridBagConstraints.gridy = 4;
Lines 259-270 Link Here
259
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
261
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
260
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
262
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
261
        add(jRadioButton3, gridBagConstraints);
263
        add(jRadioButton3, gridBagConstraints);
262
        jRadioButton3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_hidden"));
264
        jRadioButton3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_hidden")); // NOI18N
263
        jRadioButton3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_hidden"));
265
        jRadioButton3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_hidden")); // NOI18N
264
266
265
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_disabled"));
267
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_disabled")); // NOI18N
266
        jCheckBox1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
268
        jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
267
        jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
268
        gridBagConstraints = new java.awt.GridBagConstraints();
269
        gridBagConstraints = new java.awt.GridBagConstraints();
269
        gridBagConstraints.gridx = 1;
270
        gridBagConstraints.gridx = 1;
270
        gridBagConstraints.gridy = 5;
271
        gridBagConstraints.gridy = 5;
Lines 272-283 Link Here
272
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
273
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
273
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
274
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
274
        add(jCheckBox1, gridBagConstraints);
275
        add(jCheckBox1, gridBagConstraints);
275
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_disabled"));
276
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_disabled")); // NOI18N
276
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_disabled"));
277
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_disabled")); // NOI18N
277
278
278
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_readonly"));
279
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_readonly")); // NOI18N
279
        jCheckBox2.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
280
        jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
280
        jCheckBox2.setMargin(new java.awt.Insets(0, 0, 0, 0));
281
        gridBagConstraints = new java.awt.GridBagConstraints();
281
        gridBagConstraints = new java.awt.GridBagConstraints();
282
        gridBagConstraints.gridx = 1;
282
        gridBagConstraints.gridx = 1;
283
        gridBagConstraints.gridy = 6;
283
        gridBagConstraints.gridy = 6;
Lines 285-295 Link Here
285
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
285
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
286
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
286
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
287
        add(jCheckBox2, gridBagConstraints);
287
        add(jCheckBox2, gridBagConstraints);
288
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_readonly"));
288
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_readonly")); // NOI18N
289
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_readonly"));
289
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_readonly")); // NOI18N
290
290
291
        jLabel5.setLabelFor(jTextField2);
291
        jLabel5.setLabelFor(jTextField2);
292
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Value"));
292
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Value")); // NOI18N
293
        gridBagConstraints = new java.awt.GridBagConstraints();
293
        gridBagConstraints = new java.awt.GridBagConstraints();
294
        gridBagConstraints.gridx = 0;
294
        gridBagConstraints.gridx = 0;
295
        gridBagConstraints.gridy = 1;
295
        gridBagConstraints.gridy = 1;
Lines 297-304 Link Here
297
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
297
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
298
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
298
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
299
        add(jLabel5, gridBagConstraints);
299
        add(jLabel5, gridBagConstraints);
300
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Value"));
300
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Value")); // NOI18N
301
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Value"));
301
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Value")); // NOI18N
302
302
303
        jTextField2.setColumns(30);
303
        jTextField2.setColumns(30);
304
        gridBagConstraints = new java.awt.GridBagConstraints();
304
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 310-328 Link Here
310
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
310
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
311
        add(jTextField2, gridBagConstraints);
311
        add(jTextField2, gridBagConstraints);
312
312
313
    }
313
        org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Id")); // NOI18N
314
    // </editor-fold>//GEN-END:initComponents
314
        gridBagConstraints = new java.awt.GridBagConstraints();
315
        gridBagConstraints.gridx = 0;
316
        gridBagConstraints.gridy = 8;
317
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
318
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
319
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
320
        add(jLabel6, gridBagConstraints);
321
        jLabel6.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Id")); // NOI18N
322
        jLabel6.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Id")); // NOI18N
315
    
323
    
324
        jCheckBox3.setSelected(true);
325
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_IdSelected")); // NOI18N
326
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
327
        gridBagConstraints = new java.awt.GridBagConstraints();
328
        gridBagConstraints.gridx = 1;
329
        gridBagConstraints.gridy = 8;
330
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
331
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
332
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
333
        add(jCheckBox3, gridBagConstraints);
334
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_IdSelected")); // NOI18N
335
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_IdSelected")); // NOI18N
316
    
336
    
337
        org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_Label")); // NOI18N
338
        gridBagConstraints = new java.awt.GridBagConstraints();
339
        gridBagConstraints.gridx = 0;
340
        gridBagConstraints.gridy = 9;
341
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
342
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
343
        gridBagConstraints.weighty = 1.0;
344
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
345
        add(jLabel7, gridBagConstraints);
346
        jLabel7.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_Label")); // NOI18N
347
        jLabel7.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_Label")); // NOI18N
348
349
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox4, org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "LBL_INPUT_LabelSelected")); // NOI18N
350
        jCheckBox4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
351
        gridBagConstraints = new java.awt.GridBagConstraints();
352
        gridBagConstraints.gridx = 1;
353
        gridBagConstraints.gridy = 9;
354
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
355
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
356
        gridBagConstraints.weighty = 1.0;
357
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
358
        add(jCheckBox4, gridBagConstraints);
359
        jCheckBox4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSN_INPUT_LabelSelected")); // NOI18N
360
        jCheckBox4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(INPUTCustomizer.class, "ACSD_INPUT_LabelSelected")); // NOI18N
361
    }// </editor-fold>//GEN-END:initComponents
362
    
363
    
317
    // Variables declaration - do not modify//GEN-BEGIN:variables
364
    // Variables declaration - do not modify//GEN-BEGIN:variables
318
    private javax.swing.ButtonGroup buttonGroup1;
365
    private javax.swing.ButtonGroup buttonGroup1;
319
    private javax.swing.JCheckBox jCheckBox1;
366
    private javax.swing.JCheckBox jCheckBox1;
320
    private javax.swing.JCheckBox jCheckBox2;
367
    private javax.swing.JCheckBox jCheckBox2;
368
    private javax.swing.JCheckBox jCheckBox3;
369
    private javax.swing.JCheckBox jCheckBox4;
321
    private javax.swing.JLabel jLabel1;
370
    private javax.swing.JLabel jLabel1;
322
    private javax.swing.JLabel jLabel2;
371
    private javax.swing.JLabel jLabel2;
323
    private javax.swing.JLabel jLabel3;
372
    private javax.swing.JLabel jLabel3;
324
    private javax.swing.JLabel jLabel4;
373
    private javax.swing.JLabel jLabel4;
325
    private javax.swing.JLabel jLabel5;
374
    private javax.swing.JLabel jLabel5;
375
    private javax.swing.JLabel jLabel6;
376
    private javax.swing.JLabel jLabel7;
326
    private javax.swing.JRadioButton jRadioButton1;
377
    private javax.swing.JRadioButton jRadioButton1;
327
    private javax.swing.JRadioButton jRadioButton2;
378
    private javax.swing.JRadioButton jRadioButton2;
328
    private javax.swing.JRadioButton jRadioButton3;
379
    private javax.swing.JRadioButton jRadioButton3;
(-)html/src/org/netbeans/modules/html/palette/items/RADIO.java (-4 / +19 lines)
Lines 72-77 Link Here
72
    private boolean selected = false;
72
    private boolean selected = false;
73
    private boolean disabled = false;
73
    private boolean disabled = false;
74
    private String[] groups = new String[0];
74
    private String[] groups = new String[0];
75
    private boolean generateID = false;
75
76
76
    public RADIO() {
77
    public RADIO() {
77
    }
78
    }
Lines 139-147 Link Here
139
        String strSelected = (selected ? " checked=\"checked\"" : ""); // NOI18N
140
        String strSelected = (selected ? " checked=\"checked\"" : ""); // NOI18N
140
141
141
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
142
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
143
        String strId = (generateID ? " id=\"\" " : ""); // NOI18N
144
        String radioBody = "<input type=\"radio\"" + strName + strId+ strValue + strSelected + strDisabled + " />"; // NOI18N
142
145
143
        String radioBody = "<input type=\"radio\"" + strName + strValue + strSelected + strDisabled + " />"; // NOI18N
144
145
        return radioBody;
146
        return radioBody;
146
    }
147
    }
147
148
Lines 166-172 Link Here
166
        //search for the input tags
167
        //search for the input tags
167
        HtmlSource source = new HtmlSource(code);
168
        HtmlSource source = new HtmlSource(code);
168
        Iterator<Element> elements = new ElementsIterator(source);
169
        Iterator<Element> elements = new ElementsIterator(source);
169
        while(elements.hasNext()) {
170
        while (elements.hasNext()) {
170
            Element e = elements.next();
171
            Element e = elements.next();
171
            if (e.type() == ElementType.OPEN_TAG) {
172
            if (e.type() == ElementType.OPEN_TAG) {
172
                OpenTag tag = (OpenTag) e;
173
                OpenTag tag = (OpenTag) e;
Lines 176-182 Link Here
176
                    if (typeAttr != null && nameAttr != null) {
177
                    if (typeAttr != null && nameAttr != null) {
177
                        if (LexerUtils.equals("radio", typeAttr.unquotedValue(), true, true)) { //NOI18N
178
                        if (LexerUtils.equals("radio", typeAttr.unquotedValue(), true, true)) { //NOI18N
178
                            CharSequence value = nameAttr.unquotedValue();
179
                            CharSequence value = nameAttr.unquotedValue();
179
                            if(value != null) {
180
                            if (value != null) {
180
                                names.add(value.toString());
181
                                names.add(value.toString());
181
                            }
182
                            }
182
                        }
183
                        }
Lines 234-237 Link Here
234
    public void setGroups(String[] groups) {
235
    public void setGroups(String[] groups) {
235
        this.groups = groups;
236
        this.groups = groups;
236
    }
237
    }
238
239
    /**
240
     * @return the generateID
241
     */
242
    public boolean isGenerateID() {
243
        return generateID;
237
}
244
}
245
246
    /**
247
     * @param generateID the generateID to set
248
     */
249
    public void setGenerateID(boolean generateID) {
250
        this.generateID = generateID;
251
    }
252
}
(-)html/src/org/netbeans/modules/html/palette/items/RADIOCustomizer.form (-1 / +47 lines)
Lines 91-97 Link Here
91
      </AccessibilityProperties>
91
      </AccessibilityProperties>
92
      <Constraints>
92
      <Constraints>
93
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
93
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
94
          <GridBagConstraints gridX="1" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
94
          <GridBagConstraints gridX="1" gridY="3" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
95
        </Constraint>
95
        </Constraint>
96
      </Constraints>
96
      </Constraints>
97
    </Component>
97
    </Component>
Lines 158-162 Link Here
158
        </Constraint>
158
        </Constraint>
159
      </Constraints>
159
      </Constraints>
160
    </Component>
160
    </Component>
161
    <Component class="javax.swing.JLabel" name="jLabel3">
162
      <Properties>
163
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
164
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_RADIO_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
165
        </Property>
166
      </Properties>
167
      <AccessibilityProperties>
168
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
169
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_RADIO_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
170
        </Property>
171
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
172
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_RADIO_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
173
        </Property>
174
      </AccessibilityProperties>
175
      <Constraints>
176
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
177
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="0.0"/>
178
        </Constraint>
179
      </Constraints>
180
    </Component>
181
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
182
      <Properties>
183
        <Property name="selected" type="boolean" value="true"/>
184
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
185
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_RADIO_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
186
        </Property>
187
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
188
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
189
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
190
          </Border>
191
        </Property>
192
      </Properties>
193
      <AccessibilityProperties>
194
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
195
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_RADIO_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
196
        </Property>
197
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
198
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_RADIO_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
199
        </Property>
200
      </AccessibilityProperties>
201
      <Constraints>
202
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
203
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="1.0"/>
204
        </Constraint>
205
      </Constraints>
206
    </Component>
161
  </SubComponents>
207
  </SubComponents>
162
</Form>
208
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/RADIOCustomizer.java (-25 / +49 lines)
Lines 120-126 Link Here
120
        radio.setValue(value);
120
        radio.setValue(value);
121
        
121
        
122
        radio.setSelected(jCheckBox1.isSelected());
122
        radio.setSelected(jCheckBox1.isSelected());
123
123
        radio.setGenerateID(jCheckBox3.isSelected());
124
        radio.setDisabled(jCheckBox2.isSelected());
124
        radio.setDisabled(jCheckBox2.isSelected());
125
        
125
        
126
    }
126
    }
Lines 130-136 Link Here
130
     * WARNING: Do NOT modify this code. The content of this method is
130
     * WARNING: Do NOT modify this code. The content of this method is
131
     * always regenerated by the Form Editor.
131
     * always regenerated by the Form Editor.
132
     */
132
     */
133
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
133
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
134
    private void initComponents() {
134
    private void initComponents() {
135
        java.awt.GridBagConstraints gridBagConstraints;
135
        java.awt.GridBagConstraints gridBagConstraints;
136
136
Lines 142-152 Link Here
142
        jTextField2 = new javax.swing.JTextField();
142
        jTextField2 = new javax.swing.JTextField();
143
        jLabel2 = new javax.swing.JLabel();
143
        jLabel2 = new javax.swing.JLabel();
144
        jComboBox1 = new javax.swing.JComboBox();
144
        jComboBox1 = new javax.swing.JComboBox();
145
        jLabel3 = new javax.swing.JLabel();
146
        jCheckBox3 = new javax.swing.JCheckBox();
145
147
146
        setLayout(new java.awt.GridBagLayout());
148
        setLayout(new java.awt.GridBagLayout());
147
149
148
        jLabel1.setLabelFor(jComboBox1);
150
        jLabel1.setLabelFor(jComboBox1);
149
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_Group"));
151
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_Group")); // NOI18N
150
        gridBagConstraints = new java.awt.GridBagConstraints();
152
        gridBagConstraints = new java.awt.GridBagConstraints();
151
        gridBagConstraints.gridx = 0;
153
        gridBagConstraints.gridx = 0;
152
        gridBagConstraints.gridy = 0;
154
        gridBagConstraints.gridy = 0;
Lines 154-165 Link Here
154
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
156
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
155
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
157
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
156
        add(jLabel1, gridBagConstraints);
158
        add(jLabel1, gridBagConstraints);
157
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_Group"));
159
        jLabel1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_Group")); // NOI18N
158
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_Group"));
160
        jLabel1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_Group")); // NOI18N
159
161
160
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_selected"));
162
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_selected")); // NOI18N
161
        jCheckBox1.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
163
        jCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
162
        jCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));
163
        gridBagConstraints = new java.awt.GridBagConstraints();
164
        gridBagConstraints = new java.awt.GridBagConstraints();
164
        gridBagConstraints.gridx = 1;
165
        gridBagConstraints.gridx = 1;
165
        gridBagConstraints.gridy = 2;
166
        gridBagConstraints.gridy = 2;
Lines 167-190 Link Here
167
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
168
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
168
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
169
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
169
        add(jCheckBox1, gridBagConstraints);
170
        add(jCheckBox1, gridBagConstraints);
170
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_selected"));
171
        jCheckBox1.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_selected")); // NOI18N
171
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_selected"));
172
        jCheckBox1.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_selected")); // NOI18N
172
173
173
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_disabled"));
174
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox2, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_disabled")); // NOI18N
174
        jCheckBox2.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(0, 0, 0, 0)));
175
        jCheckBox2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
175
        jCheckBox2.setMargin(new java.awt.Insets(0, 0, 0, 0));
176
        gridBagConstraints = new java.awt.GridBagConstraints();
176
        gridBagConstraints = new java.awt.GridBagConstraints();
177
        gridBagConstraints.gridx = 1;
177
        gridBagConstraints.gridx = 1;
178
        gridBagConstraints.gridy = 3;
178
        gridBagConstraints.gridy = 3;
179
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
179
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
180
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
180
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
181
        gridBagConstraints.weighty = 1.0;
181
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
182
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 12, 12);
183
        add(jCheckBox2, gridBagConstraints);
182
        add(jCheckBox2, gridBagConstraints);
184
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_disabled"));
183
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_disabled")); // NOI18N
185
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_disabled"));
184
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_disabled")); // NOI18N
186
185
187
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_"));
186
        org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_")); // NOI18N
188
        gridBagConstraints = new java.awt.GridBagConstraints();
187
        gridBagConstraints = new java.awt.GridBagConstraints();
189
        gridBagConstraints.gridx = 0;
188
        gridBagConstraints.gridx = 0;
190
        gridBagConstraints.gridy = 2;
189
        gridBagConstraints.gridy = 2;
Lines 192-199 Link Here
192
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
191
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
193
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
192
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
194
        add(jLabel5, gridBagConstraints);
193
        add(jLabel5, gridBagConstraints);
195
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_State"));
194
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_State")); // NOI18N
196
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_State"));
195
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_State")); // NOI18N
197
196
198
        jTextField2.setColumns(30);
197
        jTextField2.setColumns(30);
199
        gridBagConstraints = new java.awt.GridBagConstraints();
198
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 205-211 Link Here
205
        add(jTextField2, gridBagConstraints);
204
        add(jTextField2, gridBagConstraints);
206
205
207
        jLabel2.setLabelFor(jTextField2);
206
        jLabel2.setLabelFor(jTextField2);
208
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_Value"));
207
        org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_Value")); // NOI18N
209
        gridBagConstraints = new java.awt.GridBagConstraints();
208
        gridBagConstraints = new java.awt.GridBagConstraints();
210
        gridBagConstraints.gridx = 0;
209
        gridBagConstraints.gridx = 0;
211
        gridBagConstraints.gridy = 1;
210
        gridBagConstraints.gridy = 1;
Lines 213-220 Link Here
213
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
212
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
214
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
213
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
215
        add(jLabel2, gridBagConstraints);
214
        add(jLabel2, gridBagConstraints);
216
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_Value"));
215
        jLabel2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_Value")); // NOI18N
217
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_Value"));
216
        jLabel2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_Value")); // NOI18N
218
217
219
        jComboBox1.setEditable(true);
218
        jComboBox1.setEditable(true);
220
        gridBagConstraints = new java.awt.GridBagConstraints();
219
        gridBagConstraints = new java.awt.GridBagConstraints();
Lines 224-240 Link Here
224
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
223
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
225
        add(jComboBox1, gridBagConstraints);
224
        add(jComboBox1, gridBagConstraints);
226
225
227
    }
226
        org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_Id")); // NOI18N
228
    // </editor-fold>//GEN-END:initComponents
227
        gridBagConstraints = new java.awt.GridBagConstraints();
228
        gridBagConstraints.gridx = 0;
229
        gridBagConstraints.gridy = 4;
230
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
231
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
232
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
233
        add(jLabel3, gridBagConstraints);
234
        jLabel3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_Id")); // NOI18N
235
        jLabel3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_Id")); // NOI18N
229
    
236
    
237
        jCheckBox3.setSelected(true);
238
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "LBL_RADIO_IdSelected")); // NOI18N
239
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
240
        gridBagConstraints = new java.awt.GridBagConstraints();
241
        gridBagConstraints.gridx = 1;
242
        gridBagConstraints.gridy = 4;
243
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
244
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
245
        gridBagConstraints.weighty = 1.0;
246
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
247
        add(jCheckBox3, gridBagConstraints);
248
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSN_RADIO_IdSelected")); // NOI18N
249
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RADIOCustomizer.class, "ACSD_RADIO_IdSelected")); // NOI18N
250
    }// </editor-fold>//GEN-END:initComponents
230
    
251
    
252
    
231
    // Variables declaration - do not modify//GEN-BEGIN:variables
253
    // Variables declaration - do not modify//GEN-BEGIN:variables
232
    private javax.swing.ButtonGroup buttonGroup1;
254
    private javax.swing.ButtonGroup buttonGroup1;
233
    private javax.swing.JCheckBox jCheckBox1;
255
    private javax.swing.JCheckBox jCheckBox1;
234
    private javax.swing.JCheckBox jCheckBox2;
256
    private javax.swing.JCheckBox jCheckBox2;
257
    private javax.swing.JCheckBox jCheckBox3;
235
    private javax.swing.JComboBox jComboBox1;
258
    private javax.swing.JComboBox jComboBox1;
236
    private javax.swing.JLabel jLabel1;
259
    private javax.swing.JLabel jLabel1;
237
    private javax.swing.JLabel jLabel2;
260
    private javax.swing.JLabel jLabel2;
261
    private javax.swing.JLabel jLabel3;
238
    private javax.swing.JLabel jLabel5;
262
    private javax.swing.JLabel jLabel5;
239
    private javax.swing.JTextField jTextField2;
263
    private javax.swing.JTextField jTextField2;
240
    // End of variables declaration//GEN-END:variables
264
    // End of variables declaration//GEN-END:variables
(-)html/src/org/netbeans/modules/html/palette/items/SELECT.java (-4 / +34 lines)
Lines 63-70 Link Here
63
    private int optionsVisible = OPTIONS_VISIBLE_DEFAULT;
63
    private int optionsVisible = OPTIONS_VISIBLE_DEFAULT;
64
    private boolean disabled = false;
64
    private boolean disabled = false;
65
    private boolean multiple = false;
65
    private boolean multiple = false;
66
    private boolean generateID = false;
67
    private boolean generateLabel = false;
66
    
68
    
67
    
68
    public SELECT() {
69
    public SELECT() {
69
    }
70
    }
70
71
Lines 96-103 Link Here
96
        
97
        
97
        String strMulti = (multiple ? " multiple=\"multiple\"" : ""); // NOI18N
98
        String strMulti = (multiple ? " multiple=\"multiple\"" : ""); // NOI18N
98
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
99
        String strDisabled = (disabled ? " disabled=\"disabled\"" : ""); // NOI18N
99
100
        String strId = (generateID ? " id=\"" + name + "\" " : ""); // NOI18N
100
        String selBody = "<select" + strName + strVisibleOptions + strMulti + strDisabled + ">\n" + // NOI18N
101
        String strLabel = (generateLabel ? "<label for=\"" + name + "\"></label>" : "");
102
        String selBody = strLabel+"<select" + strName + strVisibleOptions + strMulti + strDisabled + strId +">\n" + // NOI18N
101
                        sBody +
103
                        sBody +
102
                        "</select>"; // NOI18N
104
                        "</select>"; // NOI18N
103
        
105
        
Lines 108-114 Link Here
108
        
110
        
109
        StringBuffer sb = new StringBuffer();
111
        StringBuffer sb = new StringBuffer();
110
        for (int i = 0; i < options; i++)
112
        for (int i = 0; i < options; i++)
111
            sb.append("<option></option>\n"); // NOI18N
113
            sb.append("<option value=\"\"></option>\n"); // NOI18N
112
                
114
                
113
        String sBody = sb.toString();
115
        String sBody = sb.toString();
114
        
116
        
Lines 155-158 Link Here
155
        this.multiple = multiple;
157
        this.multiple = multiple;
156
    }
158
    }
157
    
159
    
160
    /**
161
     * @return the generateID
162
     */
163
    public boolean isGenerateID() {
164
        return generateID;
158
}
165
}
166
167
    /**
168
     * @param generateID the generateID to set
169
     */
170
    public void setGenerateID(boolean generateID) {
171
        this.generateID = generateID;
172
    }
173
174
    /**
175
     * @return the generateLabel
176
     */
177
    public boolean isGenerateLabel() {
178
        return generateLabel;
179
    }
180
181
    /**
182
     * @param generateLabel the generateLabel to set
183
     */
184
    public void setGenerateLabel(boolean generateLabel) {
185
        this.generateLabel = generateLabel;
186
    }
187
    
188
}
(-)html/src/org/netbeans/modules/html/palette/items/SELECTCustomizer.form (-2 / +94 lines)
Lines 7-12 Link Here
7
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
7
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
8
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
8
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
9
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
9
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
10
    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
10
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
11
    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
11
    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
12
    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
12
    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
13
    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
Lines 171-177 Link Here
171
      </AccessibilityProperties>
172
      </AccessibilityProperties>
172
      <Constraints>
173
      <Constraints>
173
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
174
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
174
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="0.0" weightY="1.0"/>
175
          <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="18" weightX="0.0" weightY="0.0"/>
175
        </Constraint>
176
        </Constraint>
176
      </Constraints>
177
      </Constraints>
177
    </Component>
178
    </Component>
Lines 217-223 Link Here
217
      </AccessibilityProperties>
218
      </AccessibilityProperties>
218
      <Constraints>
219
      <Constraints>
219
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
220
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
220
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
221
          <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
221
        </Constraint>
222
        </Constraint>
222
      </Constraints>
223
      </Constraints>
223
    </Component>
224
    </Component>
Lines 247-251 Link Here
247
        </Constraint>
248
        </Constraint>
248
      </Constraints>
249
      </Constraints>
249
    </Component>
250
    </Component>
251
    <Component class="javax.swing.JLabel" name="jLabel6">
252
      <Properties>
253
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
254
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_SELECT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
255
        </Property>
256
      </Properties>
257
      <AccessibilityProperties>
258
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
259
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_SELECT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
260
        </Property>
261
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
262
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_SELECT_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
263
        </Property>
264
      </AccessibilityProperties>
265
      <Constraints>
266
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
267
          <GridBagConstraints gridX="0" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
268
        </Constraint>
269
      </Constraints>
270
    </Component>
271
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
272
      <Properties>
273
        <Property name="selected" type="boolean" value="true"/>
274
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
275
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_SELECT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
276
        </Property>
277
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
278
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
279
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
280
          </Border>
281
        </Property>
282
      </Properties>
283
      <AccessibilityProperties>
284
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
285
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_SELECT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
286
        </Property>
287
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
288
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_SELECT_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
289
        </Property>
290
      </AccessibilityProperties>
291
      <Constraints>
292
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
293
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="12" anchor="11" weightX="0.0" weightY="0.0"/>
294
        </Constraint>
295
      </Constraints>
296
    </Component>
297
    <Component class="javax.swing.JLabel" name="jLabel7">
298
      <Properties>
299
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
300
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_SELECT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
301
        </Property>
302
      </Properties>
303
      <AccessibilityProperties>
304
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
305
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_SELECT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
306
        </Property>
307
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
308
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_SELECT_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
309
        </Property>
310
      </AccessibilityProperties>
311
      <Constraints>
312
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
313
          <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
314
        </Constraint>
315
      </Constraints>
316
    </Component>
317
    <Component class="javax.swing.JCheckBox" name="jCheckBox4">
318
      <Properties>
319
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
320
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_SELECT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
321
        </Property>
322
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
323
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
324
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
325
          </Border>
326
        </Property>
327
      </Properties>
328
      <AccessibilityProperties>
329
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
330
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_SELECT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
331
        </Property>
332
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
333
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_SELECT_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
334
        </Property>
335
      </AccessibilityProperties>
336
      <Constraints>
337
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
338
          <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="11" weightX="0.0" weightY="1.0"/>
339
        </Constraint>
340
      </Constraints>
341
    </Component>
250
  </SubComponents>
342
  </SubComponents>
251
</Form>
343
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/SELECTCustomizer.java (-4 / +60 lines)
Lines 129-135 Link Here
129
        select.setOptionsVisible(optionsVisible);
129
        select.setOptionsVisible(optionsVisible);
130
        
130
        
131
        select.setMultiple(jCheckBox1.isSelected());
131
        select.setMultiple(jCheckBox1.isSelected());
132
        
132
        select.setGenerateID(jCheckBox3.isSelected());
133
        select.setGenerateLabel(jCheckBox4.isSelected());
133
        select.setDisabled(jCheckBox2.isSelected());
134
        select.setDisabled(jCheckBox2.isSelected());
134
        
135
        
135
    }
136
    }
Lines 153-158 Link Here
153
        jSpinner1 = new javax.swing.JSpinner();
154
        jSpinner1 = new javax.swing.JSpinner();
154
        jLabel5 = new javax.swing.JLabel();
155
        jLabel5 = new javax.swing.JLabel();
155
        jSpinner2 = new javax.swing.JSpinner();
156
        jSpinner2 = new javax.swing.JSpinner();
157
        jLabel6 = new javax.swing.JLabel();
158
        jCheckBox3 = new javax.swing.JCheckBox();
159
        jLabel7 = new javax.swing.JLabel();
160
        jCheckBox4 = new javax.swing.JCheckBox();
156
161
157
        setLayout(new java.awt.GridBagLayout());
162
        setLayout(new java.awt.GridBagLayout());
158
163
Lines 234-241 Link Here
234
        gridBagConstraints.gridy = 4;
239
        gridBagConstraints.gridy = 4;
235
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
240
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
236
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
241
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
237
        gridBagConstraints.weighty = 1.0;
242
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
238
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12);
239
        add(jCheckBox2, gridBagConstraints);
243
        add(jCheckBox2, gridBagConstraints);
240
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_disabled")); // NOI18N
244
        jCheckBox2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_disabled")); // NOI18N
241
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_disabled")); // NOI18N
245
        jCheckBox2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_disabled")); // NOI18N
Lines 258-264 Link Here
258
        gridBagConstraints.gridy = 4;
262
        gridBagConstraints.gridy = 4;
259
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
263
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
260
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
264
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
261
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 0);
265
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
262
        add(jLabel5, gridBagConstraints);
266
        add(jLabel5, gridBagConstraints);
263
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_State")); // NOI18N
267
        jLabel5.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_State")); // NOI18N
264
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_State")); // NOI18N
268
        jLabel5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_State")); // NOI18N
Lines 274-290 Link Here
274
        add(jSpinner2, gridBagConstraints);
278
        add(jSpinner2, gridBagConstraints);
275
        jSpinner2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_Visible_Options_Spinner")); // NOI18N
279
        jSpinner2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_Visible_Options_Spinner")); // NOI18N
276
        jSpinner2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_Visible_Options_Spinner")); // NOI18N
280
        jSpinner2.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_Visible_Options_Spinner")); // NOI18N
281
282
        org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "LBL_SELECT_Id")); // NOI18N
283
        gridBagConstraints = new java.awt.GridBagConstraints();
284
        gridBagConstraints.gridx = 0;
285
        gridBagConstraints.gridy = 5;
286
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
287
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
288
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
289
        add(jLabel6, gridBagConstraints);
290
        jLabel6.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_Id")); // NOI18N
291
        jLabel6.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_Id")); // NOI18N
292
293
        jCheckBox3.setSelected(true);
294
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "LBL_SELECT_IdSelected")); // NOI18N
295
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
296
        gridBagConstraints = new java.awt.GridBagConstraints();
297
        gridBagConstraints.gridx = 1;
298
        gridBagConstraints.gridy = 5;
299
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
300
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
301
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12);
302
        add(jCheckBox3, gridBagConstraints);
303
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_IdSelected")); // NOI18N
304
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_IdSelected")); // NOI18N
305
306
        org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "LBL_SELECT_Label")); // NOI18N
307
        gridBagConstraints = new java.awt.GridBagConstraints();
308
        gridBagConstraints.gridx = 0;
309
        gridBagConstraints.gridy = 6;
310
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
311
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
312
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
313
        add(jLabel7, gridBagConstraints);
314
        jLabel7.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_Label")); // NOI18N
315
        jLabel7.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_Label")); // NOI18N
316
317
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox4, org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "LBL_SELECT_LabelSelected")); // NOI18N
318
        jCheckBox4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
319
        gridBagConstraints = new java.awt.GridBagConstraints();
320
        gridBagConstraints.gridx = 1;
321
        gridBagConstraints.gridy = 6;
322
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
323
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
324
        gridBagConstraints.weighty = 1.0;
325
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12);
326
        add(jCheckBox4, gridBagConstraints);
327
        jCheckBox4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSN_SELECT_LabelSelected")); // NOI18N
328
        jCheckBox4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SELECTCustomizer.class, "ACSD_SELECT_LabelSelected")); // NOI18N
277
    }// </editor-fold>//GEN-END:initComponents
329
    }// </editor-fold>//GEN-END:initComponents
278
    
330
    
279
    
331
    
280
    // Variables declaration - do not modify//GEN-BEGIN:variables
332
    // Variables declaration - do not modify//GEN-BEGIN:variables
281
    private javax.swing.JCheckBox jCheckBox1;
333
    private javax.swing.JCheckBox jCheckBox1;
282
    private javax.swing.JCheckBox jCheckBox2;
334
    private javax.swing.JCheckBox jCheckBox2;
335
    private javax.swing.JCheckBox jCheckBox3;
336
    private javax.swing.JCheckBox jCheckBox4;
283
    private javax.swing.JLabel jLabel1;
337
    private javax.swing.JLabel jLabel1;
284
    private javax.swing.JLabel jLabel2;
338
    private javax.swing.JLabel jLabel2;
285
    private javax.swing.JLabel jLabel3;
339
    private javax.swing.JLabel jLabel3;
286
    private javax.swing.JLabel jLabel4;
340
    private javax.swing.JLabel jLabel4;
287
    private javax.swing.JLabel jLabel5;
341
    private javax.swing.JLabel jLabel5;
342
    private javax.swing.JLabel jLabel6;
343
    private javax.swing.JLabel jLabel7;
288
    private javax.swing.JSpinner jSpinner1;
344
    private javax.swing.JSpinner jSpinner1;
289
    private javax.swing.JSpinner jSpinner2;
345
    private javax.swing.JSpinner jSpinner2;
290
    private javax.swing.JTextField jTextField1;
346
    private javax.swing.JTextField jTextField1;
(-)html/src/org/netbeans/modules/html/palette/items/TABLE.java (-15 / +31 lines)
Lines 41-54 Link Here
41
 * Version 2 license, then the option applies only if the new code is
41
 * Version 2 license, then the option applies only if the new code is
42
 * made subject to such option by the copyright holder.
42
 * made subject to such option by the copyright holder.
43
 */
43
 */
44
45
package org.netbeans.modules.html.palette.items;
44
package org.netbeans.modules.html.palette.items;
45
46
import javax.swing.text.BadLocationException;
46
import javax.swing.text.BadLocationException;
47
import javax.swing.text.JTextComponent;
47
import javax.swing.text.JTextComponent;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
48
import org.netbeans.modules.html.palette.HtmlPaletteUtilities;
49
import org.openide.text.ActiveEditorDrop;
49
import org.openide.text.ActiveEditorDrop;
50
50
51
52
/**
51
/**
53
 *
52
 *
54
 * @author Libor Kotouc
53
 * @author Libor Kotouc
Lines 61-73 Link Here
61
    private static final int WIDTH_DEFAULT = 0;
60
    private static final int WIDTH_DEFAULT = 0;
62
    private static final int CSPAC_DEFAULT = 0;
61
    private static final int CSPAC_DEFAULT = 0;
63
    private static final int CPADD_DEFAULT = 0;
62
    private static final int CPADD_DEFAULT = 0;
64
    
65
    private int rows = ROWS_DEFAULT;
63
    private int rows = ROWS_DEFAULT;
66
    private int cols = COLS_DEFAULT;
64
    private int cols = COLS_DEFAULT;
67
    private int border = BORDER_DEFAULT;
65
    private int border = BORDER_DEFAULT;
68
    private int width = WIDTH_DEFAULT;
66
    private int width = WIDTH_DEFAULT;
69
    private int cspac = CSPAC_DEFAULT;
67
    private int cspac = CSPAC_DEFAULT;
70
    private int cpadd = CPADD_DEFAULT;
68
    private int cpadd = CPADD_DEFAULT;
69
    private String caption = "";
71
            
70
            
72
    public TABLE() {
71
    public TABLE() {
73
    }
72
    }
Lines 96-116 Link Here
96
        String strBorder = " border=\"" + border + "\""; // NOI18N
95
        String strBorder = " border=\"" + border + "\""; // NOI18N
97
        
96
        
98
        String strWidth = "";
97
        String strWidth = "";
99
        if (width != WIDTH_DEFAULT)
98
        if (width != WIDTH_DEFAULT) {
100
            strWidth = " width=\"" + width + "\""; // NOI18N
99
            strWidth = " width=\"" + width + "\""; // NOI18N
101
100
        }
102
        String strCspac = "";
101
        String strCspac = "";
103
        if (cspac != CSPAC_DEFAULT)
102
        if (cspac != CSPAC_DEFAULT) {
104
            strCspac = " cellspacing=\"" + cspac + "\""; // NOI18N
103
            strCspac = " cellspacing=\"" + cspac + "\""; // NOI18N
105
        
104
        }
106
        String strCpadd = "";
105
        String strCpadd = "";
107
        if (cpadd != CPADD_DEFAULT)
106
        if (cpadd != CPADD_DEFAULT) {
108
            strCpadd = " cellpadding=\"" + cpadd + "\""; // NOI18N
107
            strCpadd = " cellpadding=\"" + cpadd + "\""; // NOI18N
108
        }
109
        
109
        
110
        
110
        String body = "<table" + strBorder + strWidth + strCspac + strCpadd + ">\n";
111
        String body = 
111
        if (caption.length() > 0) {
112
                "<table" + strBorder + strWidth + strCspac + strCpadd + ">\n" + // NOI18N
112
            body += "<caption>" + caption + "</caption>\n";
113
                "<thead>\n" + tHead + "</thead>\n" + // NOI18N
113
        }
114
        body += "<thead>\n" + tHead + "</thead>\n" + // NOI18N
115
                "<tfoot>\n" + tHead + "</tfoot>\n" + // NOI18N
114
                "<tbody>\n" + tBody + "</tbody>\n" + // NOI18N
116
                "<tbody>\n" + tBody + "</tbody>\n" + // NOI18N
115
                "</table>\n"; // NOI18N
117
                "</table>\n"; // NOI18N
116
        
118
        
Lines 120-128 Link Here
120
    private String generateTHead() {
122
    private String generateTHead() {
121
123
122
        StringBuffer sb = new StringBuffer();
124
        StringBuffer sb = new StringBuffer();
123
        for (int i = 0; i < cols; i++)
125
        for (int i = 0; i < cols; i++) {
124
            sb.append("<th></th>\n"); // NOI18N
126
            sb.append("<th></th>\n"); // NOI18N
125
    
127
        }
126
        String thead = "<tr>\n" + sb.toString() + "</tr>\n"; // NOI18N
128
        String thead = "<tr>\n" + sb.toString() + "</tr>\n"; // NOI18N
127
        
129
        
128
        return thead;
130
        return thead;
Lines 133-140 Link Here
133
        StringBuffer sb = new StringBuffer();
135
        StringBuffer sb = new StringBuffer();
134
        for (int i = 0; i < rows; i++) {
136
        for (int i = 0; i < rows; i++) {
135
            sb.append("<tr>\n"); // NOI18N
137
            sb.append("<tr>\n"); // NOI18N
136
            for (int j = 0; j < cols; j++)
138
            for (int j = 0; j < cols; j++) {
137
                sb.append("<td></td>\n"); // NOI18N
139
                sb.append("<td></td>\n"); // NOI18N
140
            }
138
            sb.append("</tr>\n"); // NOI18N
141
            sb.append("</tr>\n"); // NOI18N
139
        }
142
        }
140
                
143
                
Lines 191-194 Link Here
191
        return cpadd;
194
        return cpadd;
192
    }
195
    }
193
    
196
    
197
    /**
198
     * @return the caption
199
     */
200
    public String getCaption() {
201
        return caption;
194
}
202
}
203
204
    /**
205
     * @param caption the caption to set
206
     */
207
    public void setCaption(String caption) {
208
        this.caption = caption;
209
    }
210
}
(-)html/src/org/netbeans/modules/html/palette/items/TABLECustomizer.form (-6 / +37 lines)
Lines 16-22 Link Here
16
  <Layout>
16
  <Layout>
17
    <DimensionLayout dim="0">
17
    <DimensionLayout dim="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
19
          <Group type="102" max="-2" attributes="0">
19
          <Group type="102" attributes="0">
20
              <EmptySpace min="-2" max="-2" attributes="0"/>
20
              <EmptySpace min="-2" max="-2" attributes="0"/>
21
              <Group type="103" groupAlignment="0" attributes="0">
21
              <Group type="103" groupAlignment="0" attributes="0">
22
                  <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
22
                  <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
Lines 28-53 Link Here
28
              </Group>
28
              </Group>
29
              <EmptySpace max="-2" attributes="0"/>
29
              <EmptySpace max="-2" attributes="0"/>
30
              <Group type="103" groupAlignment="0" attributes="0">
30
              <Group type="103" groupAlignment="0" attributes="0">
31
                  <Component id="jSpinner1" linkSize="1" alignment="0" pref="150" max="32767" attributes="1"/>
31
                  <Component id="jSpinner1" linkSize="1" alignment="0" max="32767" attributes="1"/>
32
                  <Component id="jSpinner2" linkSize="1" alignment="0" max="32767" attributes="1"/>
32
                  <Component id="jSpinner2" linkSize="1" alignment="0" max="32767" attributes="1"/>
33
                  <Component id="jSpinner3" linkSize="1" alignment="0" max="32767" attributes="1"/>
33
                  <Component id="jSpinner3" linkSize="1" alignment="0" max="32767" attributes="1"/>
34
                  <Component id="widthSpinner" linkSize="1" alignment="0" pref="150" max="32767" attributes="0"/>
34
                  <Component id="widthSpinner" linkSize="1" alignment="0" max="32767" attributes="0"/>
35
                  <Component id="jSpinner4" linkSize="1" alignment="0" max="32767" attributes="1"/>
35
                  <Component id="jSpinner4" linkSize="1" alignment="0" max="32767" attributes="1"/>
36
                  <Component id="jSpinner5" linkSize="1" alignment="0" pref="147" max="32767" attributes="1"/>
36
                  <Component id="jSpinner5" linkSize="1" alignment="0" max="32767" attributes="1"/>
37
              </Group>
37
              </Group>
38
              <EmptySpace min="-2" pref="245" max="-2" attributes="0"/>
38
              <EmptySpace min="-2" pref="245" max="-2" attributes="0"/>
39
          </Group>
39
          </Group>
40
          <Group type="102" attributes="0">
41
              <Group type="103" groupAlignment="0" attributes="0">
40
          <Group type="102" alignment="0" attributes="0">
42
          <Group type="102" alignment="0" attributes="0">
41
              <EmptySpace min="44" pref="44" max="44" attributes="0"/>
43
              <EmptySpace min="44" pref="44" max="44" attributes="0"/>
42
              <Component id="jLabel7" min="-2" max="-2" attributes="0"/>
44
              <Component id="jLabel7" min="-2" max="-2" attributes="0"/>
43
              <EmptySpace pref="216" max="32767" attributes="0"/>
44
          </Group>
45
          </Group>
45
          <Group type="102" alignment="0" attributes="0">
46
          <Group type="102" alignment="0" attributes="0">
46
              <EmptySpace min="44" pref="44" max="44" attributes="0"/>
47
              <EmptySpace min="44" pref="44" max="44" attributes="0"/>
47
              <Component id="jLabel8" min="-2" max="-2" attributes="0"/>
48
              <Component id="jLabel8" min="-2" max="-2" attributes="0"/>
48
              <EmptySpace pref="38" max="32767" attributes="0"/>
49
          </Group>
49
          </Group>
50
                  <Group type="102" alignment="0" attributes="0">
51
                      <EmptySpace max="-2" attributes="0"/>
52
                      <Component id="jLabel9" min="-2" max="-2" attributes="0"/>
53
                      <EmptySpace min="-2" pref="43" max="-2" attributes="0"/>
54
                      <Component id="jTextField1" min="-2" pref="221" max="-2" attributes="0"/>
50
      </Group>
55
      </Group>
56
              </Group>
57
              <EmptySpace max="32767" attributes="0"/>
58
          </Group>
59
      </Group>
51
    </DimensionLayout>
60
    </DimensionLayout>
52
    <DimensionLayout dim="1">
61
    <DimensionLayout dim="1">
53
      <Group type="103" groupAlignment="0" attributes="0">
62
      <Group type="103" groupAlignment="0" attributes="0">
Lines 86-91 Link Here
86
              </Group>
95
              </Group>
87
              <EmptySpace max="-2" attributes="0"/>
96
              <EmptySpace max="-2" attributes="0"/>
88
              <Component id="jLabel8" min="-2" max="-2" attributes="0"/>
97
              <Component id="jLabel8" min="-2" max="-2" attributes="0"/>
98
              <EmptySpace max="-2" attributes="0"/>
99
              <Group type="103" groupAlignment="3" attributes="0">
100
                  <Component id="jLabel9" alignment="3" min="-2" max="-2" attributes="0"/>
101
                  <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/>
102
              </Group>
89
              <EmptySpace max="32767" attributes="0"/>
103
              <EmptySpace max="32767" attributes="0"/>
90
          </Group>
104
          </Group>
91
      </Group>
105
      </Group>
Lines 359-363 Link Here
359
        </Property>
373
        </Property>
360
      </AccessibilityProperties>
374
      </AccessibilityProperties>
361
    </Component>
375
    </Component>
376
    <Component class="javax.swing.JLabel" name="jLabel9">
377
      <Properties>
378
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
379
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_TABLE_Caption" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
380
        </Property>
381
      </Properties>
382
      <AccessibilityProperties>
383
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
384
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_TABLE_Caption" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
385
        </Property>
386
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
387
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_TABLE_Caption" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
388
        </Property>
389
      </AccessibilityProperties>
390
    </Component>
391
    <Component class="javax.swing.JTextField" name="jTextField1">
392
    </Component>
362
  </SubComponents>
393
  </SubComponents>
363
</Form>
394
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/TABLECustomizer.java (-7 / +27 lines)
Lines 142-147 Link Here
142
        int cpadd = ((Integer)jSpinner5.getValue()).intValue();
142
        int cpadd = ((Integer)jSpinner5.getValue()).intValue();
143
        table.setCpadd(cpadd);
143
        table.setCpadd(cpadd);
144
        
144
        
145
        table.setCaption(jTextField1.getText());
146
        
145
    }
147
    }
146
    
148
    
147
    /** This method is called from within the constructor to
149
    /** This method is called from within the constructor to
Lines 166-171 Link Here
166
        jSpinner4 = new javax.swing.JSpinner();
168
        jSpinner4 = new javax.swing.JSpinner();
167
        jSpinner5 = new javax.swing.JSpinner();
169
        jSpinner5 = new javax.swing.JSpinner();
168
        widthSpinner = new javax.swing.JSpinner();
170
        widthSpinner = new javax.swing.JSpinner();
171
        jLabel9 = new javax.swing.JLabel();
172
        jTextField1 = new javax.swing.JTextField();
169
173
170
        jLabel1.setLabelFor(jSpinner2);
174
        jLabel1.setLabelFor(jSpinner2);
171
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "LBL_TABLE_Columns")); // NOI18N
175
        org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "LBL_TABLE_Columns")); // NOI18N
Lines 213-218 Link Here
213
        widthSpinner.setEditor(new JSpinner.NumberEditor(widthSpinner, "#"));
217
        widthSpinner.setEditor(new JSpinner.NumberEditor(widthSpinner, "#"));
214
        widthSpinner.setValue(new Integer(table.getWidth()));
218
        widthSpinner.setValue(new Integer(table.getWidth()));
215
219
220
        org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "LBL_TABLE_Caption")); // NOI18N
221
216
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
222
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
217
        this.setLayout(layout);
223
        this.setLayout(layout);
218
        layout.setHorizontalGroup(
224
        layout.setHorizontalGroup(
Lines 228-248 Link Here
228
                    .addComponent(jLabel6))
234
                    .addComponent(jLabel6))
229
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
235
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
230
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
236
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
231
                    .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
237
                    .addComponent(jSpinner1)
232
                    .addComponent(jSpinner2)
238
                    .addComponent(jSpinner2)
233
                    .addComponent(jSpinner3)
239
                    .addComponent(jSpinner3)
234
                    .addComponent(widthSpinner, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
240
                    .addComponent(widthSpinner)
235
                    .addComponent(jSpinner4)
241
                    .addComponent(jSpinner4)
236
                    .addComponent(jSpinner5, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE))
242
                    .addComponent(jSpinner5))
237
                .addGap(245, 245, 245))
243
                .addGap(245, 245, 245))
238
            .addGroup(layout.createSequentialGroup()
244
            .addGroup(layout.createSequentialGroup()
245
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
246
                    .addGroup(layout.createSequentialGroup()
239
                .addGap(44, 44, 44)
247
                .addGap(44, 44, 44)
240
                .addComponent(jLabel7)
248
                        .addComponent(jLabel7))
241
                .addContainerGap(216, Short.MAX_VALUE))
242
            .addGroup(layout.createSequentialGroup()
249
            .addGroup(layout.createSequentialGroup()
243
                .addGap(44, 44, 44)
250
                .addGap(44, 44, 44)
244
                .addComponent(jLabel8)
251
                        .addComponent(jLabel8))
245
                .addContainerGap(38, Short.MAX_VALUE))
252
                    .addGroup(layout.createSequentialGroup()
253
                        .addContainerGap()
254
                        .addComponent(jLabel9)
255
                        .addGap(43, 43, 43)
256
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)))
257
                .addContainerGap())
246
        );
258
        );
247
259
248
        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jSpinner1, jSpinner2, jSpinner3, jSpinner4, jSpinner5, widthSpinner});
260
        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jSpinner1, jSpinner2, jSpinner3, jSpinner4, jSpinner5, widthSpinner});
Lines 278-283 Link Here
278
                    .addComponent(jSpinner5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
290
                    .addComponent(jSpinner5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
279
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
291
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
280
                .addComponent(jLabel8)
292
                .addComponent(jLabel8)
293
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
294
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
295
                    .addComponent(jLabel9)
296
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
281
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
297
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
282
        );
298
        );
283
299
Lines 309-314 Link Here
309
        jSpinner5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSD_TABLE_Padding_Spinner")); // NOI18N
325
        jSpinner5.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSD_TABLE_Padding_Spinner")); // NOI18N
310
        widthSpinner.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSN_TABLE_Width_Spinner")); // NOI18N
326
        widthSpinner.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSN_TABLE_Width_Spinner")); // NOI18N
311
        widthSpinner.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSD_TABLE_Width_Spinner")); // NOI18N
327
        widthSpinner.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSD_TABLE_Width_Spinner")); // NOI18N
328
        jLabel9.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSN_TABLE_Caption")); // NOI18N
329
        jLabel9.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TABLECustomizer.class, "ACSD_TABLE_Caption")); // NOI18N
312
    }// </editor-fold>//GEN-END:initComponents
330
    }// </editor-fold>//GEN-END:initComponents
313
    
331
    
314
    
332
    
Lines 321-331 Link Here
321
    private javax.swing.JLabel jLabel6;
339
    private javax.swing.JLabel jLabel6;
322
    private javax.swing.JLabel jLabel7;
340
    private javax.swing.JLabel jLabel7;
323
    private javax.swing.JLabel jLabel8;
341
    private javax.swing.JLabel jLabel8;
342
    private javax.swing.JLabel jLabel9;
324
    private javax.swing.JSpinner jSpinner1;
343
    private javax.swing.JSpinner jSpinner1;
325
    private javax.swing.JSpinner jSpinner2;
344
    private javax.swing.JSpinner jSpinner2;
326
    private javax.swing.JSpinner jSpinner3;
345
    private javax.swing.JSpinner jSpinner3;
327
    private javax.swing.JSpinner jSpinner4;
346
    private javax.swing.JSpinner jSpinner4;
328
    private javax.swing.JSpinner jSpinner5;
347
    private javax.swing.JSpinner jSpinner5;
348
    private javax.swing.JTextField jTextField1;
329
    private javax.swing.JSpinner widthSpinner;
349
    private javax.swing.JSpinner widthSpinner;
330
    // End of variables declaration//GEN-END:variables
350
    // End of variables declaration//GEN-END:variables
331
    
351
    
(-)html/src/org/netbeans/modules/html/palette/items/TEXTAREA.java (-2 / +33 lines)
Lines 67-72 Link Here
67
    private boolean readonly = false;
67
    private boolean readonly = false;
68
    private int rows = ROWS_DEFAULT;
68
    private int rows = ROWS_DEFAULT;
69
    private int cols = COLS_DEFAULT;
69
    private int cols = COLS_DEFAULT;
70
    private boolean generateID = false;
71
    private boolean generateLabel = false;
70
    
72
    
71
    public TEXTAREA() {
73
    public TEXTAREA() {
72
    }
74
    }
Lines 100-107 Link Here
100
102
101
        String strRows = " rows=\"" + rows + "\""; // NOI18N
103
        String strRows = " rows=\"" + rows + "\""; // NOI18N
102
        String strCols = " cols=\"" + cols + "\""; // NOI18N
104
        String strCols = " cols=\"" + cols + "\""; // NOI18N
103
        
105
        String strId = (generateID ? " id=\"" + name + "\" " : ""); // NOI18N
104
        String taBody = "<textarea" + strName + strRows + strCols + strReadOnly + strDisabled + ">\n" + // NOI18N
106
        String strLabel = (generateLabel ? "<label for=\"" + name + "\"></label>" : "");
107
        String taBody = strLabel+"<textarea" + strName + strRows + strCols + strReadOnly + strDisabled + strId + ">\n" + // NOI18N
105
                        strValue +
108
                        strValue +
106
                        "</textarea>"; // NOI18N
109
                        "</textarea>"; // NOI18N
107
        
110
        
Lines 156-159 Link Here
156
        this.value = value;
159
        this.value = value;
157
    }
160
    }
158
        
161
        
162
    /**
163
     * @return the generateID
164
     */
165
    public boolean isGenerateID() {
166
        return generateID;
159
}
167
}
168
169
    /**
170
     * @param generateID the generateID to set
171
     */
172
    public void setGenerateID(boolean generateID) {
173
        this.generateID = generateID;
174
    }
175
176
    /**
177
     * @return the generateLabel
178
     */
179
    public boolean isGenerateLabel() {
180
        return generateLabel;
181
    }
182
183
    /**
184
     * @param generateLabel the generateLabel to set
185
     */
186
    public void setGenerateLabel(boolean generateLabel) {
187
        this.generateLabel = generateLabel;
188
    }
189
        
190
}
(-)html/src/org/netbeans/modules/html/palette/items/TEXTAREACustomizer.form (-2 / +93 lines)
Lines 1-4 Link Here
1
<?xml version="1.1" encoding="UTF-8" ?>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
2
3
<Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
3
<Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
4
  <AuxValues>
4
  <AuxValues>
Lines 216-222 Link Here
216
      </AccessibilityProperties>
216
      </AccessibilityProperties>
217
      <Constraints>
217
      <Constraints>
218
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
218
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
219
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="1.0" weightY="1.0"/>
219
          <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="12" insetsBottom="12" insetsRight="12" anchor="18" weightX="1.0" weightY="0.0"/>
220
        </Constraint>
220
        </Constraint>
221
      </Constraints>
221
      </Constraints>
222
    </Component>
222
    </Component>
Lines 263-267 Link Here
263
        </Component>
263
        </Component>
264
      </SubComponents>
264
      </SubComponents>
265
    </Container>
265
    </Container>
266
    <Component class="javax.swing.JLabel" name="jLabel6">
267
      <Properties>
268
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
269
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_TEXTAREA_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
270
        </Property>
271
      </Properties>
272
      <AccessibilityProperties>
273
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
274
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_TEXTAREA_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
275
        </Property>
276
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
277
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_TEXTAREA_Id" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
278
        </Property>
279
      </AccessibilityProperties>
280
      <Constraints>
281
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
282
          <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
283
        </Constraint>
284
      </Constraints>
285
    </Component>
286
    <Component class="javax.swing.JCheckBox" name="jCheckBox3">
287
      <Properties>
288
        <Property name="selected" type="boolean" value="true"/>
289
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
290
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_TEXTAREA_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
291
        </Property>
292
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
293
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
294
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
295
          </Border>
296
        </Property>
297
      </Properties>
298
      <AccessibilityProperties>
299
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
300
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_TEXTAREA_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
301
        </Property>
302
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
303
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_TEXTAREA_IdSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
304
        </Property>
305
      </AccessibilityProperties>
306
      <Constraints>
307
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
308
          <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
309
        </Constraint>
310
      </Constraints>
311
    </Component>
312
    <Component class="javax.swing.JLabel" name="jLabel7">
313
      <Properties>
314
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
315
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_TEXTAREA_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
316
        </Property>
317
      </Properties>
318
      <AccessibilityProperties>
319
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
320
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_TEXTAREA_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
321
        </Property>
322
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
323
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_TEXTAREA_Label" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
324
        </Property>
325
      </AccessibilityProperties>
326
      <Constraints>
327
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
328
          <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="0.0"/>
329
        </Constraint>
330
      </Constraints>
331
    </Component>
332
    <Component class="javax.swing.JCheckBox" name="jCheckBox4">
333
      <Properties>
334
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
335
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="LBL_TEXTAREA_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
336
        </Property>
337
        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
338
          <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
339
            <EmptyBorder bottom="0" left="0" right="0" top="0"/>
340
          </Border>
341
        </Property>
342
      </Properties>
343
      <AccessibilityProperties>
344
        <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
345
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSN_TEXTAREA_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
346
        </Property>
347
        <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
348
          <ResourceString bundle="org/netbeans/modules/html/palette/items/Bundle.properties" key="ACSD_TEXTAREA_LabelSelected" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
349
        </Property>
350
      </AccessibilityProperties>
351
      <Constraints>
352
        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
353
          <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="12" insetsLeft="12" insetsBottom="0" insetsRight="0" anchor="11" weightX="0.0" weightY="1.0"/>
354
        </Constraint>
355
      </Constraints>
356
    </Component>
266
  </SubComponents>
357
  </SubComponents>
267
</Form>
358
</Form>
(-)html/src/org/netbeans/modules/html/palette/items/TEXTAREACustomizer.java (-2 / +58 lines)
Lines 130-136 Link Here
130
        
130
        
131
        int rows = ((Integer)jSpinner1.getValue()).intValue();
131
        int rows = ((Integer)jSpinner1.getValue()).intValue();
132
        textArea.setRows(rows);
132
        textArea.setRows(rows);
133
133
        textArea.setGenerateID(jCheckBox3.isSelected());
134
        textArea.setGenerateLabel(jCheckBox4.isSelected());
134
        int cols = ((Integer)jSpinner2.getValue()).intValue();
135
        int cols = ((Integer)jSpinner2.getValue()).intValue();
135
        textArea.setCols(cols);
136
        textArea.setCols(cols);
136
        
137
        
Lines 157-162 Link Here
157
        jLabel2 = new javax.swing.JLabel();
158
        jLabel2 = new javax.swing.JLabel();
158
        jScrollPane1 = new javax.swing.JScrollPane();
159
        jScrollPane1 = new javax.swing.JScrollPane();
159
        jTextArea1 = new javax.swing.JTextArea();
160
        jTextArea1 = new javax.swing.JTextArea();
161
        jLabel6 = new javax.swing.JLabel();
162
        jCheckBox3 = new javax.swing.JCheckBox();
163
        jLabel7 = new javax.swing.JLabel();
164
        jCheckBox4 = new javax.swing.JCheckBox();
160
165
161
        setLayout(new java.awt.GridBagLayout());
166
        setLayout(new java.awt.GridBagLayout());
162
167
Lines 261-267 Link Here
261
        gridBagConstraints.gridy = 5;
266
        gridBagConstraints.gridy = 5;
262
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
267
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
263
        gridBagConstraints.weightx = 1.0;
268
        gridBagConstraints.weightx = 1.0;
264
        gridBagConstraints.weighty = 1.0;
265
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 12, 12);
269
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 12, 12);
266
        add(jSpinner2, gridBagConstraints);
270
        add(jSpinner2, gridBagConstraints);
267
        jSpinner2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_Columns_Spinner")); // NOI18N
271
        jSpinner2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_Columns_Spinner")); // NOI18N
Lines 290-306 Link Here
290
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
294
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
291
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
295
        gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 12);
292
        add(jScrollPane1, gridBagConstraints);
296
        add(jScrollPane1, gridBagConstraints);
297
298
        org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "LBL_TEXTAREA_Id")); // NOI18N
299
        gridBagConstraints = new java.awt.GridBagConstraints();
300
        gridBagConstraints.gridx = 0;
301
        gridBagConstraints.gridy = 6;
302
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
303
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
304
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
305
        add(jLabel6, gridBagConstraints);
306
        jLabel6.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_Id")); // NOI18N
307
        jLabel6.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSD_TEXTAREA_Id")); // NOI18N
308
309
        jCheckBox3.setSelected(true);
310
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox3, org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "LBL_TEXTAREA_IdSelected")); // NOI18N
311
        jCheckBox3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
312
        gridBagConstraints = new java.awt.GridBagConstraints();
313
        gridBagConstraints.gridx = 1;
314
        gridBagConstraints.gridy = 6;
315
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
316
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
317
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
318
        add(jCheckBox3, gridBagConstraints);
319
        jCheckBox3.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_IdSelected")); // NOI18N
320
        jCheckBox3.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSD_TEXTAREA_IdSelected")); // NOI18N
321
322
        org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "LBL_TEXTAREA_Label")); // NOI18N
323
        gridBagConstraints = new java.awt.GridBagConstraints();
324
        gridBagConstraints.gridx = 0;
325
        gridBagConstraints.gridy = 7;
326
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
327
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
328
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
329
        add(jLabel7, gridBagConstraints);
330
        jLabel7.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_Label")); // NOI18N
331
        jLabel7.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSD_TEXTAREA_Label")); // NOI18N
332
333
        org.openide.awt.Mnemonics.setLocalizedText(jCheckBox4, org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "LBL_TEXTAREA_LabelSelected")); // NOI18N
334
        jCheckBox4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
335
        gridBagConstraints = new java.awt.GridBagConstraints();
336
        gridBagConstraints.gridx = 1;
337
        gridBagConstraints.gridy = 7;
338
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
339
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
340
        gridBagConstraints.weighty = 1.0;
341
        gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 0);
342
        add(jCheckBox4, gridBagConstraints);
343
        jCheckBox4.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSN_TEXTAREA_LabelSelected")); // NOI18N
344
        jCheckBox4.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TEXTAREACustomizer.class, "ACSD_TEXTAREA_LabelSelected")); // NOI18N
293
    }// </editor-fold>//GEN-END:initComponents
345
    }// </editor-fold>//GEN-END:initComponents
294
    
346
    
295
    
347
    
296
    // Variables declaration - do not modify//GEN-BEGIN:variables
348
    // Variables declaration - do not modify//GEN-BEGIN:variables
297
    private javax.swing.JCheckBox jCheckBox1;
349
    private javax.swing.JCheckBox jCheckBox1;
298
    private javax.swing.JCheckBox jCheckBox2;
350
    private javax.swing.JCheckBox jCheckBox2;
351
    private javax.swing.JCheckBox jCheckBox3;
352
    private javax.swing.JCheckBox jCheckBox4;
299
    private javax.swing.JLabel jLabel1;
353
    private javax.swing.JLabel jLabel1;
300
    private javax.swing.JLabel jLabel2;
354
    private javax.swing.JLabel jLabel2;
301
    private javax.swing.JLabel jLabel3;
355
    private javax.swing.JLabel jLabel3;
302
    private javax.swing.JLabel jLabel4;
356
    private javax.swing.JLabel jLabel4;
303
    private javax.swing.JLabel jLabel5;
357
    private javax.swing.JLabel jLabel5;
358
    private javax.swing.JLabel jLabel6;
359
    private javax.swing.JLabel jLabel7;
304
    private javax.swing.JScrollPane jScrollPane1;
360
    private javax.swing.JScrollPane jScrollPane1;
305
    private javax.swing.JSpinner jSpinner1;
361
    private javax.swing.JSpinner jSpinner1;
306
    private javax.swing.JSpinner jSpinner2;
362
    private javax.swing.JSpinner jSpinner2;

Return to bug 161384