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;
|
}
|
}
|