01: /*
02: * Copyright 2006-2007 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt.
07: *
08: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
09: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
10: * the license for the specific language governing your rights and limitations.
11: *
12: * Additional Contributor(s): Martin Schmid gridvision engineering GmbH
13: */
14: package org.pentaho.reportdesigner.lib.client.commands;
15:
16: import org.jetbrains.annotations.NotNull;
17:
18: public class CommandSettings {
19: @NotNull
20: private static final CommandSettings instance = new CommandSettings();
21:
22: @NotNull
23: public static CommandSettings getInstance() {
24: return instance;
25: }
26:
27: @NotNull
28: public static final String SIZE_16 = "16*16";
29: @NotNull
30: public static final String SIZE_32 = "32*32";
31: @NotNull
32: public static final String SIZE_48 = "48*48";
33: @NotNull
34: public static final String SIZE_64 = "48*48";
35:
36: @NotNull
37: private String toolbarIconKey;
38: @NotNull
39: private String menuIconKey;
40: @NotNull
41: private String popupmenuIconKey;
42: @NotNull
43: private String categoriesIconKey;
44:
45: private CommandSettings() {
46: toolbarIconKey = SIZE_16;
47: menuIconKey = SIZE_16;
48: popupmenuIconKey = SIZE_16;
49: categoriesIconKey = SIZE_16;
50: }
51:
52: @NotNull
53: public String getToolbarIconKey() {
54: return toolbarIconKey;
55: }
56:
57: public void setToolbarIconKey(@NotNull
58: String toolbarIconKey) {
59: this .toolbarIconKey = toolbarIconKey;
60: }
61:
62: @NotNull
63: public String getMenuIconKey() {
64: return menuIconKey;
65: }
66:
67: public void setMenuIconKey(@NotNull
68: String menuIconKey) {
69: this .menuIconKey = menuIconKey;
70: }
71:
72: @NotNull
73: public String getPopupmenuIconKey() {
74: return popupmenuIconKey;
75: }
76:
77: public void setPopupmenuIconKey(@NotNull
78: String popupmenuIconKey) {
79: this .popupmenuIconKey = popupmenuIconKey;
80: }
81:
82: @NotNull
83: public String getCategoriesIconKey() {
84: return categoriesIconKey;
85: }
86:
87: public void setCategoriesIconKey(@NotNull
88: String categoriesIconKey) {
89: this.categoriesIconKey = categoriesIconKey;
90: }
91:
92: }
|