diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/AbstractCommonTableModelProvider.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/AbstractCommonTableModelProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..53d6a3ecfc54e59b0d705bf9aa3d5d3d821044e2 --- /dev/null +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/AbstractCommonTableModelProvider.java @@ -0,0 +1,40 @@ +/* + * Copyright 2010 ETH Zuerich, CISD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package ch.systemsx.cisd.openbis.generic.client.web.server.resultset; + +import com.google.gwt.user.client.rpc.IsSerializable; + +import ch.systemsx.cisd.openbis.generic.shared.ICommonServer; + +/** + * Superclass of {@link ITableModelProvider} which creates the table model + * lazily by using {@link ICommonServer}. + * + * @author Franz-Josef Elmer + */ +public abstract class AbstractCommonTableModelProvider<T extends IsSerializable> extends + AbstractTableModelProvider<T> +{ + protected final ICommonServer commonServer; + protected final String sessionToken; + + public AbstractCommonTableModelProvider(ICommonServer commonServer, String sessionToken) + { + this.commonServer = commonServer; + this.sessionToken = sessionToken; + } +}