PageRenderTime 13ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-tds/src/com/nimbits/client/model/GxtDiagramModel.java

http://nimbits-server.googlecode.com/
Java | 54 lines | 26 code | 10 blank | 18 comment | 0 complexity | f23c4d60ed6bbff8430524939c178739 MD5 | raw file
 1/*
 2 * Copyright (c) 2010 Tonic Solutions LLC.
 3 *
 4 * http://www.nimbits.com
 5 *
 6 *
 7 * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
 8 *
 9 * http://www.gnu.org/licenses/gpl.html
10 *
11 * 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.
12 */
13
14package com.nimbits.client.model;
15
16import com.nimbits.client.model.diagram.Diagram;
17import com.nimbits.client.model.diagram.DiagramName;
18
19/**
20 * Created by bsautner
21 * User: benjamin
22 * Date: 7/8/11
23 * Time: 5:42 PM
24 */
25public class GxtDiagramModel extends GxtBaseModel {
26    private long id;
27    private DiagramName name;
28
29    public GxtDiagramModel(Diagram diagram) {
30        this.id = diagram.getId();
31        this.name = diagram.getName();
32        set(Const.PARAM_ID, this.id);
33        set(Const.PARAM_NAME, this.name.getValue());
34        set(Const.PARAM_ICON, Const.PARAM_DIAGRAM);
35    }
36
37    public long getId() {
38        return id;
39    }
40
41    public void setId(long id) {
42        this.id = id;
43    }
44
45    public DiagramName getName() {
46        return this.name;
47    }
48
49    public void setName(DiagramName name) {
50        this.name = name;
51    }
52
53
54}