package org.vaadin.smartgwt.server.core; /* * SmartGWT (GWT for SmartClient) * Copyright 2008 and beyond, Isomorphic Software, Inc. * * SmartGWT is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3 * as published by the Free Software Foundation. SmartGWT is also * available under typical commercial license terms - see * smartclient.com/license. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ public class RefDataClass extends DataClass { // public RefDataClass() { // setAttribute(SC.REF, (Object) this); // } // public RefDataClass(JavaScriptObject jsObj) { // super(jsObj); // //when we're being constructed using the JSO directly, make sure we clear out any other // //SC.REF attributes to make sure this object is represented by a different GWT object ref // JSOHelper.deleteAttribute(jsObj, SC.REF); // } public static RefDataClass getRef(String jsObj) { return null; } // public static RefDataClass getRef(JavaScriptObject jsObj) { // // if (jsObj == null) { // return null; // } else { // Object ref = JSOHelper.getAttributeAsObject((JavaScriptObject) jsObj, SC.REF); // if (ref != null && !(ref instanceof RefDataClass)) { // return null; // } else { // return (RefDataClass) ref; // } // } // } }