01: /*
02: * CleanupForm.java
03: *
04: * Created on 10 July 2006, 17:21
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 net.xoetrope.optional.annotation.Find;
13: import com.xoetrope.swing.XBreadcrumbBar;
14: import com.xoetrope.swing.XGraphicListCellRenderer;
15: import java.util.Date;
16: import net.xoetrope.swing.XComboBox;
17: import net.xoetrope.swing.XDialog;
18: import net.xoetrope.xui.XPage;
19:
20: /**
21: *
22: * @author luano
23: */
24: public class CleanupForm extends XPage {
25: /** Creates a new instance of CleanupForm */
26: public CleanupForm() {
27: }
28:
29: public void pageCreated() {
30: XComboBox severityCombo = (XComboBox) findComponent("severityCombo");
31: severityCombo.setRenderer(new XGraphicListCellRenderer());
32: }
33:
34: public void doSubmit() {
35: showMessage(
36: "Thank you for your request",
37: "<html><br><p> <img src='file:///c:/cvs/medicalclinic/resources/wi0126-24.png'> Your <b>cleaning request</b> was successfully submitted at<br> <center>"
38: + new Date().toString()
39: + "</center></p></html>");
40: }
41:
42: public void showFloorplan() {
43: if (wasMouseClicked()) {
44: XDialog popupDialog = (XDialog) pageMgr.loadPage(
45: "Floorplan", false);
46: popupDialog.setCaption(translate("Floorplans"));
47: popupDialog.pack();
48: popupDialog.showDialog(this);
49: }
50: }
51: }
|