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: import org.jetbrains.annotations.Nullable;
18:
19: /**
20: * User: Martin
21: * Date: 20.11.2004
22: * Time: 20:21:01
23: */
24: public class NullDataProvider implements DataProvider {
25: public NullDataProvider() {
26: }
27:
28: @NotNull
29: public DataContext getDataContext() {
30: return new DataContext() {
31: @Nullable
32: public Object getData(@Nullable
33: String key) {
34: return null;
35: }
36:
37: @Nullable
38: public CommandApplicationRoot getCommandApplicationRoot() {
39: return null;
40: }
41: };
42: }
43:
44: @NotNull
45: public String getPlace() {
46: return "";
47: }
48:
49: public void requestFocus() {
50: }
51: }
|