Subversion Repository Public Repository

Pharmacy_09_03_18

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcareemr.Views;

import com.bestray.healthcarecommonutil.util.CurvedGradientPanel;
import java.awt.Color;

/**
 *
 * @author dell
 */
public class InPatientSetUpPanel extends CurvedGradientPanel {

    /**
     * Creates new form InPatientSetUpPanel
     */
    public InPatientSetUpPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        room_label = new javax.swing.JLabel();
        bed_label = new javax.swing.JLabel();
        inpatientSetUpDisplayPanel = new javax.swing.JPanel();

        room_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        room_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/room_64X64.PNG"))); // NOI18N
        room_label.setText("Add Room");
        room_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                room_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                room_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                room_labelMouseReleased(evt);
            }
        });

        bed_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        bed_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/medical-bed-icon64X64.png"))); // NOI18N
        bed_label.setText("Add Bed");
        bed_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                bed_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                bed_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                bed_labelMouseReleased(evt);
            }
        });

        inpatientSetUpDisplayPanel.setOpaque(false);
        inpatientSetUpDisplayPanel.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(room_label, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(bed_label, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 515, Short.MAX_VALUE))
                    .addComponent(inpatientSetUpDisplayPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(bed_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(room_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(17, 17, 17)
                .addComponent(inpatientSetUpDisplayPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void room_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_room_labelMousePressed
        room_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_room_labelMousePressed

    private void room_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_room_labelMouseReleased
        room_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_room_labelMouseReleased

    private void bed_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bed_labelMousePressed
        bed_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_bed_labelMousePressed

    private void bed_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bed_labelMouseReleased
        bed_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_bed_labelMouseReleased

    private void bed_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bed_labelMouseClicked
        inpatientSetUpDisplayPanel.removeAll();
        inpatientSetUpDisplayPanel.updateUI();
        inpatientSetUpDisplayPanel.setBackground(Color.WHITE);
        inpatientSetUpDisplayPanel.add(new InpatientBedPanel(),java.awt.BorderLayout.CENTER);
        inpatientSetUpDisplayPanel.setVisible(true);
    }//GEN-LAST:event_bed_labelMouseClicked

    private void room_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_room_labelMouseClicked
        inpatientSetUpDisplayPanel.removeAll();
        inpatientSetUpDisplayPanel.updateUI();
        inpatientSetUpDisplayPanel.setBackground(Color.WHITE);
        inpatientSetUpDisplayPanel.add(new InpatientRoomPanel(),java.awt.BorderLayout.CENTER);
        inpatientSetUpDisplayPanel.setVisible(true);
    }//GEN-LAST:event_room_labelMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel bed_label;
    private javax.swing.JPanel inpatientSetUpDisplayPanel;
    private javax.swing.JLabel room_label;
    // End of variables declaration//GEN-END:variables
}

Commits for Pharmacy_09_03_18/Dr Gyana ProjectSpace/DrGyanaEMR/src/main/java/com/bestray/healthcareemr/Views/InPatientSetUpPanel.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:30:57 +0000