Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/openwave/oui/waomelements/PathTask.java


1   package com.openwave.oui.waomelements;
2   
3   import com.openwave.oui.framework.*;
4   /**
5    * Insert the type's description here.
6    * Creation date: (4/5/2001 10:08:44 AM)
7    * @author: Lars Gunder Knudsen
8    */
9   public class PathTask extends WaomComposite {
10  
11    public static final int PRIMARY = 0;
12    public static final int SECONDARY = 1;
13    public static final int SIDE = 2;
14  
15    private int pathType = PRIMARY;
16  
17    private String shortTitle = null;
18    private String longTitle = null;
19  
20    private final static long serialVersionUID = 3812859796359684433L;
21    /**
22    * Insert the method's description here.
23    * Creation date: (4/5/2001 10:33:38 AM)
24    */
25    public void setPathType(int pathType) {
26      this.pathType = pathType;
27    }
28    /**
29    * Insert the method's description here.
30    * Creation date: (4/5/2001 10:33:38 AM)
31    */
32    public int getPathType() {
33      return this.pathType;
34    }
35    /**
36    * Insert the method's description here.
37    * Creation date: (4/5/2001 10:33:38 AM)
38    */
39    public void setShortTitle(String shortTitle) {
40      this.shortTitle = shortTitle;
41    }
42    /**
43    * Insert the method's description here.
44    * Creation date: (4/5/2001 10:33:38 AM)
45    */
46    public String getShortTitle() {
47      return this.shortTitle;
48    }
49    /**
50    * Insert the method's description here.
51    * Creation date: (4/5/2001 10:33:38 AM)
52    */
53    public void setLongTitle(String longTitle) {
54      this.longTitle = longTitle;
55    }
56    /**
57    * Insert the method's description here.
58    * Creation date: (4/5/2001 10:33:38 AM)
59    */
60    public String getLongTitle() {
61      return this.longTitle;
62    }
63  
64  
65    /**
66     * Path constructor comment.
67     */
68    /*public Path() {
69      super();
70      waomElementName = "Path";
71    }*/
72  
73    public PathTask(
74      int pathType,
75      AbsTask absTask,
76      String shortTitle,
77      String longTitle) {
78      super();
79      this.pathType = pathType;
80      this.addElement(absTask);
81      this.shortTitle = shortTitle;
82      this.longTitle = longTitle;
83      //waomElementName = "PathTask";
84      setWaomElementName("PathTask");
85    }
86  
87  
88  public boolean isPathTask(){
89    return true;
90  }
91  
92  
93    public void visit(WaomVisitor wv){
94      wv.visit(this);
95    }
96  }