ItEr30S17ValidacionEProbasFuncionais: Listening to zoom buttons events. Fixing bug #25.
This commit is contained in:
parent
da419562a1
commit
122639724e
2 changed files with 14 additions and 3 deletions
|
|
@ -70,6 +70,14 @@ public class ResourcesLoadPanel extends HtmlMacroComponent {
|
|||
registerNeededScripts();
|
||||
}
|
||||
|
||||
public void zoomIncrease() {
|
||||
timeTracker.zoomIncrease();
|
||||
}
|
||||
|
||||
public void zoomDecrease() {
|
||||
timeTracker.zoomDecrease();
|
||||
}
|
||||
|
||||
public void add(final IToolbarCommand... commands) {
|
||||
Component toolbar = getToolbar();
|
||||
Separator separator = getSeparator();
|
||||
|
|
|
|||
|
|
@ -19,13 +19,16 @@
|
|||
-->
|
||||
|
||||
<zk xmlns:n="http://www.zkoss.org/2005/zk/native">
|
||||
|
||||
<zscript><![CDATA[
|
||||
resourcesLoadPanel = self;
|
||||
]]>
|
||||
</zscript>
|
||||
<borderlayout sclass="resourcesloadlayout" width="auto">
|
||||
<north height="30px" border="0">
|
||||
<hbox align="center" id="toolbar">
|
||||
<separator/>
|
||||
<button label="+" />
|
||||
<button label="-" />
|
||||
<button label="+" onClick="resourcesLoadPanel.zoomIncrease();"/>
|
||||
<button label="-" onClick="resourcesLoadPanel.zoomDecrease();"/>
|
||||
From: <datebox /> to: <datebox />
|
||||
<separator/>
|
||||
Filter:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue