- Timestamp:
- 08/28/2017 04:12:45 PM (9 years ago)
- Location:
- trunk/src/event/editor
- Files:
-
- 1 deleted
- 23 edited
- 1 moved
-
AudioPanel.form (modified) (3 diffs)
-
AudioPanel.java (modified) (9 diffs)
-
CADLogPanel.form (modified) (3 diffs)
-
CADLogPanel.java (modified) (8 diffs)
-
CCTVPanel.form (modified) (3 diffs)
-
CCTVPanel.java (modified) (8 diffs)
-
CHPRadioPanel.java (modified) (1 diff)
-
CMSEvaluationPanel.form (modified) (3 diffs)
-
CMSEvaluationPanel.java (modified) (9 diffs)
-
Editor.java (modified) (1 diff)
-
GenericEvaluationPanel.java (modified) (3 diffs)
-
I_ScriptEventEditorPanel.java (moved) (moved from trunk/src/event/editor/ScriptEventEditorPanel.java) (1 diff)
-
MaintenanceRadioPanel.java (modified) (1 diff)
-
ParamicsPanel.form (modified) (3 diffs)
-
ParamicsPanel.java (modified) (9 diffs)
-
PropertyModel.java (modified) (1 diff)
-
RemoveablePanel.java (deleted)
-
TMTRadioPanel.java (modified) (1 diff)
-
TelephonePanel.java (modified) (1 diff)
-
TowPanel.form (modified) (3 diffs)
-
TowPanel.java (modified) (9 diffs)
-
UnitPanel.form (modified) (3 diffs)
-
UnitPanel.java (modified) (9 diffs)
-
WitnessPanel.form (modified) (3 diffs)
-
WitnessPanel.java (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/AudioPanel.form
r1 r92 20 20 <EmptySpace max="-2" attributes="0"/> 21 21 <Group type="103" groupAlignment="0" attributes="0"> 22 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/> 22 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 23 <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> 24 </Group> 25 <EmptySpace max="-2" attributes="0"/> 26 <Group type="103" groupAlignment="0" attributes="0"> 23 27 <Group type="102" alignment="0" attributes="0"> 24 <Group type="103" groupAlignment="0" attributes="0"> 25 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 26 <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> 27 </Group> 28 <Component id="audioFileText" min="-2" pref="395" max="-2" attributes="0"/> 28 29 <EmptySpace max="-2" attributes="0"/> 29 <Group type="103" groupAlignment="0" attributes="0"> 30 <Group type="102" alignment="0" attributes="0"> 31 <Component id="audioFileText" min="-2" pref="395" max="-2" attributes="0"/> 32 <EmptySpace max="-2" attributes="0"/> 33 <Component id="browseButton" pref="93" max="32767" attributes="0"/> 34 </Group> 35 <Component id="audioLengthText" alignment="0" pref="497" max="32767" attributes="0"/> 36 </Group> 30 <Component id="browseButton" pref="93" max="32767" attributes="0"/> 37 31 </Group> 32 <Component id="audioLengthText" alignment="0" pref="497" max="32767" attributes="0"/> 38 33 </Group> 39 34 <EmptySpace max="-2" attributes="0"/> … … 44 39 <Group type="103" groupAlignment="0" attributes="0"> 45 40 <Group type="102" alignment="0" attributes="0"> 46 <EmptySpace max="-2" attributes="0"/> 47 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 48 <EmptySpace max="-2" attributes="0"/> 41 <EmptySpace min="-2" pref="41" max="-2" attributes="0"/> 49 42 <Group type="103" groupAlignment="3" attributes="0"> 50 43 <Component id="audioFileText" alignment="3" min="-2" max="-2" attributes="0"/> … … 63 56 </Layout> 64 57 <SubComponents> 65 <Component class="javax.swing.JButton" name="removeButton">66 <Properties>67 <Property name="text" type="java.lang.String" value="Remove"/>68 <Property name="toolTipText" type="java.lang.String" value="Removes this property"/>69 </Properties>70 <Events>71 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeThisProperty"/>72 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removeButtonActionPerformed"/>73 </Events>74 </Component>75 58 <Component class="javax.swing.JLabel" name="jLabel1"> 76 59 <Properties> -
trunk/src/event/editor/AudioPanel.java
r89 r92 11 11 * @author nathaniellehrer 12 12 */ 13 public class AudioPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel13 public class AudioPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 14 14 { 15 15 … … 26 26 } 27 27 28 /**29 * Load the script event associated with this editor panel.30 *31 * @param sei The script event in question32 */33 28 @Override 34 29 public void getEventObject(I_ScriptEvent sei) … … 85 80 } 86 81 87 public void setRemoveListener(ActionListener listener) 88 { 89 removeListener = listener; 90 } 91 82 @Override 92 83 public void update(Observable o, Object arg) 93 84 { … … 113 104 { 114 105 115 removeButton = new javax.swing.JButton();116 106 jLabel1 = new javax.swing.JLabel(); 117 107 audioFileText = new javax.swing.JTextField(); … … 119 109 audioLengthText = new javax.swing.JFormattedTextField(); 120 110 browseButton = new javax.swing.JButton(); 121 122 removeButton.setText("Remove");123 removeButton.setToolTipText("Removes this property");124 removeButton.addMouseListener(new java.awt.event.MouseAdapter()125 {126 public void mouseClicked(java.awt.event.MouseEvent evt)127 {128 removeThisProperty(evt);129 }130 });131 removeButton.addActionListener(new java.awt.event.ActionListener()132 {133 public void actionPerformed(java.awt.event.ActionEvent evt)134 {135 removeButtonActionPerformed(evt);136 }137 });138 111 139 112 jLabel1.setText("Audio File"); … … 162 135 .addContainerGap() 163 136 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 164 .add(org.jdesktop.layout.GroupLayout.TRAILING, removeButton) 137 .add(jLabel1) 138 .add(jLabel2)) 139 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 140 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 165 141 .add(layout.createSequentialGroup() 166 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 167 .add(jLabel1) 168 .add(jLabel2)) 142 .add(audioFileText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 395, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 169 143 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 170 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 171 .add(layout.createSequentialGroup() 172 .add(audioFileText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 395, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 173 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 174 .add(browseButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)) 175 .add(audioLengthText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE)))) 144 .add(browseButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)) 145 .add(audioLengthText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 497, Short.MAX_VALUE)) 176 146 .addContainerGap()) 177 147 ); … … 179 149 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 180 150 .add(layout.createSequentialGroup() 181 .addContainerGap() 182 .add(removeButton) 183 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 151 .add(41, 41, 41) 184 152 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 185 153 .add(audioFileText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) … … 193 161 ); 194 162 }// </editor-fold>//GEN-END:initComponents 195 196 private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed197 // TODO add your handling code here:198 }//GEN-LAST:event_removeButtonActionPerformed199 200 private void removeThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeThisProperty201 if (removeListener != null)202 {203 removeListener.actionPerformed(new ActionEvent(this, 0, ""));204 }205 }//GEN-LAST:event_removeThisProperty206 163 207 164 private void browse(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_browse … … 221 178 private javax.swing.JLabel jLabel1; 222 179 private javax.swing.JLabel jLabel2; 223 private javax.swing.JButton removeButton;224 180 // End of variables declaration//GEN-END:variables 225 181 -
trunk/src/event/editor/CADLogPanel.form
r1 r92 23 23 <Group type="102" alignment="1" attributes="0"> 24 24 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 25 <EmptySpace pref="330" max="32767" attributes="0"/> 26 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 25 <EmptySpace min="0" pref="0" max="32767" attributes="0"/> 27 26 </Group> 28 27 </Group> … … 34 33 <Group type="103" groupAlignment="0" attributes="0"> 35 34 <Group type="102" alignment="0" attributes="0"> 36 <EmptySpace max="-2" attributes="0"/> 37 <Group type="103" groupAlignment="1" attributes="0"> 38 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/> 39 <Component id="jLabel1" alignment="1" min="-2" max="-2" attributes="0"/> 40 </Group> 35 <EmptySpace min="-2" pref="19" max="-2" attributes="0"/> 36 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 41 37 <EmptySpace max="-2" attributes="0"/> 42 38 <Component id="jScrollPane1" pref="120" max="32767" attributes="0"/> … … 47 43 </Layout> 48 44 <SubComponents> 49 <Component class="javax.swing.JButton" name="removeButton">50 <Properties>51 <Property name="text" type="java.lang.String" value="Remove"/>52 </Properties>53 <Events>54 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeButtonremoveThisProperty"/>55 </Events>56 </Component>57 45 <Component class="javax.swing.JLabel" name="jLabel1"> 58 46 <Properties> -
trunk/src/event/editor/CADLogPanel.java
r89 r92 10 10 * @author nathaniellehrer 11 11 */ 12 public class CADLogPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel12 public class CADLogPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 13 13 { 14 14 … … 23 23 initComponents(); 24 24 } 25 26 public void setRemoveListener(ActionListener listener)27 {28 removeListener = listener;29 }30 31 25 /** 32 26 * Load the script event associated with this editor panel. … … 60 54 } 61 55 56 @Override 62 57 public void update(Observable o, Object arg) 63 58 { … … 83 78 { 84 79 85 removeButton = new javax.swing.JButton();86 80 jLabel1 = new javax.swing.JLabel(); 87 81 jScrollPane1 = new javax.swing.JScrollPane(); 88 82 CadTextField = new javax.swing.JTextArea(); 89 90 removeButton.setText("Remove");91 removeButton.addMouseListener(new java.awt.event.MouseAdapter()92 {93 public void mouseClicked(java.awt.event.MouseEvent evt)94 {95 removeButtonremoveThisProperty(evt);96 }97 });98 83 99 84 jLabel1.setText("Cad Log Text"); … … 113 98 .add(layout.createSequentialGroup() 114 99 .add(jLabel1) 115 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 330, Short.MAX_VALUE) 116 .add(removeButton))) 100 .add(0, 0, Short.MAX_VALUE))) 117 101 .addContainerGap()) 118 102 ); … … 120 104 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 121 105 .add(layout.createSequentialGroup() 122 .addContainerGap() 123 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 124 .add(removeButton) 125 .add(jLabel1)) 106 .add(19, 19, 19) 107 .add(jLabel1) 126 108 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 127 109 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE) … … 130 112 }// </editor-fold>//GEN-END:initComponents 131 113 132 private void removeButtonremoveThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeButtonremoveThisProperty133 if (removeListener != null)134 {135 removeListener.actionPerformed(new ActionEvent(this, 0, ""));136 }137 }//GEN-LAST:event_removeButtonremoveThisProperty138 139 114 140 115 // Variables declaration - do not modify//GEN-BEGIN:variables … … 142 117 private javax.swing.JLabel jLabel1; 143 118 private javax.swing.JScrollPane jScrollPane1; 144 private javax.swing.JButton removeButton;145 119 // End of variables declaration//GEN-END:variables 146 120 -
trunk/src/event/editor/CCTVPanel.form
r50 r92 21 21 <Group type="103" groupAlignment="0" attributes="0"> 22 22 <Component id="help" alignment="1" pref="540" max="32767" attributes="0"/> 23 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>24 23 <Group type="102" alignment="0" attributes="0"> 25 24 <Group type="103" groupAlignment="0" attributes="0"> … … 43 42 <Group type="103" groupAlignment="0" attributes="0"> 44 43 <Group type="102" alignment="0" attributes="0"> 45 <EmptySpace max="-2" attributes="0"/> 46 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 47 <EmptySpace type="unrelated" max="-2" attributes="0"/> 44 <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> 48 45 <Group type="103" groupAlignment="3" attributes="0"> 49 46 <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> … … 68 65 </Layout> 69 66 <SubComponents> 70 <Component class="javax.swing.JButton" name="removeButton">71 <Properties>72 <Property name="text" type="java.lang.String" value="Remove"/>73 </Properties>74 <Events>75 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeButtonremoveThisProperty"/>76 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removeButtonActionPerformed"/>77 </Events>78 </Component>79 67 <Component class="javax.swing.JLabel" name="jLabel1"> 80 68 <Properties> -
trunk/src/event/editor/CCTVPanel.java
r89 r92 10 10 * @author nathaniellehrer 11 11 */ 12 public class CCTVPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel12 public class CCTVPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 13 13 { 14 14 15 private ActionListener removeListener;16 15 private CCTVEvent event; 17 16 … … 55 54 56 55 @Override 57 public void setRemoveListener(ActionListener listener)58 {59 removeListener = listener;60 }61 62 @Override63 56 public void getEventObject(I_ScriptEvent sei) 64 57 { … … 94 87 { 95 88 96 removeButton = new javax.swing.JButton();97 89 jLabel1 = new javax.swing.JLabel(); 98 90 txtDirField = new javax.swing.JFormattedTextField(); … … 102 94 txtToggleField = new javax.swing.JFormattedTextField(); 103 95 help = new javax.swing.JLabel(); 104 105 removeButton.setText("Remove");106 removeButton.addMouseListener(new java.awt.event.MouseAdapter()107 {108 public void mouseClicked(java.awt.event.MouseEvent evt)109 {110 removeButtonremoveThisProperty(evt);111 }112 });113 removeButton.addActionListener(new java.awt.event.ActionListener()114 {115 public void actionPerformed(java.awt.event.ActionEvent evt)116 {117 removeButtonActionPerformed(evt);118 }119 });120 96 121 97 jLabel1.setText("ID"); … … 137 113 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 138 114 .add(org.jdesktop.layout.GroupLayout.TRAILING, help, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE) 139 .add(org.jdesktop.layout.GroupLayout.TRAILING, removeButton)140 115 .add(layout.createSequentialGroup() 141 116 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) … … 153 128 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 154 129 .add(layout.createSequentialGroup() 155 .addContainerGap() 156 .add(removeButton) 157 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) 130 .add(47, 47, 47) 158 131 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 159 132 .add(jLabel1) … … 173 146 }// </editor-fold>//GEN-END:initComponents 174 147 175 private void removeButtonremoveThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeButtonremoveThisProperty176 if (removeListener != null)177 {178 removeListener.actionPerformed(new ActionEvent(this, 0, ""));179 }180 }//GEN-LAST:event_removeButtonremoveThisProperty181 182 private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed183 // TODO add your handling code here:184 }//GEN-LAST:event_removeButtonActionPerformed185 186 148 187 149 // Variables declaration - do not modify//GEN-BEGIN:variables … … 190 152 private javax.swing.JLabel jLabel2; 191 153 private javax.swing.JLabel jLabel3; 192 private javax.swing.JButton removeButton;193 154 private javax.swing.JFormattedTextField txtDirField; 194 155 private javax.swing.JTextField txtIDField; -
trunk/src/event/editor/CHPRadioPanel.java
r89 r92 12 12 * @author nathaniellehrer 13 13 */ 14 public class CHPRadioPanel extends javax.swing.JPanel implements ScriptEventEditorPanel14 public class CHPRadioPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 15 15 { 16 16 -
trunk/src/event/editor/CMSEvaluationPanel.form
r1 r92 30 30 <Group type="103" groupAlignment="0" attributes="0"> 31 31 <Component id="jScrollPane1" alignment="0" max="32767" attributes="0"/> 32 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>33 32 <Group type="102" alignment="0" attributes="0"> 34 33 <Group type="103" groupAlignment="0" attributes="0"> … … 54 53 <Group type="103" groupAlignment="0" attributes="0"> 55 54 <Group type="102" alignment="0" attributes="0"> 56 <EmptySpace min="-2" pref="17" max="-2" attributes="0"/> 57 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 58 <EmptySpace max="-2" attributes="0"/> 55 <EmptySpace min="-2" pref="52" max="-2" attributes="0"/> 59 56 <Group type="103" groupAlignment="3" attributes="0"> 60 57 <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> … … 84 81 </Layout> 85 82 <SubComponents> 86 <Component class="javax.swing.JButton" name="removeButton">87 <Properties>88 <Property name="text" type="java.lang.String" value="Remove"/>89 <Property name="toolTipText" type="java.lang.String" value="Removes this property"/>90 </Properties>91 <Events>92 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeButtonremoveThisProperty"/>93 </Events>94 </Component>95 83 <Component class="javax.swing.JLabel" name="jLabel3"> 96 84 <Properties> -
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; -
trunk/src/event/editor/Editor.java
r89 r92 456 456 { 457 457 jTabbedPane1.remove(update.getPanel().getPanel()); 458 if (update.getPanel().getPanel() instanceof ScriptEventEditorPanel)459 { 460 (( ScriptEventEditorPanel) update.getPanel().getPanel()).removeAssociatedEvent();458 if (update.getPanel().getPanel() instanceof I_ScriptEventEditorPanel) 459 { 460 ((I_ScriptEventEditorPanel) update.getPanel().getPanel()).removeAssociatedEvent(); 461 461 } 462 462 topFrame.repaint(); -
trunk/src/event/editor/GenericEvaluationPanel.java
r89 r92 14 14 * @author nathaniellehrer 15 15 */ 16 public class GenericEvaluationPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel16 public class GenericEvaluationPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 17 17 { 18 18 19 private ActionListener removeListener;20 19 private I_EvaluationEvent event; 21 20 private JTable dialogTable; … … 32 31 } 33 32 34 public void setRemoveListener(ActionListener listener) 35 { 36 removeListener = listener; 37 } 38 33 @Override 39 34 public void getEventObject(I_ScriptEvent sei) 40 35 { … … 75 70 } 76 71 72 @Override 77 73 public void update(Observable o, Object arg) 78 74 { -
trunk/src/event/editor/I_ScriptEventEditorPanel.java
r89 r92 13 13 * @author Bryan McGuffin 14 14 */ 15 public interface ScriptEventEditorPanel extends Observer15 public interface I_ScriptEventEditorPanel extends Observer 16 16 { 17 17 -
trunk/src/event/editor/MaintenanceRadioPanel.java
r89 r92 9 9 * @author nathaniellehrer 10 10 */ 11 public class MaintenanceRadioPanel extends javax.swing.JPanel implements ScriptEventEditorPanel11 public class MaintenanceRadioPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 12 12 { 13 13 -
trunk/src/event/editor/ParamicsPanel.form
r1 r92 49 49 </Group> 50 50 </Group> 51 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>52 51 <Group type="102" alignment="0" attributes="0"> 53 52 <Group type="103" groupAlignment="0" attributes="0"> … … 70 69 <Group type="103" groupAlignment="0" attributes="0"> 71 70 <Group type="102" attributes="0"> 72 <EmptySpace max="-2" attributes="0"/> 73 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 74 <EmptySpace max="-2" attributes="0"/> 71 <EmptySpace min="-2" pref="41" max="-2" attributes="0"/> 75 72 <Group type="103" groupAlignment="3" attributes="0"> 76 73 <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> … … 128 125 </Layout> 129 126 <SubComponents> 130 <Component class="javax.swing.JButton" name="removeButton">131 <Properties>132 <Property name="text" type="java.lang.String" value="Remove"/>133 </Properties>134 <Events>135 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeThisProperty"/>136 </Events>137 </Component>138 127 <Component class="javax.swing.JLabel" name="jLabel1"> 139 128 <Properties> -
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 -
trunk/src/event/editor/PropertyModel.java
r89 r92 53 53 54 54 final PropertyPanel propertyPanel = properties.addPropertyPanel(property, panel); 55 if (panel instanceof ScriptEventEditorPanel)55 if (panel instanceof I_ScriptEventEditorPanel) 56 56 { 57 ((ScriptEventEditorPanel) panel).getEventObject(se); 58 } 59 if (property.getType() == PropertyTypes.Multiple) 60 { 61 62 if (panel instanceof RemoveablePanel) 63 { 64 ((RemoveablePanel) panel).setRemoveListener(new ActionListener() 65 { 66 public void actionPerformed(ActionEvent evt) 67 { 68 properties.removeProperty(propertyPanel); 69 } 70 }); 71 } 72 else 73 { 74 throw new RuntimeException("Property was multiple but panel was not removeable"); 75 } 57 ((I_ScriptEventEditorPanel) panel).getEventObject(se); 76 58 } 77 59 } -
trunk/src/event/editor/TMTRadioPanel.java
r89 r92 9 9 * @author nathaniellehrer 10 10 */ 11 public class TMTRadioPanel extends javax.swing.JPanel implements ScriptEventEditorPanel11 public class TMTRadioPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 12 12 { 13 13 -
trunk/src/event/editor/TelephonePanel.java
r89 r92 13 13 * @author nathaniellehrer 14 14 */ 15 public class TelephonePanel extends javax.swing.JPanel implements ScriptEventEditorPanel15 public class TelephonePanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 16 16 { 17 17 -
trunk/src/event/editor/TowPanel.form
r1 r92 21 21 <Group type="103" groupAlignment="0" attributes="0"> 22 22 <Component id="help" pref="543" max="32767" attributes="0"/> 23 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>24 23 <Group type="102" alignment="0" attributes="0"> 25 24 <Group type="103" groupAlignment="0" attributes="0"> … … 45 44 <Group type="103" groupAlignment="0" attributes="0"> 46 45 <Group type="102" alignment="1" attributes="0"> 47 <EmptySpace max="-2" attributes="0"/> 48 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 49 <EmptySpace type="unrelated" max="-2" attributes="0"/> 46 <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> 50 47 <Group type="103" groupAlignment="3" attributes="0"> 51 48 <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> … … 75 72 </Layout> 76 73 <SubComponents> 77 <Component class="javax.swing.JButton" name="removeButton">78 <Properties>79 <Property name="text" type="java.lang.String" value="Remove"/>80 </Properties>81 <Events>82 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeThisProperty"/>83 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="removeButtonActionPerformed"/>84 </Events>85 </Component>86 74 <Component class="javax.swing.JLabel" name="jLabel1"> 87 75 <Properties> -
trunk/src/event/editor/TowPanel.java
r89 r92 10 10 * @author nathaniellehrer 11 11 */ 12 public class TowPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel12 public class TowPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 13 13 { 14 14 … … 55 55 } 56 56 57 public void setRemoveListener(ActionListener listener) 58 { 59 removeListener = listener; 60 } 61 57 @Override 62 58 public void getEventObject(I_ScriptEvent sei) 63 59 { … … 133 129 } 134 130 131 @Override 135 132 public void update(Observable o, Object arg) 136 133 { … … 156 153 { 157 154 158 removeButton = new javax.swing.JButton();159 155 jLabel1 = new javax.swing.JLabel(); 160 156 txtCompany = new javax.swing.JTextField(); … … 167 163 help = new javax.swing.JLabel(); 168 164 169 removeButton.setText("Remove");170 removeButton.addMouseListener(new java.awt.event.MouseAdapter()171 {172 public void mouseClicked(java.awt.event.MouseEvent evt)173 {174 removeThisProperty(evt);175 }176 });177 removeButton.addActionListener(new java.awt.event.ActionListener()178 {179 public void actionPerformed(java.awt.event.ActionEvent evt)180 {181 removeButtonActionPerformed(evt);182 }183 });184 185 165 jLabel1.setText("Company"); 186 166 … … 215 195 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 216 196 .add(help, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE) 217 .add(org.jdesktop.layout.GroupLayout.TRAILING, removeButton)218 197 .add(layout.createSequentialGroup() 219 198 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) … … 233 212 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 234 213 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 235 .addContainerGap() 236 .add(removeButton) 237 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) 214 .add(47, 47, 47) 238 215 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 239 216 .add(jLabel1) … … 257 234 }// </editor-fold>//GEN-END:initComponents 258 235 259 private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed260 // TODO add your handling code here:261 }//GEN-LAST:event_removeButtonActionPerformed262 263 private void removeThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeThisProperty264 if (removeListener != null)265 {266 removeListener.actionPerformed(new ActionEvent(this, 0, ""));267 }268 }//GEN-LAST:event_removeThisProperty269 270 236 271 237 // Variables declaration - do not modify//GEN-BEGIN:variables … … 275 241 private javax.swing.JLabel jLabel3; 276 242 private javax.swing.JLabel jLabel4; 277 private javax.swing.JButton removeButton;278 243 private javax.swing.JTextField txtBeat; 279 244 private javax.swing.JTextField txtCompany; -
trunk/src/event/editor/UnitPanel.form
r1 r92 20 20 <EmptySpace max="-2" attributes="0"/> 21 21 <Group type="103" groupAlignment="0" attributes="0"> 22 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>23 22 <Component id="help" alignment="1" pref="565" max="32767" attributes="0"/> 24 23 <Group type="102" alignment="0" attributes="0"> … … 52 51 <Group type="103" groupAlignment="0" attributes="0"> 53 52 <Group type="102" alignment="0" attributes="0"> 54 <EmptySpace max="-2" attributes="0"/> 55 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 56 <EmptySpace type="unrelated" max="-2" attributes="0"/> 53 <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> 57 54 <Group type="103" groupAlignment="3" attributes="0"> 58 55 <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> … … 92 89 <Property name="toolTipText" type="java.lang.String" value=""/> 93 90 </Properties> 94 </Component>95 <Component class="javax.swing.JButton" name="removeButton">96 <Properties>97 <Property name="text" type="java.lang.String" value="Remove"/>98 </Properties>99 <Events>100 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeThisProperty"/>101 </Events>102 91 </Component> 103 92 <Component class="javax.swing.JLabel" name="jLabel2"> -
trunk/src/event/editor/UnitPanel.java
r89 r92 10 10 * @author nathaniellehrer 11 11 */ 12 public class UnitPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel12 public class UnitPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 13 13 { 14 14 … … 39 39 } 40 40 41 public void setRemoveListener(ActionListener listener) 42 { 43 removeListener = listener; 44 } 45 41 @Override 46 42 public void getEventObject(I_ScriptEvent sei) 47 43 { … … 118 114 } 119 115 116 @Override 120 117 public void update(Observable o, Object arg) 121 118 { … … 143 140 jLabel1 = new javax.swing.JLabel(); 144 141 txtUnitNumber = new javax.swing.JFormattedTextField(); 145 removeButton = new javax.swing.JButton();146 142 jLabel2 = new javax.swing.JLabel(); 147 143 StatusDropdown = new javax.swing.JComboBox(); … … 157 153 txtUnitNumber.setToolTipText(""); 158 154 159 removeButton.setText("Remove");160 removeButton.addMouseListener(new java.awt.event.MouseAdapter()161 {162 public void mouseClicked(java.awt.event.MouseEvent evt)163 {164 removeThisProperty(evt);165 }166 });167 168 155 jLabel2.setText("Status"); 169 156 … … 185 172 .addContainerGap() 186 173 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 187 .add(org.jdesktop.layout.GroupLayout.TRAILING, removeButton)188 174 .add(org.jdesktop.layout.GroupLayout.TRAILING, help, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 565, Short.MAX_VALUE) 189 175 .add(layout.createSequentialGroup() … … 208 194 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 209 195 .add(layout.createSequentialGroup() 210 .addContainerGap() 211 .add(removeButton) 212 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) 196 .add(47, 47, 47) 213 197 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 214 198 .add(jLabel1) … … 231 215 ); 232 216 }// </editor-fold>//GEN-END:initComponents 233 234 private void removeThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeThisProperty235 if (removeListener != null)236 {237 removeListener.actionPerformed(new ActionEvent(this, 0, ""));238 }239 }//GEN-LAST:event_removeThisProperty240 217 241 218 … … 249 226 private javax.swing.JLabel jLabel3; 250 227 private javax.swing.JLabel jLabel4; 251 private javax.swing.JButton removeButton;252 228 private javax.swing.JFormattedTextField txtUnitNumber; 253 229 // End of variables declaration//GEN-END:variables -
trunk/src/event/editor/WitnessPanel.form
r1 r92 20 20 <EmptySpace max="-2" attributes="0"/> 21 21 <Group type="103" groupAlignment="1" attributes="0"> 22 <Component id="removeButton" alignment="1" min="-2" max="-2" attributes="0"/>23 22 <Group type="102" alignment="0" attributes="0"> 24 23 <Group type="103" groupAlignment="0" attributes="0"> … … 47 46 <Group type="103" groupAlignment="0" attributes="0"> 48 47 <Group type="102" alignment="0" attributes="0"> 49 <EmptySpace max="-2" attributes="0"/> 50 <Component id="removeButton" min="-2" max="-2" attributes="0"/> 51 <EmptySpace type="unrelated" max="-2" attributes="0"/> 48 <EmptySpace min="-2" pref="47" max="-2" attributes="0"/> 52 49 <Group type="103" groupAlignment="3" attributes="0"> 53 50 <Component id="txtFirstName" alignment="3" min="-2" max="-2" attributes="0"/> … … 75 72 </Layout> 76 73 <SubComponents> 77 <Component class="javax.swing.JButton" name="removeButton">78 <Properties>79 <Property name="text" type="java.lang.String" value="Remove"/>80 </Properties>81 <Events>82 <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="removeThisProperty"/>83 </Events>84 </Component>85 74 <Component class="javax.swing.JLabel" name="jLabel1"> 86 75 <Properties> -
trunk/src/event/editor/WitnessPanel.java
r89 r92 11 11 * @author nathaniellehrer 12 12 */ 13 public class WitnessPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel13 public class WitnessPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 14 14 { 15 15 … … 25 25 } 26 26 27 public void setRemoveListener(ActionListener listener) 28 { 29 removeListener = listener; 30 } 31 27 @Override 32 28 public void getEventObject(I_ScriptEvent sei) 33 29 { … … 119 115 } 120 116 117 @Override 121 118 public void update(Observable o, Object arg) 122 119 { … … 142 139 { 143 140 144 removeButton = new javax.swing.JButton();145 141 jLabel1 = new javax.swing.JLabel(); 146 142 txtFirstName = new javax.swing.JTextField(); … … 152 148 txtPhoneNumber = new javax.swing.JFormattedTextField(); 153 149 154 removeButton.setText("Remove");155 removeButton.addMouseListener(new java.awt.event.MouseAdapter()156 {157 public void mouseClicked(java.awt.event.MouseEvent evt)158 {159 removeThisProperty(evt);160 }161 });162 163 150 jLabel1.setText("First Name"); 164 151 … … 178 165 .addContainerGap() 179 166 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 180 .add(removeButton)181 167 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 182 168 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) … … 198 184 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 199 185 .add(layout.createSequentialGroup() 200 .addContainerGap() 201 .add(removeButton) 202 .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED) 186 .add(47, 47, 47) 203 187 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 204 188 .add(txtFirstName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) … … 220 204 }// </editor-fold>//GEN-END:initComponents 221 205 222 private void removeThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeThisProperty223 if (removeListener != null)224 {225 removeListener.actionPerformed(new ActionEvent(this, 0, ""));226 }227 }//GEN-LAST:event_removeThisProperty228 229 206 230 207 // Variables declaration - do not modify//GEN-BEGIN:variables … … 233 210 private javax.swing.JLabel jLabel3; 234 211 private javax.swing.JLabel jLabel4; 235 private javax.swing.JButton removeButton;236 212 private javax.swing.JTextField txtAddress; 237 213 private javax.swing.JTextField txtFirstName;
Note: See TracChangeset
for help on using the changeset viewer.
