?? notesviewwindow.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 NotesViewWindow extends CRMSWindow implements CallbackDestination { NotesViewPanel panel = new NotesViewPanel(); CallbackDestination destination = null; boolean readonly = false; public NotesViewWindow() { Container pane = getContentPane(); pane.setLayout(new BorderLayout()); panel.setBorder(new EmptyBorder(5,5,5,5)); panel.setBackground(Color.WHITE); panel.setDestination(this); pane.add(panel, BorderLayout.CENTER); setTitle("View Notes"); setSize(600,400); center(); } /** Set the object type and object ID to retrieve and display the notes */ public void setNotes(EntityType type, int id, boolean readonly) { panel.setNotes(type, id); panel.setReadonly(readonly); } public void display() { panel.init(); this.setVisible(true); } public void callback(Object source, int mode, Object data) { if (source instanceof NotesViewPanel) { if (mode == NotesViewPanel.CLOSE_WINDOW) { closeWindow(); } } else if (source instanceof NotesAddWindow) { if (mode == NotesAddWindow.CB_REFRESH) { panel.refreshData(); } } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -