001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * To change this template, choose Tools | Template Manager
027: * and open the template in the editor.
028: */
029: package org.netbeans.modules.visualweb.dataconnectivity.designtime;
030:
031: import com.sun.rave.designtime.*;
032: import com.sun.rowset.CachedRowSetImpl;
033:
034: /**
035: *
036: * @author David
037: */
038: public class CachedRowSetXImplDesignInfo implements DesignInfo {
039:
040: public CachedRowSetXImplDesignInfo() {
041:
042: }
043:
044: public Class getBeanClass() {
045: return CachedRowSetImpl.class;
046: }
047:
048: public boolean acceptParent(DesignBean parentBean,
049: DesignBean childBean, Class childClass) {
050: return true;
051: }
052:
053: public boolean acceptChild(DesignBean parentBean,
054: DesignBean childBean, Class childClass) {
055: return true;
056: }
057:
058: public Result beanCreatedSetup(DesignBean bean) {
059: return Result.SUCCESS;
060: }
061:
062: public Result beanPastedSetup(DesignBean bean) {
063: return Result.SUCCESS;
064: }
065:
066: public Result beanDeletedCleanup(DesignBean bean) {
067: return Result.SUCCESS;
068: }
069:
070: public DisplayAction[] getContextItems(DesignBean bean) {
071: return DisplayAction.EMPTY_ARRAY;
072: }
073:
074: public boolean acceptLink(DesignBean targetBean,
075: DesignBean sourceBean, Class sourceClass) {
076: return false;
077: }
078:
079: public Result linkBeans(DesignBean targetBean, DesignBean sourceBean) {
080: return null;
081: }
082:
083: public void beanContextActivated(DesignBean bean) {
084: }
085:
086: public void beanContextDeactivated(DesignBean bean) {
087: }
088:
089: public void instanceNameChanged(DesignBean bean,
090: String oldInstanceName) {
091: }
092:
093: public void beanChanged(DesignBean bean) {
094: }
095:
096: public void propertyChanged(DesignProperty prop, Object oldValue) {
097: }
098:
099: public void eventChanged(DesignEvent event) {
100: }
101: }
|