Subversion Repository Public Repository

Satyam

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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
/*
 * 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;

// TODO: Auto-generated Javadoc
/**
 * The Class UserSetupPanel.
 *
 * @author user3
 */
public class UserSetupPanel extends CurvedGradientPanel {

    /**
     * Creates new form UserSetupPanel.
     */
    public UserSetupPanel() {
        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() {

        account_label = new javax.swing.JLabel();
        role_label = new javax.swing.JLabel();
        permission_label = new javax.swing.JLabel();
        usersetup_displaypanel = new javax.swing.JPanel();
        doctor_information_label = new javax.swing.JLabel();

        setBackground(new java.awt.Color(253, 251, 251));

        account_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        account_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/users-icon.png"))); // NOI18N
        account_label.setText("User");
        account_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        account_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        account_label.setNextFocusableComponent(role_label);
        account_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        account_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                account_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                account_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                account_labelMouseReleased(evt);
            }
        });

        role_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        role_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/userrole.png"))); // NOI18N
        role_label.setText("Role");
        role_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        role_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        role_label.setNextFocusableComponent(permission_label);
        role_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        role_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                role_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                role_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                role_labelMouseReleased(evt);
            }
        });

        permission_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        permission_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/permission.png"))); // NOI18N
        permission_label.setText("Permission");
        permission_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        permission_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        permission_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        permission_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                permission_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                permission_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                permission_labelMouseReleased(evt);
            }
        });

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

        doctor_information_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        doctor_information_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/doctor64x64.png"))); // NOI18N
        doctor_information_label.setText("Doctor's Informations");
        doctor_information_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        doctor_information_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        doctor_information_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        doctor_information_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                doctor_information_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                doctor_information_labelMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                doctor_information_labelMouseReleased(evt);
            }
        });

        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)
                    .addComponent(usersetup_displaypanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(account_label)
                        .addGap(18, 18, 18)
                        .addComponent(role_label)
                        .addGap(18, 18, 18)
                        .addComponent(permission_label)
                        .addGap(18, 18, 18)
                        .addComponent(doctor_information_label)
                        .addGap(0, 562, 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)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(account_label)
                            .addComponent(permission_label))
                        .addComponent(role_label, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addComponent(doctor_information_label))
                .addGap(17, 17, 17)
                .addComponent(usersetup_displaypanel, javax.swing.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    /**
     * Account_label mouse pressed.
     *
     * @param evt the evt
     */
    private void account_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_account_labelMousePressed
        account_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/users-iconclicked.png")));
        account_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_account_labelMousePressed

    /**
     * Account_label mouse released.
     *
     * @param evt the evt
     */
    private void account_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_account_labelMouseReleased
        account_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/users-icon.png")));
        account_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_account_labelMouseReleased

    /**
     * Role_label mouse pressed.
     *
     * @param evt the evt
     */
    private void role_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_role_labelMousePressed
        role_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/userroleclicked.png")));
        role_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_role_labelMousePressed

    /**
     * Role_label mouse released.
     *
     * @param evt the evt
     */
    private void role_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_role_labelMouseReleased
        role_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/userrole.png")));
        role_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_role_labelMouseReleased

    /**
     * Permission_label mouse pressed.
     *
     * @param evt the evt
     */
    private void permission_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_permission_labelMousePressed
        permission_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/permissionclicked.png")));
        permission_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_permission_labelMousePressed

    /**
     * Permission_label mouse released.
     *
     * @param evt the evt
     */
    private void permission_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_permission_labelMouseReleased
        permission_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/permission.png")));
        permission_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_permission_labelMouseReleased

    /**
     * Account_label mouse clicked.
     *
     * @param evt the evt
     */
    private void account_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_account_labelMouseClicked
       
                usersetup_displaypanel.removeAll();
                usersetup_displaypanel.updateUI();
                usersetup_displaypanel.setBackground(Color.WHITE);
                usersetup_displaypanel.add(new AccountPanel(),java.awt.BorderLayout.CENTER);
                usersetup_displaypanel.setVisible(true);
        
    }//GEN-LAST:event_account_labelMouseClicked

    /**
     * Role_label mouse clicked.
     *
     * @param evt the evt
     */
    private void role_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_role_labelMouseClicked
        usersetup_displaypanel.removeAll();
        usersetup_displaypanel.updateUI();
        usersetup_displaypanel.setBackground(Color.WHITE);
        usersetup_displaypanel.add(new AssignDeptWithRoles(),java.awt.BorderLayout.CENTER);
        usersetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_role_labelMouseClicked

    /**
     * Permission_label mouse clicked.
     *
     * @param evt the evt
     */
    private void permission_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_permission_labelMouseClicked
        usersetup_displaypanel.removeAll();
        usersetup_displaypanel.updateUI();
        usersetup_displaypanel.setBackground(Color.WHITE);
        //usersetup_displaypanel.add(new PermissionPanel(),java.awt.BorderLayout.CENTER);
        usersetup_displaypanel.add(new UserSecurityPanel(),java.awt.BorderLayout.CENTER);
        usersetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_permission_labelMouseClicked

    /**
     * Doctor_information_label mouse clicked.
     *
     * @param evt the evt
     */
    private void doctor_information_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_doctor_information_labelMouseClicked
        // TODO add your handling code here:
        usersetup_displaypanel.removeAll();
        usersetup_displaypanel.updateUI();
        usersetup_displaypanel.setBackground(Color.WHITE);
        usersetup_displaypanel.add(new DoctorInformationPanel(),java.awt.BorderLayout.CENTER);
        usersetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_doctor_information_labelMouseClicked

    /**
     * Doctor_information_label mouse pressed.
     *
     * @param evt the evt
     */
    private void doctor_information_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_doctor_information_labelMousePressed
        // TODO add your handling code here:
    }//GEN-LAST:event_doctor_information_labelMousePressed

    /**
     * Doctor_information_label mouse released.
     *
     * @param evt the evt
     */
    private void doctor_information_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_doctor_information_labelMouseReleased
        // TODO add your handling code here:
    }//GEN-LAST:event_doctor_information_labelMouseReleased

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel account_label;
    private javax.swing.JLabel doctor_information_label;
    private javax.swing.JLabel permission_label;
    private javax.swing.JLabel role_label;
    public static javax.swing.JPanel usersetup_displaypanel;
    // End of variables declaration//GEN-END:variables
}

Commits for Satyam/AuroCareEMR/src/main/java/com/bestray/healthcareemr/Views/UserSetupPanel.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000