田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
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
package com.vci.client.portal.UI.dialog;
 
import javax.swing.JDialog;
import javax.swing.border.EmptyBorder;
 
import com.vci.client.framework.rightConfig.object.FunctionObject;
import com.vci.corba.omd.btm.BtmItem;
import com.vci.corba.portal.data.PLUILayout;
 
public class VCIGrandUIDialog extends JDialog{
    
    /**
     * 
     */
    private static final long serialVersionUID = -7280499100671003787L;
    
    private BtmItem btm = null;
    
    private FunctionObject fo = null;
    private PLUILayout[] contexts = null;
    private PLUILayout[] typeAllContexts = null;
    
    public VCIGrandUIDialog(BtmItem btm, FunctionObject fo, 
            PLUILayout[] contexts, PLUILayout[] typeAllContexts){
        this.btm = btm;
        this.fo = fo;
        this.contexts = contexts;
        this.typeAllContexts = typeAllContexts;
        this.setModal(true);
        this.setTitle("UI授权");
        init();
    }
    
    private void init() {
        this.setSize(1000, 570);
        VCIGrandUIPanel panel = new VCIGrandUIPanel(this.fo, btm, this);
        panel.setBorder(new EmptyBorder(7, 7, 7, 7));
        this.getContentPane().add(panel);
        this.validate();
    }
    
    public void setLocationAndSize(){
        this.setLocationRelativeTo(null);
        this.setResizable(true);
        this.setVisible(true);
    }
 
    public PLUILayout[] getContexts() {
        return contexts;
    }
 
    public void setContexts(PLUILayout[] contexts) {
        this.contexts = contexts;
    }
 
    public PLUILayout[] getTypeAllContexts() {
        return typeAllContexts;
    }
 
    public void setTypeAllContexts(PLUILayout[] typeAllContexts) {
        this.typeAllContexts = typeAllContexts;
    }
}