ItEr14S13RFComportamentoGraficoPlanificador: Datebox loaded with intro.
This commit is contained in:
parent
060fdc76d0
commit
63d16fbc7b
2 changed files with 9 additions and 9 deletions
|
|
@ -79,12 +79,12 @@ public class TaskDetail extends HtmlMacroComponent implements AfterCompose {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When a text box associated to a datebox receives focus, the corresponding
|
* When a text box associated to a datebox is requested to show the datebox,
|
||||||
* datebox is shown
|
* the corresponding datebox is shown
|
||||||
* @param component
|
* @param component
|
||||||
* the component that has received focus
|
* the component that has received focus
|
||||||
*/
|
*/
|
||||||
public void hasReceivedFocus(Component component) {
|
public void userWantsDateBox(Component component) {
|
||||||
if (component == startDateTextBox) {
|
if (component == startDateTextBox) {
|
||||||
showDateBox(startDateBox, startDateTextBox);
|
showDateBox(startDateBox, startDateTextBox);
|
||||||
}
|
}
|
||||||
|
|
@ -97,6 +97,7 @@ public class TaskDetail extends HtmlMacroComponent implements AfterCompose {
|
||||||
associatedTextBox.setVisible(false);
|
associatedTextBox.setVisible(false);
|
||||||
dateBox.setVisible(true);
|
dateBox.setVisible(true);
|
||||||
dateBox.setFocus(true);
|
dateBox.setFocus(true);
|
||||||
|
dateBox.setOpen(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -170,5 +171,4 @@ public class TaskDetail extends HtmlMacroComponent implements AfterCompose {
|
||||||
this.endDateTextBox = endDateTextBox;
|
this.endDateTextBox = endDateTextBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
]]>
|
]]>
|
||||||
</zscript>
|
</zscript>
|
||||||
<hbox>
|
<hbox>
|
||||||
<textbox id="nameBox" value="" onChange="top.updateBean();"/>
|
<textbox id="nameBox" value="" onChange="top.updateBean();" />
|
||||||
<textbox id="startDateTextBox" value="" onChange="top.updateBean();" onFocus="top.hasReceivedFocus(self);" />
|
<textbox id="startDateTextBox" value="" onChange="top.updateBean();" onOK="top.userWantsDateBox(self);" />
|
||||||
<datebox id="startDateBox" compact="true" onChange="top.updateBean();" visible="${false}" onBlur="top.dateBoxHasLostFocus(self);"/>
|
<datebox id="startDateBox" compact="true" onChange="top.updateBean();" visible="${false}" onBlur="top.dateBoxHasLostFocus(self);"/>
|
||||||
<textbox id="endDateTextBox" value="" onChange="top.updateBean();" onFocus="top.hasReceivedFocus(self);"/>
|
<textbox id="endDateTextBox" value="" onChange="top.updateBean();" onOK="top.userWantsDateBox(self);"/>
|
||||||
<datebox id="endDateBox" compact="true" onChange="top.updateBean();" visible ="${false}" onBlur="top.dateBoxHasLostFocus(self);"/>
|
<datebox id="endDateBox" compact="true" onChange="top.updateBean();" visible ="${false}" onBlur="top.dateBoxHasLostFocus(self);" ctrlKeys="#down" onCtrlKey="top.userWantsDateBox(self)"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<zscript><![CDATA[
|
<zscript><![CDATA[
|
||||||
|
|
@ -19,4 +19,4 @@
|
||||||
top.endDateTextBox = endDateTextBox;
|
top.endDateTextBox = endDateTextBox;
|
||||||
]]>
|
]]>
|
||||||
</zscript>
|
</zscript>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue