1
2
3
4
5
6 package net.kwfgrid.gwui.gui;
7
8 import net.kwfgrid.gworkflowdl.protocol.structure.IStructureObject;
9 import net.kwfgrid.gworkflowdl.protocol.structure.ProtocolWorkflow;
10 import net.kwfgrid.gworkflowdl.protocol.structure.ProtocolTransition;
11 import net.kwfgrid.gworkflowdl.structure.Transition;
12
13 import java.util.List;
14 /***
15 A view for the ID of a transition.
16 */
17 public class TransitionIDView extends AbstractJTextFieldView {
18 /***
19 Constructor.
20 Adds this view as a <code>IStructureListener</code> to the specified transition.
21 @param target The transition.
22 */
23 public TransitionIDView(ProtocolWorkflow workflow, ProtocolTransition target) {
24 super(workflow, target);
25 }
26
27 protected String getLabel() {
28 return ((Transition)getElement()).getID();
29 }
30
31 protected String getTitle() {
32 return "ID";
33 }
34
35 protected boolean affectsLabel(IStructureObject parent, String namespace, String name, List objects) {
36 return false;
37 }
38
39 protected boolean affectsLabel(IStructureObject parent, String namespace, String name, Object object) {
40 return false;
41 }
42 }