[Jsxe-cvs] SF.net SVN: jsxe: [954] trunk/jsxe
Status: Inactive
Brought to you by:
ian_lewis
From: <ian...@us...> - 2006-06-14 19:01:58
|
Revision: 954 Author: ian_lewis Date: 2006-06-14 12:01:14 -0700 (Wed, 14 Jun 2006) ViewCVS: http://svn.sourceforge.net/jsxe/?rev=954&view=rev Log Message: ----------- Added the EditAction class for use later with jsXe's actions Modified Paths: -------------- trunk/jsxe/Changelog Added Paths: ----------- trunk/jsxe/src/net/sourceforge/jsxe/EditAction.java Modified: trunk/jsxe/Changelog =================================================================== --- trunk/jsxe/Changelog 2006-06-13 20:53:03 UTC (rev 953) +++ trunk/jsxe/Changelog 2006-06-14 19:01:14 UTC (rev 954) @@ -1,3 +1,10 @@ +06/14/2006 Ian Lewis <Ian...@me...> + + * Added the EditAction class for future actions in jsXe. + The messages, menu mnemonics, and tooltips will be able to be + localized and the shortcuts will be able to be set via the + InputManager. + 06/13/2006 Ian Lewis <Ian...@me...> * Added the InputManager for maintaining the key bindings for actions in Added: trunk/jsxe/src/net/sourceforge/jsxe/EditAction.java =================================================================== --- trunk/jsxe/src/net/sourceforge/jsxe/EditAction.java (rev 0) +++ trunk/jsxe/src/net/sourceforge/jsxe/EditAction.java 2006-06-14 19:01:14 UTC (rev 954) @@ -0,0 +1,69 @@ +/* +EditAction.java +:tabSize=4:indentSize=4:noTabs=true: +:folding=explicit:collapseFolds=1: + +Copyright (C) 2006 Ian Lewis (Ian...@me...) + +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. +Optionally, you may find a copy of the GNU General Public License +from http://www.fsf.org/copyleft/gpl.txt +*/ + +package net.sourceforge.jsxe; + +/** + * An action that can be used by jsXe. These actions are registered + * with jsXe through ActionSets. These ActionSets can be registered with + * jsXe by plugins. Once an EditAction is included in an ActionSet and + * registered with jsXe via the <code>addActionSet()</code> method, + * key bindings can be associated to the action via the InputManager. + * + * @author Ian Lewis (<a href="mailto:Ian...@me...">Ian...@me...</a>) + * @version $Id$ + * @see jsXe + * @see ActionSet + * @see InputManager + */ +public abstract class EditAction { + + // {{{ Public static members + /** + * The internal name of the action used for retrieval from + * <code>jsXe.getAction(String)</code> and for storing properties related + * to the action. + */ + public static final String INTERNAL_NAME = "internal-name"; + /** + * The message name of the action used to retrieve the localized + * human readable text for the action. The text is retrieved from + * the net.sourceforge.jsxe.Messages class. + */ + public static final String MESSAGE_NAME = "message-name"; + /** + * The message name for the localized tooltip message that + * is associated with this action. + */ + public static final String TOOLTIP_MESSAGE_NAME = "tooltip-message-name"; + //}}} + + //{{{ invoke() + /** + * The method that is run when the action is invoked. + * @param view the view that invoked the action. + * @param evt the ActionEvent for this event. + */ + public abstract void invoke(TabbedView view, ActionEvent evt);//}}} +} Property changes on: trunk/jsxe/src/net/sourceforge/jsxe/EditAction.java ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |