meetingaddwindow.java

来自「CRMS客户关系管理系统(JAVA版),这是一个客户关系管理系统。」· Java 代码 · 共 56 行

JAVA
56 行
字号
package crms.applet;import crms.ui.*;import crms.util.*;import crms.vo.*;import javax.swing.*;import java.awt.*;import javax.swing.border.*;public class MeetingAddWindow extends CRMSWindow implements CallbackDestination {	public static final int CB_REFRESH = 0;	LastContactAddPanel panel = new LastContactAddPanel();	CallbackDestination destination = null;	boolean readonly = false;	public MeetingAddWindow() {		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);		setTitle("Add Meeting Note");		setSize(600,400);		center();	}	public void setDestination(CallbackDestination new_dest) {		destination = new_dest;	}	/** Set the object type and object ID to retrieve and display the notes */	public void setReference(ContactType type, int id) {		panel.setReference(type, id);	}	public void display() {		panel.init();		this.setVisible(true);	}	public void callback(Object source, int mode, Object data) {		if (source instanceof LastContactAddPanel) {			if (mode == CRMSComponent.CB_CLOSE_WINDOW) {				if (data != null && destination != null) {					destination.callback(this, CB_REFRESH, null);				}				closeWindow();			}		}	}}

⌨️ 快捷键说明

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