KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > client > beans > TextAttribute


1 /*
2  * TextAttribute.java
3  *
4  * Created on November 23, 2002, 10:28 AM
5  */

6
7 package com.quikj.client.beans;
8
9 import java.awt.*;
10
11 /**
12  *
13  * @author amit
14  */

15 public class TextAttribute
16 {
17     
18     /** Creates a new instance of TextAttribute */
19     public TextAttribute(int style, Color color, String JavaDoc text)
20     {
21         setStyle(style);
22         setColor(color);
23         setText(text);
24     }
25     
26     /** Getter for property color.
27      * @return Value of property color.
28      *
29      */

30     public java.awt.Color JavaDoc getColor()
31     {
32         return color;
33     }
34     
35     /** Setter for property color.
36      * @param color New value of property color.
37      *
38      */

39     public void setColor(java.awt.Color JavaDoc color)
40     {
41         this.color = color;
42     }
43     
44     /** Getter for property style.
45      * @return Value of property style.
46      *
47      */

48     public int getStyle()
49     {
50         return style;
51     }
52     
53     /** Setter for property style.
54      * @param style New value of property style.
55      *
56      */

57     public void setStyle(int style)
58     {
59         this.style = style;
60     }
61     
62     /** Getter for property text.
63      * @return Value of property text.
64      *
65      */

66     public java.lang.String JavaDoc getText()
67     {
68         return text;
69     }
70     
71     /** Setter for property text.
72      * @param text New value of property text.
73      *
74      */

75     public void setText(java.lang.String JavaDoc text)
76     {
77         this.text = text;
78     }
79     
80     private int style = -1;
81     private Color color = null;
82     private String JavaDoc text = null;
83 }
84
Popular Tags