KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > databinding > provisional > description > TableModelDescription


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.jface.internal.databinding.provisional.description;
13
14 import org.eclipse.jface.internal.databinding.provisional.observable.list.IObservableList;
15
16
17 /**
18  * TODO Javadoc
19  *
20  * @since 1.0
21  *
22  */

23 public class TableModelDescription {
24     
25     private final Property collectionProperty;
26     private final IObservableList observableList;
27     private final Object JavaDoc[] columnIDs;
28
29     /**
30      * @param collectionProperty
31      * @param columnIDs
32      */

33     public TableModelDescription(Property collectionProperty, Object JavaDoc[] columnIDs) {
34         this.collectionProperty = collectionProperty;
35         this.columnIDs = columnIDs;
36         this.observableList = null;
37     }
38
39     /**
40      * @param observableList
41      * @param columnIDs
42      */

43     public TableModelDescription(IObservableList observableList, Object JavaDoc[] columnIDs) {
44         this.observableList = observableList;
45         this.columnIDs = columnIDs;
46         this.collectionProperty = null;
47     }
48
49     /**
50      * @return the collection property
51      */

52     public Property getCollectionProperty() {
53         return collectionProperty;
54     }
55
56     /**
57      * @return the column identifiers
58      */

59     public Object JavaDoc[] getColumnIDs() {
60         return columnIDs;
61     }
62
63     public IObservableList getObservableList() {
64         return observableList;
65     }
66 }
67
Popular Tags