I use the AbstractVisionComponent
I’m looking for the synthax to add “dataset” prop in the CommonBeanInfo ?
and the java type for the associed getter and setter for the dataset ?
You’re example is fine for a text prop :
addProp(“text”, “Text”, “The text to display in the component”, CAT_DATA, PREFFERED_MASK | BOUND_MASK);
public String getText() {
return text;
}
public void setText(String text) {
// Firing property changes like this is required for any property that has the BOUND_MASK set on it.
// (See this component’s BeanInfo class)
String old = this.text;
this.text = text;
firePropertyChange(“text”, old, text);
repaint();
}