01: /*
02: * JobManager.java
03: *
04: * Created on 23 August 2006, 16:47
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.xoetrope.medical.forms;
11:
12: import java.util.Hashtable;
13: import net.xoetrope.optional.annotation.Find;
14: import net.xoetrope.swing.XTree;
15: import net.xoetrope.swing.app.XDockableFrame;
16: import net.xoetrope.xui.PageSupport;
17: import net.xoetrope.xui.XPage;
18: import net.xoetrope.xui.data.XModel;
19:
20: /**
21: *
22: * @author luano
23: */
24: public class JobManager extends XPage {
25: @Find
26: public XTree taskList;
27:
28: /** Creates a new instance of JobManager */
29: public JobManager() {
30: }
31:
32: public void jobSelected() {
33: // String idStr;
34: // XModel outputNode = taskList.getSelectedNode();
35: // if ( outputNode != null ) {
36: // idStr = outputNode.getId();
37: // if (( idStr != null ) && ( idStr.length() > 0 )) {
38: // rootModel.set( "phsioEvent/" + "eventId", idStr );
39: // PageSupport ps = pageMgr.getPage( "physioEvent" );
40: // XDockableFrame target = (XDockableFrame)pageMgr.getTarget( "content" );
41: // if (( ps != null ) && ( target != null ) && target.isParentOf( (XPage)ps ))
42: // ps.updateBindings();
43: // else {
44: // Hashtable attribs = new Hashtable();
45: // attribs.put( "title", "Appointment" );
46: // attribs.put( "constraint", "Appointment" );
47: // pageMgr.showPage( "physioEvent", "content", attribs );
48: // }
49: // }
50: // }
51: }
52: }
|