|
|
Re: Custom Editors for Components? [message #693841 is a reply to message #693425] |
Thu, 07 July 2011 10:04 |
Rayleigh Missing name Messages: 20 Registered: July 2011 |
Junior Member |
|
|
Thanks, I found out you have to open it with right click -> customize.
However, the changes I make to the bean with my customizer do not work.
The customizer looks like this:
===========================================
public class CustomTextfieldCustomizer extends JPanel implements Customizer {
private CustomTextfield beanField;
public CustomTextfieldCustomizer() {
this.initGUI();
}
...
@Override
public void setObject(Object bean) {
this.beanField = (CustomTextfield) bean;
this.updateValues(this.beanField);
this.initActions();
}
...
public void applyChanges(CustomTextfield bean) {
this.firePropertyChange("name", bean.getName(), this.getTxtName().getText());
this.firePropertyChange("description", bean.getDescription(), this.getTxtDescription().getText());
this.firePropertyChange("text", bean.getText(), this.getTxtInitialValue().getText());
}
}
===========================================
After Pressing the ok button inside the customizer, applyChanges() is called.
This works fine with jigloo but nothing happens in Window Builder.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03731 seconds