Changeset 92 in tmcsimulator-scriptbuilder for trunk/src/event/editor/ParamicsPanel.java
- Timestamp:
- 08/28/2017 04:12:45 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/ParamicsPanel.java (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/ParamicsPanel.java
r89 r92 12 12 * @author nathaniellehrer 13 13 */ 14 public class ParamicsPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel14 public class ParamicsPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 15 15 { 16 16 … … 26 26 } 27 27 28 public void setRemoveListener(ActionListener listener) 29 { 30 removeListener = listener; 31 } 32 28 @Override 33 29 public void getEventObject(I_ScriptEvent sei) 34 30 { … … 107 103 } 108 104 105 @Override 109 106 public void update(Observable o, Object arg) 110 107 { … … 130 127 { 131 128 132 removeButton = new javax.swing.JButton();133 129 jLabel1 = new javax.swing.JLabel(); 134 130 jLabel2 = new javax.swing.JLabel(); … … 148 144 jCheckBox10 = new javax.swing.JCheckBox(); 149 145 LocationDropdown = new javax.swing.JComboBox(); 150 151 removeButton.setText("Remove");152 removeButton.addMouseListener(new java.awt.event.MouseAdapter()153 {154 public void mouseClicked(java.awt.event.MouseEvent evt)155 {156 removeThisProperty(evt);157 }158 });159 146 160 147 jLabel1.setText("Location"); … … 292 279 .add(jCheckBox10) 293 280 .add(jCheckBox9))) 294 .add(removeButton)295 281 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 296 282 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) … … 307 293 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 308 294 .add(layout.createSequentialGroup() 309 .addContainerGap() 310 .add(removeButton) 311 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 295 .add(41, 41, 41) 312 296 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 313 297 .add(jLabel1) … … 351 335 }// </editor-fold>//GEN-END:initComponents 352 336 353 private void removeThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeThisProperty354 if (removeListener != null)355 {356 removeListener.actionPerformed(new ActionEvent(this, 0, ""));357 }358 }//GEN-LAST:event_removeThisProperty359 360 337 private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed 361 338 if (jCheckBox1.isSelected()) … … 547 524 private javax.swing.JLabel jLabel3; 548 525 private javax.swing.JLabel jLabel4; 549 private javax.swing.JButton removeButton;550 526 // End of variables declaration//GEN-END:variables 551 527
Note: See TracChangeset
for help on using the changeset viewer.
