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

📄 listeditor.java

📁 很棒的web服务器源代码
💻 JAVA
字号:
// ListEditor.java// $Id: ListEditor.java,v 1.7 2000/08/16 21:37:56 ylafon Exp $// Author: bmahe@sophia.inria.fr// (c) COPYRIGHT MIT and INRIA, 1997.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.tools.widgets;import java.awt.BorderLayout;import java.awt.Button;import java.awt.Insets;import java.awt.List;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;/** * ListEditor : * @author Benoit Mahe <bmahe@sophia.inria.fr> */public abstract class ListEditor extends BorderPanel                                  implements ActionListener {    protected List   list       = null;    protected Button editButton = null;    protected abstract void edit();    /**     * ActionListsner implementation - One of our button was fired.     * @param evt The ActionEvent.     */    public void actionPerformed(ActionEvent evt) {	String command = evt.getActionCommand();	if ( command.equals("edit" ) )	    edit();    }    public ListEditor() {	this(5,false);    }    public ListEditor(int nbVisible, boolean multiple) {	super(IN, 2);	setInsets(new Insets(4,4,4,4));	editButton = new Button ("Edit");	editButton.setActionCommand("edit");	editButton.addActionListener(this);	list = new List(nbVisible, multiple);	setLayout(new BorderLayout());	add(list, "Center");	add(editButton,"East");    }}

⌨️ 快捷键说明

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