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:
Óscar González Fernández 2010-01-28 18:27:43 +01:00
parent b1249f1f63
commit 46aefa250d

View file

@ -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());