Hotzone"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
m ((via JWB)) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZKComponentReferencePageHeader}} | |
+ | |||
+ | = Hotzone = | ||
+ | Deprecated, please use [http://blog.zkoss.org/index.php/2015/01/13/introducing-new-zk-addon-zk-timeline/ new Timeline instead] | ||
+ | |||
+ | = Employment/Purpose = | ||
+ | |||
+ | Defines the hotzoneof a bandinfo . | ||
+ | |||
+ | = Example = | ||
+ | |||
+ | [[Image:ZKCompRef_Timeline2.png]] | ||
+ | |||
+ | <source lang="xml" > | ||
+ | <window id="win"> | ||
+ | <zscript> | ||
+ | <![CDATA[ | ||
+ | import java.util.Date; | ||
+ | import java.util.TimeZone; | ||
+ | |||
+ | TimeZone zone=TimeZone.getTimeZone("GMT-05"); | ||
+ | |||
+ | Date current=new Date(Date.parse("Jun 28 2010 00:00:00 GMT-0500")); | ||
+ | //for hotzone of band #1 | ||
+ | Date d1=new Date(Date.parse("Nov 01 2010 00:00:00 GMT-0500")); | ||
+ | Date d2=new Date(Date.parse("Dec 01 2010 00:00:00 GMT-0500")); | ||
+ | Date d3=new Date(Date.parse("Nov 02 2010 00:00:00 GMT-0500")); | ||
+ | Date d4=new Date(Date.parse("Nov 04 2010 00:00:00 GMT-0500")); | ||
+ | Date d5=new Date(Date.parse("Nov 02 2010 06:00:00 GMT-0500")); | ||
+ | Date d6=new Date(Date.parse("Nov 02 2010 12:00:00 GMT-0500")); | ||
+ | |||
+ | //for hotzone of band #2 | ||
+ | Date d7=new Date(Date.parse("Nov 01 2010 00:00:00 GMT-0500")); | ||
+ | Date d8=new Date(Date.parse("Dec 01 2010 00:00:00 GMT-0500")); | ||
+ | ]]> | ||
+ | </zscript> | ||
+ | <timeline height="300px" width="100%"> | ||
+ | <bandinfo width="70%" id="b1" intervalUnit="month" | ||
+ | intervalPixels="100" | ||
+ | timeZone="${zone}" date="${current}"> | ||
+ | <hotzone start="${d1}" end="${d2}" magnify="10" unit="week" /> | ||
+ | <hotzone start="${d3}" end="${d4}" magnify="7" unit="day" /> | ||
+ | <hotzone start="${d5}" end="${d6}" magnify="5" unit="hour" /> | ||
+ | </bandinfo> | ||
+ | <bandinfo timeZone="${zone}" date="${current}" | ||
+ | width="30%" intervalUnit="year" intervalPixels="200" | ||
+ | syncWith="b1"> | ||
+ | <hotzone start="${d7}" end="${d8}" magnify="20" unit="week" /> | ||
+ | </bandinfo> | ||
+ | </timeline> | ||
+ | </window> | ||
+ | </source> | ||
+ | |||
+ | |||
+ | |||
+ | =Supported Events= | ||
+ | |||
+ | {| class='wikitable' | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]] | ||
+ | |||
+ | =Supported Children= | ||
+ | |||
+ | *NONE | ||
+ | |||
+ | =Use Cases= | ||
+ | |||
+ | [[ZK_Component_Reference/Diagrams_and_Reports/Timeline#Use_Cases | Timeline ]] | ||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | {| class='wikitable' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Latest revision as of 11:05, 7 January 2022
Hotzone
Deprecated, please use new Timeline instead
Employment/Purpose
Defines the hotzoneof a bandinfo .
Example
<window id="win">
<zscript>
<![CDATA[
import java.util.Date;
import java.util.TimeZone;
TimeZone zone=TimeZone.getTimeZone("GMT-05");
Date current=new Date(Date.parse("Jun 28 2010 00:00:00 GMT-0500"));
//for hotzone of band #1
Date d1=new Date(Date.parse("Nov 01 2010 00:00:00 GMT-0500"));
Date d2=new Date(Date.parse("Dec 01 2010 00:00:00 GMT-0500"));
Date d3=new Date(Date.parse("Nov 02 2010 00:00:00 GMT-0500"));
Date d4=new Date(Date.parse("Nov 04 2010 00:00:00 GMT-0500"));
Date d5=new Date(Date.parse("Nov 02 2010 06:00:00 GMT-0500"));
Date d6=new Date(Date.parse("Nov 02 2010 12:00:00 GMT-0500"));
//for hotzone of band #2
Date d7=new Date(Date.parse("Nov 01 2010 00:00:00 GMT-0500"));
Date d8=new Date(Date.parse("Dec 01 2010 00:00:00 GMT-0500"));
]]>
</zscript>
<timeline height="300px" width="100%">
<bandinfo width="70%" id="b1" intervalUnit="month"
intervalPixels="100"
timeZone="${zone}" date="${current}">
<hotzone start="${d1}" end="${d2}" magnify="10" unit="week" />
<hotzone start="${d3}" end="${d4}" magnify="7" unit="day" />
<hotzone start="${d5}" end="${d6}" magnify="5" unit="hour" />
</bandinfo>
<bandinfo timeZone="${zone}" date="${current}"
width="30%" intervalUnit="year" intervalPixels="200"
syncWith="b1">
<hotzone start="${d7}" end="${d8}" magnify="20" unit="week" />
</bandinfo>
</timeline>
</window>
Supported Events
None | None |
- Inherited Supported Events: XulElement
Supported Children
*NONE
Use Cases
Version History
Version | Date | Content |
---|---|---|