PageRenderTime 118ms CodeModel.GetById 111ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/XInsert/src/XTreeItem.java

#
Java | 63 lines | 30 code | 10 blank | 23 comment | 0 complexity | aaf15e810c8e7eb48aa1e33cd8d89c49 MD5 | raw file
 1/*
 2 * 19:40:24 10/09/99
 3 *
 4 * XTreeItem.java - 
 5 * Copyright (C) 1999 Romain Guy - powerteam@chez.com
 6 * Portions Copyright (C) 2000 Dominic Stolerman - dominic@sspd.org.uk
 7 * www.chez.com/powerteam
 8 *
 9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23
24public class XTreeItem {
25  public static final int UNKNOWN_TYPE = -1;
26  public static final int TEXT_TYPE =0;
27  public static final int MACRO_TYPE = 1;
28  public static final int XINSERT_SCRIPT_TYPE = 2;
29  public static final int NAMED_MACRO_TYPE = 3;
30  public static final int REFERENCE_TYPE = 4;
31  public static final int ACTION_TYPE = 5;
32
33  private int type;
34  private String content;
35
36  public XTreeItem(String content) {
37    this(content, TEXT_TYPE);
38  }
39
40  public XTreeItem(String content, int type) {
41    this.content = content;
42    this.type = type;
43  }
44
45  public int getType() {
46    return type;
47  }
48
49  public void setType(int type) {
50    this.type = type;
51  }
52
53  public String getContent() {
54    return content;
55  }
56
57  public void setContent(String content) {
58    this.content = content;
59  }
60}
61
62// End of XTreeItem.java
63