KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > elements > simple > SimpleTextAttribute


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.designer.elements.simple;
5
6 import org.oddjob.designer.model.SimpleAttribute;
7
8 /**
9  * Any inline text is added to the attribute.
10  */

11 public class SimpleTextAttribute extends SimpleAttribute {
12
13     public void addText(String JavaDoc text) {
14         attribute(attribute() + text);
15     }
16 }
17
Popular Tags