package com.vci.client.ui.swing.components;
|
|
|
import javax.swing.Action;
|
import javax.swing.Icon;
|
import javax.swing.JToggleButton;
|
|
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 VCIJTJToggleButton extends JToggleButton {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -6941660587572716949L;
|
|
public VCIJTJToggleButton() {
|
this("");
|
}
|
|
public VCIJTJToggleButton(Icon icon) {
|
this(icon, false);
|
}
|
|
public VCIJTJToggleButton(String text) {
|
this(text, null);
|
}
|
|
public VCIJTJToggleButton(Action a) {
|
this();
|
if(a != null){
|
setAction(a);
|
}
|
}
|
|
public VCIJTJToggleButton(Icon icon, boolean selected) {
|
this(null, icon, selected);
|
}
|
|
public VCIJTJToggleButton(String text, boolean selected) {
|
this(text, null, selected);
|
}
|
|
public VCIJTJToggleButton(String text, Icon icon) {
|
this(text, icon, false);
|
}
|
|
public VCIJTJToggleButton(String text, Icon icon, boolean selected) {
|
super(text, icon, selected);
|
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;
|
}
|
}
|