[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simpeg
/
zapatec
/
zptime
/
zptime
/
jsdocs
/
Zapatec
/
[
Home
]
File: TimeSelect.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <TITLE> Zapatec.TimeSelect </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> </HEAD> <SCRIPT> function asd() { parent.document.title="Zapatec.TimeSelect"; } </SCRIPT> <BODY BGCOLOR="white" onload="asd();"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">File</FONT> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"--> <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!-- </TD--> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"--><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <B>Zapatec Time</B> </EM> </TD </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <B>PREV CLASS</B><!-- NEXT CLASS --> <B>NEXT CLASS</B></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2>Class Zapatec.TimeSelect</H2> <PRE>Object | +--<b>Zapatec.TimeSelect</b> </PRE> <HR> <DL> <!-- Class definition --> <DT>class <B>Zapatec.TimeSelect</B> </DL> <HR> <!-- ======== NESTED CLASS SUMMARY ======== --> <!-- ======== END NESTED CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <!-- This is one instance field summary --> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE><static> Object</CODE></FONT></TD> <TD><CODE><B><A HREF="#!s!id">id</A></B></CODE> <BR> </TD> </TR> </TABLE> <!-- =========== END FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <!-- ======== END CONSTRUCTOR SUMMARY ======== --> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> number</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#_getStep">_getStep</A></B>(part, direction) </CODE> <BR> Gets the step for the given part arrow. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#_roundDate">_roundDate</A></B>(date) </CODE> <BR> Rounds the date due to the timeInterval. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#_toggleShift">_toggleShift</A></B>() </CODE> <BR> Toggles shift and hilighting. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#_updateControls">_updateControls</A></B>() </CODE> <BR> Updates controls, meaning that it will toggle(disable or enable) all controls due to timeStatus and timeInterval. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#_updateTime">_updateTime</A></B>() </CODE> <BR> Update the time displayed. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#changeState">changeState</A></B>(state) </CODE> <BR> Changes the state of the widget, firing all the events planned </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#checkDate">checkDate</A></B>(date) </CODE> <BR> Checks the status of the given date. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#configure">configure</A></B>(config) </CODE> <BR> Sets the default configuration of the object and inits it with user defined values. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#create">create</A></B>() </CODE> <BR> This function appends the loaded structure to the parent element, sets all the parameters of the visual elements. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#fireOnState">fireOnState</A></B>(state, func) </CODE> <BR> Checks if needed state was reached and tryes to fire function exactly when it needs. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#getContainer">getContainer</A></B>() </CODE> <BR> Gets the container. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> number</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#getHours">getHours</A></B>() </CODE> <BR> Gets hours selected. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> number</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#getMinutes">getMinutes</A></B>() </CODE> <BR> Gets minutes selected. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> number</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#getSeconds">getSeconds</A></B>() </CODE> <BR> Gets seconds selected. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#hideButton">hideButton</A></B>(button) </CODE> <BR> Hides the specified button of the window. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#hideControl">hideControl</A></B>(control) </CODE> <BR> Hides the given control. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#init">init</A></B>(config) </CODE> <BR> This function inits the config object and loads HTML structure of the time selector, not to waste time :) </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#loadDataHtml">loadDataHtml</A></B>(el) </CODE> <BR> We overwrite the zpwidgets loadDataHtml method to parse needed values from given HTML source. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#parseDom">parseDom</A></B>(el) </CODE> <BR> Parses given DOM element to save references into objects properties. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#reconfig">reconfig</A></B>() </CODE> <BR> Reconfigurating the object due to the config options. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#reconfigure">reconfigure</A></B>(config) </CODE> <BR> Reconfigures the object with new parameters. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#setFirstEnabledTime">setFirstEnabledTime</A></B>() </CODE> <BR> Sets the first enabled time. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> boolean</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#setHours">setHours</A></B>(hours) </CODE> <BR> Sets hours of our date object and updates view. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> boolean</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#setMinutes">setMinutes</A></B>(minutes) </CODE> <BR> Sets minutes of our date object and updates view. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> boolean</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#setSeconds">setSeconds</A></B>(seconds) </CODE> <BR> Sets seconds of our date object and updates view. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> boolean</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#setTime">setTime</A></B>(date, replace) </CODE> <BR> Sets the time from the given date and replaces config.date with it if copy parameter is false. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#showButton">showButton</A></B>(button) </CODE> <BR> Shows the specified button of the window. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> void</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#showControl">showControl</A></B>(control) </CODE> <BR> Shows the given control. </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"> <FONT SIZE="-1"> <CODE> Object</CODE> </FONT> </TD> <TD> <CODE> <B> <A HREF="#stateReached">stateReached</A></B>(state) </CODE> <BR> This method tells you wether the state you need was reached or maybe already passed. </TD> </TR> </TABLE> <P> <!-- ========== END METHOD SUMMARY =========== --> <!-- ============ FIELD DETAIL START =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="!s!id"><!-- --></A> <H3>id</H3> <PRE><static> Object <B>id</B></PRE> <UL> </UL> <HR> <!-- ============ FIELD DETAIL END =========== --> <!-- ========= CONSTRUCTOR DETAIL START ======== --> <!-- Constructor return value(s) --> <!-- End constructor return value(s) --> <!-- ADDITIONAL ATTRIBUTES --> <HR/> <!-- END ADDITIONAL ATTRIBUTES --> <!-- ========= CONSTRUCTOR DETAIL END ======== --> <!-- ============ METHOD DETAIL START ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT> </TD> </TR> </TABLE> <!-- One single method detail entry --> <A NAME="_getStep"><!-- --></A> <H3>_getStep</H3> <PRE>number <B>_getStep</B>(part, direction)</PRE> <UL>Gets the step for the given part arrow. Other buttons can not have step.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>part</CODE> - {string} string identifying part. </UL> <UL><CODE>direction</CODE> - {string} string "plus" or "minus" </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> step for this part. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="_roundDate"><!-- --></A> <H3>_roundDate</H3> <PRE>void <B>_roundDate</B>(date)</PRE> <UL>Rounds the date due to the timeInterval. Affects the object itself, so does not returns anything.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>date</CODE> - {object} date object to round. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="_toggleShift"><!-- --></A> <H3>_toggleShift</H3> <PRE>void <B>_toggleShift</B>()</PRE> <UL>Toggles shift and hilighting.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="_updateControls"><!-- --></A> <H3>_updateControls</H3> <PRE>void <B>_updateControls</B>()</PRE> <UL>Updates controls, meaning that it will toggle(disable or enable) all controls due to timeStatus and timeInterval.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="_updateTime"><!-- --></A> <H3>_updateTime</H3> <PRE>void <B>_updateTime</B>()</PRE> <UL>Update the time displayed.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="changeState"><!-- --></A> <H3>changeState</H3> <PRE>Object <B>changeState</B>(state)</PRE> <UL>Changes the state of the widget, firing all the events planned</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>state</CODE> - [string] - state to set. </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if succeeds, otherwise false </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="checkDate"><!-- --></A> <H3>checkDate</H3> <PRE>Object <B>checkDate</B>(date)</PRE> <UL>Checks the status of the given date.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>date</CODE> - {object} date object to check. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="configure"><!-- --></A> <H3>configure</H3> <PRE>void <B>configure</B>(config)</PRE> <UL>Sets the default configuration of the object and inits it with user defined values.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>config</CODE> - {object} configuration parameters. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="create"><!-- --></A> <H3>create</H3> <PRE>Object <B>create</B>()</PRE> <UL>This function appends the loaded structure to the parent element, sets all the parameters of the visual elements. All its actions are closely connected with config options.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="fireOnState"><!-- --></A> <H3>fireOnState</H3> <PRE>Object <B>fireOnState</B>(state, func)</PRE> <UL>Checks if needed state was reached and tryes to fire function exactly when it needs.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>state</CODE> - [string] - required state; </UL> <UL><CODE>func</CODE> - [function] - function needed to be fired </UL> <UL><CODE>first</CODE> - [boolean] - should it go first </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if the state was already reached </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="getContainer"><!-- --></A> <H3>getContainer</H3> <PRE>Object <B>getContainer</B>()</PRE> <UL>Gets the container.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="getHours"><!-- --></A> <H3>getHours</H3> <PRE>number <B>getHours</B>()</PRE> <UL>Gets hours selected.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> hours. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="getMinutes"><!-- --></A> <H3>getMinutes</H3> <PRE>number <B>getMinutes</B>()</PRE> <UL>Gets minutes selected.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> hours. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="getSeconds"><!-- --></A> <H3>getSeconds</H3> <PRE>number <B>getSeconds</B>()</PRE> <UL>Gets seconds selected.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> hours. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="hideButton"><!-- --></A> <H3>hideButton</H3> <PRE>void <B>hideButton</B>(button)</PRE> <UL>Hides the specified button of the window.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>button</CODE> - {string} string pointing to button name. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="hideControl"><!-- --></A> <H3>hideControl</H3> <PRE>void <B>hideControl</B>(control)</PRE> <UL>Hides the given control.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>control</CODE> - {string} string representing control. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="init"><!-- --></A> <H3>init</H3> <PRE>void <B>init</B>(config)</PRE> <UL>This function inits the config object and loads HTML structure of the time selector, not to waste time :)</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>config</CODE> - [object] - object which holds the configuration, same as for constructor </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="loadDataHtml"><!-- --></A> <H3>loadDataHtml</H3> <PRE>void <B>loadDataHtml</B>(el)</PRE> <UL>We overwrite the zpwidgets loadDataHtml method to parse needed values from given HTML source.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>el</CODE> - [HTML element] - DOM representation of or HTML part. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="parseDom"><!-- --></A> <H3>parseDom</H3> <PRE>Object <B>parseDom</B>(el)</PRE> <UL>Parses given DOM element to save references into objects properties. All the elements to be saved as a reference had to have a word starting with 'area' in there class name. So for example an element with class name areaTitle will be parsed into this.title property and those className will be removed.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>el</CODE> - [HTML element] - element to parse; </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> - true if success, otherwise false; </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="reconfig"><!-- --></A> <H3>reconfig</H3> <PRE>void <B>reconfig</B>()</PRE> <UL>Reconfigurating the object due to the config options.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="reconfigure"><!-- --></A> <H3>reconfigure</H3> <PRE>void <B>reconfigure</B>(config)</PRE> <UL>Reconfigures the object with new parameters.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>config</CODE> - {object} new configuration parameters. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="setFirstEnabledTime"><!-- --></A> <H3>setFirstEnabledTime</H3> <PRE>void <B>setFirstEnabledTime</B>()</PRE> <UL>Sets the first enabled time.</UL> <!-- METHOD PARAMETERS START --> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="setHours"><!-- --></A> <H3>setHours</H3> <PRE>boolean <B>setHours</B>(hours)</PRE> <UL>Sets hours of our date object and updates view.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>hours</CODE> - {number} the number to be set as new hours. </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if success, otherwise false. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="setMinutes"><!-- --></A> <H3>setMinutes</H3> <PRE>boolean <B>setMinutes</B>(minutes)</PRE> <UL>Sets minutes of our date object and updates view.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>minutes</CODE> - {number} the number to be set as new minutes. </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if success, otherwise false. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="setSeconds"><!-- --></A> <H3>setSeconds</H3> <PRE>boolean <B>setSeconds</B>(seconds)</PRE> <UL>Sets seconds of our date object and updates view.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>seconds</CODE> - {number} the number to be set as new seconds. </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if success, otherwise false. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="setTime"><!-- --></A> <H3>setTime</H3> <PRE>boolean <B>setTime</B>(date, replace)</PRE> <UL>Sets the time from the given date and replaces config.date with it if copy parameter is false.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>date</CODE> - {object} date object. </UL> <UL><CODE>replace</CODE> - {boolean} should we replace date object or just copy time. </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> true if success, otherwise false. </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="showButton"><!-- --></A> <H3>showButton</H3> <PRE>void <B>showButton</B>(button)</PRE> <UL>Shows the specified button of the window.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>button</CODE> - {string} string pointing to button name. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="showControl"><!-- --></A> <H3>showControl</H3> <PRE>void <B>showControl</B>(control)</PRE> <UL>Shows the given control.</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>control</CODE> - {string} string representing control. </UL> </UL> <!-- METHOD PARAMETERS END --> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <A NAME="stateReached"><!-- --></A> <H3>stateReached</H3> <PRE>Object <B>stateReached</B>(state)</PRE> <UL>This method tells you wether the state you need was reached or maybe already passed. Right now we have following states: 'destroyed' - the object was destroyed; 'created' - the instance of the object was created; 'inited' - the object was inited (this include initing all variables, calling parent init and starting loading structure); 'loaded' - the structure is loaded and parsed; 'ready' - object has all the parts ready for work; 'hidden' - object is visually hidden; 'shown' - object is visible;</UL> <!-- METHOD PARAMETERS START --> <UL> <B>Parameters:</B> <UL><CODE>state</CODE> - [string] - the name of the state you need to check; </UL> </UL> <!-- METHOD PARAMETERS END --> <UL> <B>Returns:</B> <UL> - true if the state was reached or already passed, otherwise false </UL> </UL> <!-- ADDITIONAL ATTRIBUTES START --> <!-- ADDITIONAL ATTRIBUTES END --> <HR> <!-- ============ METHOD DETAIL END ========== --> <!-- ========= END OF CLASS DATA ========= --> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">File</FONT> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-tree.html"><FONT CLASS="NavBarFont1"><b>Tree</b></FONT></A> </TD> <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"--> <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!-- </TD--> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <B>Zapatec Time</B> </EM> </TD </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <B>PREV CLASS</B><!-- NEXT CLASS --> <B>NEXT CLASS</B></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <FONT SIZE="-1"> </FONT> <div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Thu Aug 16 12:19:05 2007</div> </BODY> </HTML>