Label.java 941 Bytes
Newer Older
TongZuu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
package com.csc.library.components;

public class Label extends MyTag  {

	private static final long serialVersionUID = -974853324071143386L;

	public Label() {}

	public Label(ComponentManager cm) {
		super(cm);
	} 

	public String process() {
		String label1 = this.label;
		return label1;
	}

	public String getLabel() {
		return this.process();
	}

	public String getInput() {
		return this.process();
	}
	
	public void setLabel(String lable) {
        if (this.key) {
            this.label = "<label class=\"key\"><b>" + lable + "</b></label>";
            
        } else if( this.require != null && !("").equalsIgnoreCase(this.require) ) {
             this.label = "<label>" +lable + "<span class=\"require\">" +this.require +"</span></label>";
             
        } else {
        	 this.label = "<label>" +lable +"</label>";
        	 
        }
	}

	public void setSpace(int space) {}
}