configresources.java

来自「swing编写的库存管理程序。毕业设计类」· Java 代码 · 共 132 行

JAVA
132
字号
/**
 * ========================================
 * 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.
 *
 * ------------------------------
 * ConfigResources.java
 * ------------------------------
 * (C)opyright 2003, by Thomas Morgner and Contributors.
 *
 * Original Author:  Thomas Morgner;
 * Contributor(s):   David Gilbert (for Simba Management Limited);
 *
 * $Id: ConfigResources.java,v 1.7 2003/09/15 15:31:59 taqua Exp $
 *
 * Changes
 * -------------------------
 * 27.08.2003 : Initial version
 *
 */

package org.jfree.report.modules.gui.config.resources;

import org.jfree.report.modules.gui.base.resources.JFreeReportResources;

/**
 * Provides localizable resources for the Configuration editor.
 *
 * @author Thomas Morgner
 */
public class ConfigResources extends JFreeReportResources
{
  /**
   * DefaultConstructor.
   */
  public ConfigResources()
  {
  }


  /**
   * Returns the array of strings in the resource bundle.
   *
   * @return an array of localised resources.
   */
  public Object[][] getContents()
  {
    return CONTENTS;
  }

  /** The resources to be localised. */
  private static final Object[][] CONTENTS =
      {
        {"action.add-entry.name", "Add Entry"},
        {"action.add-entry.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Add16.gif")},

        {"action.remove-entry.name", "Remove Entry"},
        {"action.remove-entry.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Remove16.gif")},

        {"action.import.name", "Import"},
        {"action.import.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Import24.gif")},

        {"action.new.name", "New"},
        {"action.new.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/New24.gif")},

        {"action.load.name", "Load"},
        {"action.load.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Open24.gif")},

        {"action.save.name", "Save"},
        {"action.save.small-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Save24.gif")},

        {"action.exit.name", "Exit"},
        {"action.update.name", "Update"},
        {"action.cancel.name", "Cancel"},
        {"action.boolean.name", "Boolean"},

        {"action.remove-enum-entry.name", "Remove"},
        {"action.add-enum-entry.name", "Add"},
        {"action.update-enum-entry.name", "Update"},

        {"default-editor.error-icon",
          getIcon("org/jfree/report/modules/gui/config/resources/Stop16.gif")},

        {"config-editor.title", "Configuration Editor"},

        {"config-description-editor.import-complete", "Import complete"},
        {"config-description-editor.unnamed-entry", "<unnamed entry>"},
        {"config-description-editor.title", "Configuration Definition Editor"},
        {"config-description-editor.xml-files", "XML files"},
        {"config-description-editor.welcome", "Welcome..."},
        {"config-description-editor.baseclass", "Baseclass:"},
        {"config-description-editor.text-editor-message",
            "The text editor does not require any setup."},
        {"config-description-editor.keyname", "Key-Name:"},
        {"config-description-editor.description", "Description:"},
        {"config-description-editor.type", "Type:"},
        {"config-description-editor.global", "Global:"},
        {"config-description-editor.hidden", "Hidden:"},
        {"config-description-editor.type-text", "Text"},
        {"config-description-editor.type-class", "Class"},
        {"config-description-editor.type-enum", "Enum"},
        {"config-description-editor.save-complete", "Saving was successfull."},
        {"config-description-editor.save-failed", "Saving failed: {0}"},
        {"config-description-editor.load-complete", "Loading was successfull."},
        {"config-description-editor.load-failed", "Loading failed: {0}"},
        {"config-description-editor.update-complete", "Updating the entry done."},
      };
}

⌨️ 快捷键说明

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