<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>

新聞中心

EEPW首頁(yè) > 嵌入式系統 > 設計應用 > 用Eclipse開(kāi)發(fā)iPhone Web 應用程序

用Eclipse開(kāi)發(fā)iPhone Web 應用程序

作者:Adam Houghton , 高級軟件開(kāi)發(fā)人員 時(shí)間:2008-08-22 來(lái)源:21IC 中國電子網(wǎng) 收藏

  清單 2. 定制 textRow CSS 擴展以正確顯示靜態(tài)文本
 
  /* Adding a new row CSS style to iUi for displaying blocks of text */

本文引用地址:http://dyxdggzs.com/article/87266.htm

     position: relative;

    border-bottom: 1px solid #999999;

    -webkit-border-radius: 0;

    text-align: right;

  }

     text-align: left;

    margin: 5px 8px 5px 10px;

    padding: 0px 0px 0px 0px;

  }

   fieldset > .textRow:last-child {

    border-bottom: none !important;

  }

   清單 3 顯示了 java.math.BigDecimal 的一種構造方法的詳細信息頁(yè)面。


  清單 3. 使用 textRow 元素的 HTML 詳細信息頁(yè)面


  <div id="java.math.BigDecimal(long,java.math.MathContext)" title="BigDecimal"

        class="panel">

         <div class="textRow"><p><b>

           public BigDecimal(long, MathContext)</b></p></div>

        <div class="textRow"><p>Translates a

           <code>long</code> into a

        <code>BigDecimal</code>, with rounding according to the context settings.

        The scale of the <code>BigDecimal</code>, before any rounding, is zero.

     <h2>Parameters</h2>

         <div class="textRow"><p><b>long val

           </b>: <code>long</code> value to be converted

         to <code>BigDecimal</code>.</p></div>

        <div class="textRow"><p><b>MathContext mc

           </b>: the context to use.</p></div>

    <h2>Throws</h2>

         <div class="textRow"><p><b>ArithmeticException

           </b>: if the result is inexact but

    the rounding mode is <code>UNNECESSARY</code>.</p></div>

   </div>

   <fieldset> 標記內的所有內容都位于圓角矩形內,textRow <div> 用于分隔行。帶有 <h2> 標記的標題顯示為列表上方的組標簽。圖 10 顯示了最終頁(yè)面。


圖 10. java.math.BigDecimal 中的構造函數的詳細視圖
 

  擁有三個(gè)導航級別和目標詳細信息頁(yè)面后,UI 就完成了。iDoc 使用戶(hù)可以專(zhuān)注于具體任務(wù)。借助 iUi 框架和一些定制的 CSS,它看上去很像本機 。

  開(kāi)發(fā) iDoc

  現在已經(jīng)設計了 UI,接下來(lái)需要編寫(xiě)代碼來(lái)生成 HTML 文件。創(chuàng )建一個(gè)插入到 Sun 的 javadoc 命令中的簡(jiǎn)單 doclet。我們的示例將使用標準 java.* 包,但是 iDoc 可以從任何源代碼生成 Javadoc。使用 OpenJDK 源代碼,因為它可以公開(kāi)獲得并且 GNU Public License (GPL) V2 許可證允許我們生成和發(fā)布其 Javadoc。

  使用 iDoc,只需迭代包和類(lèi)并調用方法打印上述格式的靜態(tài) HTML 頁(yè)面。清單 4 顯示打印目標詳細信息頁(yè)面的方法。



關(guān)鍵詞: iPhone Web 應用程序 SDK Eclipse

評論


相關(guān)推薦

技術(shù)專(zhuān)區

關(guān)閉
国产精品自在自线亚洲|国产精品无圣光一区二区|国产日产欧洲无码视频|久久久一本精品99久久K精品66|欧美人与动牲交片免费播放
<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>