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

Quick Search    Search Deep

Source code: jhfc/HylaFaxJobParameter.java


1   
2   
3   package jhfc;
4   
5   public class HylaFaxJobParameter
6   {
7     String  name;
8     String  value;
9     String  description;
10    String  formatMask;
11    int  formatMaskIndex;
12    private boolean  visibleInTable=false;
13        
14    // Parameter MUSS vom Typ java.lang.Object sein,
15    // sonst wird nicht die Methode equals() von java.lang.Object ueberschrieben!
16    // Das führt dazu, daß java.util.Vector().indexOf() nicht dieses
17    // equals() aufruft und deshalb nicht funktioniert.
18    public boolean equals
19    (
20      java.lang.Object o
21    )
22    {
23  //System.out.println("!!!!!!!!!!");
24      HylaFaxJobParameter hylaFaxJobParameter=(HylaFaxJobParameter)o;
25  
26      if(hylaFaxJobParameter==null)
27      {
28  //System.out.println("NULL");
29        return(false);
30      }
31  //System.out.println("p1="+hylaFaxJobParameter.getName()+" p2="+name+"'");
32      return(hylaFaxJobParameter.getName().equals(name));
33    }
34  
35  
36    public boolean getIsVisibleInTable
37    (
38    )
39    {
40      return(visibleInTable);
41    }
42  
43  /*
44    public void setDisplayInTable
45    (
46      boolean  displayInTable
47    )
48    {
49      this.displayInTable=displayInTable;
50    }
51  */
52    public String toString
53    (
54    )
55    {
56      return("[name='"+name+"', value='"+value+"', formatMask='"+formatMask+"', description='"+description+"'");
57    }
58    
59    public String getName
60    (
61    )
62    {
63      return(name);
64    }
65  
66    public String getFormatMask
67    (
68    )
69    {
70      return(formatMask);
71    }
72  
73    public String getValue
74    (
75    )
76    {
77      return(value);
78    }
79  
80    String getDescription
81    (
82    )
83    {
84      return(description);
85    }
86  
87    public int getFormatMaskIndex
88    (
89    )
90    {
91      return(formatMaskIndex);
92    }
93  
94    public void setFormatMaskIndex
95    (
96      int  formatMaskIndex
97    )
98    {
99      this.formatMaskIndex=formatMaskIndex;
100   }
101   
102   void setValue
103   (
104     String value
105   )
106   throws IllegalArgumentException
107   {
108     this.value=value;
109   }
110   
111   public HylaFaxJobParameter
112   (
113     String  name,
114     String  description, 
115     String  formatMask
116 //    boolean  visibleInTable
117 //    String  value
118   )
119   throws IllegalArgumentException
120   {
121     this.name=name.trim();
122     this.description=description;
123     this.formatMask=formatMask;
124     if(formatMask!=null)
125     {
126       visibleInTable=true;
127     }
128 //    this.displayInTable=displayInTable;
129     formatMaskIndex=-1;
130   }
131 }