001 /*
002 * @(#)AboutAction.java 1.4 03/12/19
003 *
004 * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
005 *
006 * Redistribution and use in source and binary forms, with or without
007 * modification, are permitted provided that the following conditions are met:
008 *
009 * -Redistribution of source code must retain the above copyright notice, this
010 * list of conditions and the following disclaimer.
011 *
012 * -Redistribution in binary form must reproduce the above copyright notice,
013 * this list of conditions and the following disclaimer in the documentation
014 * and/or other materials provided with the distribution.
015 *
016 * Neither the name of Sun Microsystems, Inc. or the names of contributors may
017 * be used to endorse or promote products derived from this software without
018 * specific prior written permission.
019 *
020 * This software is provided "AS IS," without a warranty of any kind. ALL
021 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
022 * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
023 * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN")
024 * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
025 * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
026 * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
027 * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
028 * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
029 * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
030 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
031 *
032 * You acknowledge that this software is not designed, licensed or intended
033 * for use in the design, construction, operation or maintenance of any
034 * nuclear facility.
035 */
036
037 package org.hd.d.pg2k.webSvr.threeD;
038
039 import javax.swing.Action;
040
041 /**
042 * Represents the About Action.
043 *
044 */
045 class AboutAction extends JLFAbstractAction {
046
047 /**
048 *
049 */
050 private static final long serialVersionUID = 6616463836909813715L;
051 private static final String ACTION_COMMAND_KEY_ABOUT = "about-command";
052 private static final String NAME_ABOUT = "About...";
053 // private static final String SMALL_ICON_ABOUT = "About16.gif";
054 // private static final String LARGE_ICON_ABOUT = "About24.gif";
055 private static final String SHORT_DESCRIPTION_ABOUT = "About 3D Walkthrough";
056 private static final String LONG_DESCRIPTION_ABOUT = "3D Walkthrough for DHD Multimedia Gallery";
057 private static final int MNEMONIC_KEY_ABOUT = 'A';
058
059 /**
060 * ctor
061 */
062 public AboutAction() {
063 putValue(Action.NAME, NAME_ABOUT);
064 // putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_ABOUT));
065 // putValue(LARGE_ICON, getIcon(LARGE_ICON_ABOUT));
066 putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_ABOUT);
067 putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_ABOUT);
068 putValue(Action.MNEMONIC_KEY, Integer.valueOf(MNEMONIC_KEY_ABOUT));
069 putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_ABOUT);
070 }
071
072 }