forked from LupusNobilis/java-org.hwo.ui
65 lines
901 B
Java
65 lines
901 B
Java
package org.hwo.ui.toolbar;
|
|
|
|
import java.awt.Image;
|
|
|
|
|
|
public class UITool {
|
|
|
|
private Object tool;
|
|
private String label;
|
|
private String help;
|
|
private Image image;
|
|
|
|
private boolean selected;
|
|
|
|
public UITool(){
|
|
|
|
}
|
|
|
|
public Object getTool() {
|
|
return tool;
|
|
}
|
|
public void setTool(Object tool) {
|
|
this.tool = tool;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public String getHelp() {
|
|
return help;
|
|
}
|
|
public void setHelp(String help) {
|
|
this.help = help;
|
|
}
|
|
|
|
public Image getImage() {
|
|
return image;
|
|
}
|
|
public void setImage(Image image) {
|
|
this.image = image;
|
|
}
|
|
|
|
public void setSelected(boolean selected) {
|
|
this.selected = selected;
|
|
}
|
|
public boolean isSelected() {
|
|
return selected;
|
|
}
|
|
|
|
|
|
public void select(){
|
|
this.selected = true;
|
|
}
|
|
public void unselect(){
|
|
this.selected = false;
|
|
}
|
|
|
|
|
|
|
|
}
|