⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 permissionwindow.java

📁 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网! 发泄网!
💻 JAVA
字号:
package crms.applet;import crms.ui.*;import crms.util.*;import crms.vo.*;import javax.swing.*;import java.awt.*;import javax.swing.border.*;public class PermissionWindow extends CRMSWindow implements CallbackDestination {	EntityPermissionPanel panel = new EntityPermissionPanel();	CallbackDestination destination = null;	boolean readonly = false;	public PermissionWindow() {		Container pane = getContentPane();		pane.setLayout(new BorderLayout());		panel.setBorder(new EmptyBorder(5,5,5,5));		panel.setBackground(Color.WHITE);		panel.setCallback(this);		pane.add(panel, BorderLayout.CENTER);		setSize(780,400);		center();	}	/** Set the object type and object ID to retrieve and display the notes */	public void setEntity(EntityType type, int id, Permission perm) {		panel.setEntity(type, id, perm);	}	public void setTitle(String title) {		super.setTitle("Security levels for " + title);	}	public void display() {		panel.init();		this.setVisible(true);	}	public void callback(Object source, int mode, Object data) {		if (source instanceof EntityPermissionPanel) {			if (mode == CRMSComponent.CB_CLOSE_WINDOW) {				closeWindow();			}		}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -