Author: tchemit Date: 2008-07-24 18:50:03 +0000 (Thu, 24 Jul 2008) New Revision: 786 Added: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java Removed: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java Log: introduction ActionFactory interface Copied: trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java (from rev 783, 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/ActionFactory.java (rev 0) +++ trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/ActionFactory.java 2008-07-24 18:50:03 UTC (rev 786) @@ -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 ActionFactory { + 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(); +} Deleted: 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 2008-07-24 18:49:32 UTC (rev 785) +++ trunk/lutinjaxx/jaxx-swing-action/src/main/java/org/codelutin/jaxx/action/factory/IActionFactory.java 2008-07-24 18:50:03 UTC (rev 786) @@ -1,47 +0,0 @@ -/** - * # #% 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