package com.vci.client.ui.swing.components;
|
|
import javax.swing.Icon;
|
import javax.swing.JLabel;
|
|
import com.vci.client.ui.swing.VCISwingUtil;
|
|
/**
|
*
|
* <p>Title: </p>
|
* <p>Description: </p>
|
* <p>Copyright: Copyright (c) 2012</p>
|
* <p>Company: VCI</p>
|
* @author xchao
|
* @time 2012-5-10
|
* @version 1.0
|
*/
|
public class VCIJLabel extends JLabel {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 7236359148040412593L;
|
|
public VCIJLabel() {
|
this("");
|
}
|
|
public VCIJLabel(String text) {
|
this(text, null, LEADING);
|
}
|
|
public VCIJLabel(Icon image) {
|
this(null, image, CENTER);
|
}
|
|
public VCIJLabel(String text, int horizontalAlignment) {
|
this(text, null, horizontalAlignment);
|
}
|
|
public VCIJLabel(Icon image, int horizontalAlignment) {
|
this(null, image, horizontalAlignment);
|
}
|
|
public VCIJLabel(String text, Icon icon, int horizontalAlignment) {
|
super(text, icon, horizontalAlignment);
|
customConstructor();
|
}
|
|
private void customConstructor(){
|
setFont(VCISwingUtil.FONT_DEFAULT);
|
}
|
private Object obj = null;
|
public Object getObj() {
|
return obj;
|
}
|
public void setObj(Object obj) {
|
this.obj = obj;
|
}
|
}
|