[Buix-commits] r783 - trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory
Author: tchemit Date: 2008-07-24 18:48:55 +0000 (Thu, 24 Jul 2008) New Revision: 783 Added: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java Modified: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java Log: introduction ActionFactory interface Modified: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java =================================================================== --- trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java 2008-07-24 18:47:27 UTC (rev 782) +++ trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java 2008-07-24 18:48:55 UTC (rev 783) @@ -56,7 +56,7 @@ * * @author chemit */ -public abstract class ActionFactory<A extends MyAbstractAction> { +public abstract class ActionFactory<A extends MyAbstractAction> implements IActionFactory { protected static Log log = LogFactory.getLog(ActionFactory.class); Added: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java =================================================================== --- trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java (rev 0) +++ trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java 2008-07-24 18:48:55 UTC (rev 783) @@ -0,0 +1,47 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.jaxx.action.factory; + +import jaxx.runtime.JAXXObject; +import org.codelutin.jaxx.action.MyAbstractAction; + +import javax.swing.JComponent; +import java.util.Map.Entry; +import java.util.Set; + +/** @author chemit */ +public interface IActionFactory { + void resetCache(); + + MyAbstractAction get(String actionKey); + + MyAbstractAction[] loadActions(JAXXObject ui); + + MyAbstractAction newAction(String actionKey, JComponent component); + + String[] getActionNames(); + + Set<Entry<String, Class<? extends MyAbstractAction>>> implsEntrySet(); + + Set<Entry<String, MyAbstractAction>> cacheEntrySet(); + + void fireAction(String actionKey, Object source, JComponent component); + + void fireAction(String actionKey, Object source); + + MyAbstractAction getActionFromCache(String actionKey); + + void dispose(); +}
participants (1)
-
tchemit@users.labs.libre-entreprise.org