ItEr45S19CUTraspasoDeResponsabilidadesTraballoEntreUnidadesPlanificacion: Fixing problem.
Only if the image was null the label was shown. Now if the image is null, the label is also shown.
This commit is contained in:
parent
b1249f1f63
commit
46aefa250d
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
package org.zkoss.ganttz;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.zkoss.ganttz.extensions.ICommand;
|
||||
import org.zkoss.ganttz.extensions.IContext;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
|
|
@ -49,7 +50,7 @@ class CommandContextualized<T> {
|
|||
|
||||
Button toButton() {
|
||||
Button result = new Button();
|
||||
if ("".equals(command.getImage())) {
|
||||
if (StringUtils.isEmpty(command.getImage())) {
|
||||
result.setLabel(command.getName());
|
||||
} else {
|
||||
result.setImage(command.getImage());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue