summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-05-07 17:33:57 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-05-07 17:33:57 +0200
commit21230edbafdd30fcf0c43d1dc64ccbf4ca5e06a8 (patch)
treeb2908dbea534ca8d96a81ab922501769d4b70c4d /src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java
parent75bf1278296d33a7d9b6c01660a2f21e2d40d995 (diff)
Agent now extends Item, so they can have workflows. All traces of the
old 'Entity' superclasses should be removed, including proxies and paths. Very large change, breaks API compatibility with CRISTAL 2.x.
Diffstat (limited to 'src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java')
-rw-r--r--src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java b/src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java
index 7cbd00e..b6fca75 100644
--- a/src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java
+++ b/src/main/java/com/c2kernel/gui/tabs/PropertiesPane.java
@@ -24,7 +24,7 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
-import com.c2kernel.entity.proxy.EntityProxyObserver;
+import com.c2kernel.entity.proxy.ProxyObserver;
import com.c2kernel.entity.proxy.ItemProxy;
import com.c2kernel.entity.proxy.MemberSubscription;
import com.c2kernel.gui.MainFrame;
@@ -40,7 +40,7 @@ import com.c2kernel.utils.Language;
* @version $Revision: 1.44 $ $Date: 2005/08/31 07:21:20 $
* @author $Author: abranson $
*/
-public class PropertiesPane extends EntityTabPane implements EntityProxyObserver<Property>, ActionListener {
+public class PropertiesPane extends ItemTabPane implements ProxyObserver<Property>, ActionListener {
Box propertyBox;
JButton eraseButton;
@@ -94,25 +94,25 @@ public class PropertiesPane extends EntityTabPane implements EntityProxyObserver
@Override
public void reload() {
- Gateway.getStorage().clearCache(sourceEntity.getSysKey(), ClusterStorage.PROPERTY);
+ Gateway.getStorage().clearCache(sourceItem.getSysKey(), ClusterStorage.PROPERTY);
loadedProps = new HashMap<String, JLabel>();
- initForEntity(sourceEntity);
+ initForItem(sourceItem);
}
@Override
public void run() {
Thread.currentThread().setName("Property Pane Builder");
- if (sourceEntity instanceof NodeAgent) {
+ if (sourceItem instanceof NodeAgent) {
remove(domAdmin);
remove(domTitle);
eraseButton.setEnabled(false);
}
else if (domAdmin != null)
- domAdmin.setEntity((ItemProxy)sourceEntity.getEntity());
+ domAdmin.setEntity(sourceItem.getItem());
propertyBox.removeAll();
propertyBox.add(Box.createGlue());
revalidate();
- sourceEntity.getEntity().subscribe(new MemberSubscription<Property>(this, ClusterStorage.PROPERTY, true));
+ sourceItem.getItem().subscribe(new MemberSubscription<Property>(this, ClusterStorage.PROPERTY, true));
}
/**
@@ -140,7 +140,7 @@ public class PropertiesPane extends EntityTabPane implements EntityProxyObserver
JOptionPane.QUESTION_MESSAGE, null, null, oldVal);
if (newVal!=null && !(newVal.equals(oldVal))) {
try {
- ((ItemProxy)sourceEntity.getEntity()).setProperty(MainFrame.userAgent, e.getActionCommand(), newVal);
+ (sourceItem.getItem()).setProperty(MainFrame.userAgent, e.getActionCommand(), newVal);
} catch (Exception ex) {
MainFrame.exceptionDialog(ex);
}
@@ -186,7 +186,7 @@ public class PropertiesPane extends EntityTabPane implements EntityProxyObserver
return;
try {
- MainFrame.userAgent.execute((ItemProxy)sourceEntity.getEntity(), predefStep, params);
+ MainFrame.userAgent.execute(sourceItem.getItem(), predefStep, params);
} catch (Exception ex) {
MainFrame.exceptionDialog(ex);
}