about summary refs log tree commit diff stats
path: root/client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-07-31 22:41:29 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-07-31 22:41:29 +0000
commitb37b47f9fb4442ba574f70cf9c70134e612eadce (patch)
tree554ae486f227f7257b05332b2e1165307bf00566 /client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java
parent255c2bbc97ed2c623b5897a0c068fc13a206d222 (diff)
downloadinstadisc-b37b47f9fb4442ba574f70cf9c70134e612eadce.tar.gz
instadisc-b37b47f9fb4442ba574f70cf9c70134e612eadce.tar.bz2
instadisc-b37b47f9fb4442ba574f70cf9c70134e612eadce.zip
Client: Added filters
Diffstat (limited to 'client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java')
-rw-r--r--client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java b/client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java index 6eeac2c..94a8075 100644 --- a/client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java +++ b/client/trunk/src/com/fourisland/instadisc/ManageSubscriptionsForm.java
@@ -8,6 +8,7 @@ package com.fourisland.instadisc;
8 8
9import com.fourisland.instadisc.Database.Subscription; 9import com.fourisland.instadisc.Database.Subscription;
10import com.fourisland.instadisc.Database.Wrapper; 10import com.fourisland.instadisc.Database.Wrapper;
11import com.fourisland.instadisc.Item.SubscriptionFile;
11import javax.swing.DefaultListModel; 12import javax.swing.DefaultListModel;
12 13
13/** 14/**
@@ -51,6 +52,7 @@ public class ManageSubscriptionsForm extends javax.swing.JDialog {
51 52
52 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N 53 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
53 jLabel2.setName("jLabel2"); // NOI18N 54 jLabel2.setName("jLabel2"); // NOI18N
55 jLabel2.setPreferredSize(new java.awt.Dimension(1061, 71));
54 56
55 jScrollPane1.setName("jScrollPane1"); // NOI18N 57 jScrollPane1.setName("jScrollPane1"); // NOI18N
56 58
@@ -84,12 +86,12 @@ public class ManageSubscriptionsForm extends javax.swing.JDialog {
84 .addGroup(layout.createSequentialGroup() 86 .addGroup(layout.createSequentialGroup()
85 .addGap(12, 12, 12) 87 .addGap(12, 12, 12)
86 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 88 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
87 .addComponent(jLabel2, 0, 0, Short.MAX_VALUE)
88 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 343, Short.MAX_VALUE) 89 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 343, Short.MAX_VALUE)
89 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 90 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
90 .addComponent(jButton1) 91 .addComponent(jButton1)
91 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 92 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
92 .addComponent(jButton2))))) 93 .addComponent(jButton2))
94 .addComponent(jLabel2, 0, 0, Short.MAX_VALUE))))
93 .addContainerGap()) 95 .addContainerGap())
94 ); 96 );
95 layout.setVerticalGroup( 97 layout.setVerticalGroup(
@@ -98,7 +100,7 @@ public class ManageSubscriptionsForm extends javax.swing.JDialog {
98 .addContainerGap() 100 .addContainerGap()
99 .addComponent(jLabel1) 101 .addComponent(jLabel1)
100 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 102 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
101 .addComponent(jLabel2) 103 .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
102 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 104 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
103 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 105 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
104 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 106 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
@@ -115,11 +117,7 @@ public class ManageSubscriptionsForm extends javax.swing.JDialog {
115 if (!jList1.isSelectionEmpty()) 117 if (!jList1.isSelectionEmpty())
116 { 118 {
117 Subscription subscription = (Subscription) jList1.getSelectedValue(); 119 Subscription subscription = (Subscription) jList1.getSelectedValue();
118 Wrapper.deleteSubscription(subscription.getURL()); 120 SubscriptionFile.deleteSubscription(subscription, true);
119
120 XmlRpc xmlrpc = new XmlRpc("deleteSubscription");
121 xmlrpc.addParam(subscription.getURL());
122 xmlrpc.execute();
123 121
124 refreshSubscriptionPane(); 122 refreshSubscriptionPane();
125 } 123 }