001 /*
002 * @(#)ExitAction.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.clApp.atHome;
038
039 import javax.swing.Action;
040
041 /**Represents the Exit Action. */
042 class ExitAction extends JLFAbstractAction {
043 private static final long serialVersionUID = 2860587851678674933L;
044 private static final String ACTION_COMMAND_KEY_ABOUT = "exit-command";
045 private static final String NAME_ABOUT = "Exit";
046 // private static final String SMALL_ICON_ABOUT = null;
047 // private static final String LARGE_ICON_ABOUT = null;
048 private static final String SHORT_DESCRIPTION_ABOUT = "Exit";
049 private static final String LONG_DESCRIPTION_ABOUT = "Exits Worker";
050 private static final int MNEMONIC_KEY_ABOUT = 'X';
051
052 public ExitAction() {
053 putValue(Action.NAME, NAME_ABOUT);
054 // putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_ABOUT));
055 // putValue(LARGE_ICON, getIcon(LARGE_ICON_ABOUT));
056 putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_ABOUT);
057 putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_ABOUT);
058 putValue(Action.MNEMONIC_KEY, Integer.valueOf(MNEMONIC_KEY_ABOUT));
059 putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_ABOUT);
060 }
061
062 }