/** Called when the upload attribute is modified. */ private void onUploadChanged(String upload) { if (upload != null && !"trendy".equals(getMold()) && getDefinition().getMoldNames().contains("trendy")) //Toolbarbutton doesn't support trendy setMold("trendy"); }