ItEr49S04ValidacionEProbasFuncionaisItEr48S04: Added icon to Up command in resourcesload toolbar

This commit is contained in:
Lorenzo Tilve 2010-02-22 13:08:17 +01:00 committed by Javier Moran Rua
parent bcf420228d
commit e47457f6b2
4 changed files with 16 additions and 3 deletions

View file

@ -22,6 +22,7 @@ package org.zkoss.ganttz.resourceload;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.zkoss.ganttz.data.resourceload.LoadTimeLine;
import org.zkoss.ganttz.data.resourceload.LoadTimelinesGroup;
import org.zkoss.ganttz.timetracker.TimeTracker;
@ -49,6 +50,8 @@ public class ResourcesLoadPanel extends HtmlMacroComponent {
public void doAction();
public String getLabel();
public String getImage();
}
private TimeTrackerComponent timeTrackerComponent;
@ -108,7 +111,12 @@ public class ResourcesLoadPanel extends HtmlMacroComponent {
c.doAction();
}
});
result.setLabel(c.getLabel());
if (!StringUtils.isEmpty(c.getImage())) {
result.setImage(c.getImage());
result.setTooltiptext(c.getLabel());
} else {
result.setLabel(c.getLabel());
}
return result;
}

View file

@ -29,7 +29,7 @@ resourcesLoadPanel = self;
<borderlayout sclass="resourcesloadlayout" width="auto">
<north height="30px" border="0">
<north height="30px" border="0" sclass="toolbar-box">
<hbox align="center" id="toolbar">
<separator/>
<label>${i18n:_('Zoom')}:</label>

View file

@ -299,7 +299,12 @@ public class MultipleTabsPlannerController implements Composer,
@Override
public String getLabel() {
return _("Up");
return _("Up to company view");
}
@Override
public String getImage() {
return _("/common/img/ico_up.png");
}
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B