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

📄 currentstorage.java

📁 Memoranda( 从前以jNotes2而闻名) 是一个日志管理和个人项目管理工具
💻 JAVA
字号:
/** * CurrentStorage.java * Created on 13.02.2003, 18:30:59 Alex * Package: net.sf.memoranda.util *  * @author Alex V. Alishevskikh, alex@openmechanics.net * Copyright (c) 2003 Memoranda Team. http://memoranda.sf.net */package net.sf.memoranda.util;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.Collection;import java.util.Vector;/** *  *//*$Id: CurrentStorage.java,v 1.3 2004/01/30 12:17:42 alexeya Exp $*/public class CurrentStorage {        /**     * @todo: implement storage congiguration     */    private static Storage _storage = new FileStorage();        private static Vector actionListeners = new Vector();        public static Storage get() {        return _storage;    }        public static void set(Storage storage) {        _storage = storage;        storageChanged();    }        public static void addChangeListener(ActionListener al) {        actionListeners.add(al);    }    public static Collection getChangeListeners() {        return actionListeners;    }        private static void storageChanged() {        for (int i = 0; i < actionListeners.size(); i++)            ((ActionListener)actionListeners.get(i)).actionPerformed(new ActionEvent(null,0,"Current storage changed"));    }   }

⌨️ 快捷键说明

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