moduleeditor.java
来自「swing编写的库存管理程序。毕业设计类」· Java 代码 · 共 99 行
JAVA
99 行
/**
* ========================================
* JFreeReport : a free Java report library
* ========================================
*
* Project Info: http://www.jfree.org/jfreereport/index.html
* Project Lead: Thomas Morgner (taquera@sherito.org);
*
* (C) Copyright 2000-2003, by Simba Management Limited and Contributors.
*
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* ------------------------------
* ModuleEditor.java
* ------------------------------
* (C)opyright 2003, by Thomas Morgner and Contributors.
*
* Original Author: Thomas Morgner;
* Contributor(s): David Gilbert (for Simba Management Limited);
*
* $Id: ModuleEditor.java,v 1.3 2003/11/07 18:33:52 taqua Exp $
*
* Changes
* -------------------------
* 31-Aug-2003 : Initial version
*
*/
package org.jfree.report.modules.gui.config.editor;
import javax.swing.JComponent;
import org.jfree.report.modules.Module;
import org.jfree.report.modules.gui.config.model.ConfigDescriptionEntry;
import org.jfree.report.util.ReportConfiguration;
/**
* The module editor is used to provide a customizable editor component
* for a JfreeReport module.
* <p>
* At the moment, there is only one common module editor known, which provides
* an on-the-fly editor for all defined properties of the module. Specialized
* editors may be added in the future.
*
* @author Thomas Morgner
*/
public interface ModuleEditor
{
/**
* Creates a new instance of the module editor. This instance will be used
* to edit the specific module.
* <p>
* Editors are free to ignore the list of keys given as builder hints.
*
* @param module the module that should be edited.
* @param config the report configuration used to fill the values of the editors.
* @param keyNames the list of keynames this module editor should handle.
* @return the created new editor instance.
*/
public ModuleEditor createInstance
(Module module, ReportConfiguration config, ConfigDescriptionEntry[] keyNames);
/**
* Checks, whether this module editor can handle the given module.
*
* @param module the module to be edited.
* @return true, if this editor may be used to edit the module, false otherwise.
*/
public boolean canHandle (Module module);
/**
* Returns the editor component of the module. Calling this method is
* only valid on instances created with createInstance.
*
* @return the editor component for the GUI.
*/
public JComponent getComponent();
/**
* Resets all keys to the values from the report configuration.
*/
public void reset();
/**
* Stores all values for the editor's keys into the report configuration.
*/
public void store();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?