mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 11:17:40 +08:00
Attribute "description" does not work in any action #1174
This commit is contained in:
parent
19192750d2
commit
6f09985724
@ -33,8 +33,19 @@ public class WebButton extends WebAbstractComponent<CubaButton> implements Butto
|
||||
protected PropertyChangeListener actionPropertyChangeListener;
|
||||
|
||||
public WebButton() {
|
||||
component = new CubaButton();
|
||||
component = createComponent();
|
||||
initComponent(component);
|
||||
}
|
||||
|
||||
protected CubaButton createComponent() {
|
||||
return new CubaButton();
|
||||
}
|
||||
|
||||
protected void initComponent(CubaButton component) {
|
||||
component.setClickHandler(this::buttonClicked);
|
||||
// The default description value is empty string,
|
||||
// that prevents obtaining a description value from an action
|
||||
component.setDescription(null);
|
||||
}
|
||||
|
||||
// override in descendants if needed
|
||||
|
Loading…
Reference in New Issue
Block a user