Rev | Line | |
---|
[569] | 1 | /* |
---|
| 2 | * $Id: DataModelEditor.java,v 1.2 2003/08/22 23:02:34 dwd Exp $ |
---|
| 3 | * |
---|
| 4 | * This software is provided by NOAA for full, free and open release. It is |
---|
| 5 | * understood by the recipient/user that NOAA assumes no liability for any |
---|
| 6 | * errors contained in the code. Although this software is released without |
---|
| 7 | * conditions or restrictions in its use, it is expected that appropriate |
---|
| 8 | * credit be given to its author and to the National Oceanic and Atmospheric |
---|
| 9 | * Administration should the software be included by the recipient as an |
---|
| 10 | * element in other product development. |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | package gov.noaa.pmel.sgt.beans; |
---|
| 14 | |
---|
| 15 | import javax.swing.JComponent; |
---|
| 16 | |
---|
| 17 | /** |
---|
| 18 | * Used at run-time to modify the <code>DataModel</code>. Not implemented at this |
---|
| 19 | * time. |
---|
| 20 | * |
---|
| 21 | * @author Donald Denbo |
---|
| 22 | * @version $Revision: 1.2 $, $Date: 2003/08/22 23:02:34 $ |
---|
| 23 | * @since 3.0 |
---|
| 24 | **/ |
---|
| 25 | class DataModelEditor extends JComponent { |
---|
| 26 | /** |
---|
| 27 | * @supplierCardinality 1 |
---|
| 28 | */ |
---|
| 29 | private DataModel dataModel_; |
---|
| 30 | |
---|
| 31 | public DataModelEditor() { |
---|
| 32 | super(); |
---|
| 33 | dataModel_ = null; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | public DataModelEditor(DataModel model) { |
---|
| 37 | super(); |
---|
| 38 | setDataModel(model); |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | public DataModel getDataModel(){ |
---|
| 42 | return dataModel_; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | public void setDataModel(DataModel dataModel){ |
---|
| 46 | dataModel_ = dataModel; |
---|
| 47 | } |
---|
| 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.