Manage Legal Notices - Description
[habeas.git] / src / habeas / DraftStatusDialog.java
index 0154d47..0322a50 100644 (file)
@@ -24,7 +24,8 @@ public class DraftStatusDialog extends javax.swing.JDialog {
         initComponents();
     }
     
-    public void setDraftStatus (boolean created, boolean approved) {
+    public void setFields (int selid, boolean created, boolean approved) {        
+        selectednotice_id = selid;
         checkDraftCreated.setSelected(created);
         checkDraftApproved.setSelected(approved);
     }    
@@ -108,7 +109,7 @@ public class DraftStatusDialog extends javax.swing.JDialog {
 
     private void buttonUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonUpdateActionPerformed
         // TODO add your handling code here:
-        boolean rt = Utility.updateLegalNoticeDraftStatus (selectednotice_id,
+        boolean rt = Utility.updateNoticeDraftStatus (selectednotice_id,
                 checkDraftCreated.isSelected(), checkDraftApproved.isSelected());
         
         if (rt == false)
@@ -167,7 +168,4 @@ public class DraftStatusDialog extends javax.swing.JDialog {
     private javax.swing.JCheckBox checkDraftCreated;
     // End of variables declaration//GEN-END:variables
 
-    void setSelectedNotice(int selid) {
-        selectednotice_id = selid;
-    }
 }