Changeset 92 in tmcsimulator-scriptbuilder for trunk/src/event/editor/CMSEvaluationPanel.java
- Timestamp:
- 08/28/2017 04:12:45 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/CMSEvaluationPanel.java (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/CMSEvaluationPanel.java
r89 r92 13 13 * @author nathaniellehrer 14 14 */ 15 public class CMSEvaluationPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel15 public class CMSEvaluationPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 16 16 { 17 17 18 18 private HashMap<String, Class> properties; 19 19 private JTable dialogTable; 20 private ActionListener removeListener;21 20 private CMSEvaluationEvent event; 22 21 … … 31 30 } 32 31 33 public void setRemoveListener(ActionListener listener)34 {35 removeListener = listener;36 }37 38 32 @Override 39 33 public void getEventObject(I_ScriptEvent sei) … … 133 127 } 134 128 129 @Override 135 130 public void update(Observable o, Object arg) 136 131 { … … 156 151 { 157 152 158 removeButton = new javax.swing.JButton();159 153 jLabel3 = new javax.swing.JLabel(); 160 154 txtLocation = new javax.swing.JTextField(); … … 167 161 txtMessage = new javax.swing.JTextArea(); 168 162 addButton = new javax.swing.JButton(); 169 170 removeButton.setText("Remove");171 removeButton.setToolTipText("Removes this property");172 removeButton.addMouseListener(new java.awt.event.MouseAdapter()173 {174 public void mouseClicked(java.awt.event.MouseEvent evt)175 {176 removeButtonremoveThisProperty(evt);177 }178 });179 163 180 164 jLabel3.setText("Location"); … … 218 202 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 219 203 .add(jScrollPane1) 220 .add(org.jdesktop.layout.GroupLayout.TRAILING, removeButton)221 204 .add(layout.createSequentialGroup() 222 205 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) … … 234 217 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 235 218 .add(layout.createSequentialGroup() 236 .add(17, 17, 17) 237 .add(removeButton) 238 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 219 .add(52, 52, 52) 239 220 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 240 221 .add(jLabel1) … … 257 238 ); 258 239 }// </editor-fold>//GEN-END:initComponents 259 260 private void removeButtonremoveThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeButtonremoveThisProperty261 if (removeListener != null)262 {263 removeListener.actionPerformed(new ActionEvent(this, 0, ""));264 }265 }//GEN-LAST:event_removeButtonremoveThisProperty266 240 267 241 … … 274 248 private javax.swing.JLabel jLabel3; 275 249 private javax.swing.JScrollPane jScrollPane1; 276 private javax.swing.JButton removeButton;277 250 private javax.swing.JFormattedTextField txtID; 278 251 private javax.swing.JTextField txtLocation;
Note: See TracChangeset
for help on using the changeset viewer.
