01: /*
02: * Copyright (C) 2005 Jeff Tassin
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package com.jeta.swingbuilder.gui.components;
20:
21: /**
22: * This class defines common literals for TSComponents
23: *
24: * @author Jeff Tassin
25: */
26: public class TSComponentNames {
27: public static final String NULL_TEXT; // this is the text that appears in
28: // a component if it's value is set
29: // to null
30: // as opposed to an empty string
31:
32: static {
33: NULL_TEXT = com.jeta.open.i18n.I18N.getLocalizedMessage("null");
34: }
35:
36: // common ids
37: public static final String ID_CUT = "cut";
38: public static final String ID_COPY = "copy";
39: public static final String ID_COPY_SPECIAL = "copy.special";
40: public static final String ID_PASTE = "paste";
41: public static final String ID_PRINT = "print";
42: public static final String ID_PRINT_PREVIEW = "print.preview";
43: public static final String ID_UNDO = "undo";
44: public static final String ID_REDO = "redo";
45:
46: /**
47: * This is a hack for the Windows Look and Feel. When changing manually to
48: * the Windows L&F, the toolbar separators somehow get changed to a ---
49: * horizontal orientation. This only happens when the user changes the L&F
50: * and not at startup. So, we check if the user is changing the L&F and
51: * manually reset the toolbar separators.
52: */
53: public static final String ID_LOOK_AND_FEEL_CHANGED = "jeta.look.and.feel.changed";
54: }
|