⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 course4.htm

📁 JAVA开发手册,查询JAVASDK的函数!
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<p>返回HTML字符串,如果没有的话就返回null。</p>
<p>请参阅:setHTML</p>
<p>DhRawHTML.setHTML</p>
<p>将HTML字符串输出到文档中。</p>
<p class="title_2">语法</p>
<p>public void setHTML( String html )</p>
<p class="title_2">参数</p>
<p>html</p>
<p>要输出的字符串。</p>
<p>请参阅:getHTML</p>
<hr><p class="title_1"><a name="DhResetButton类">DhResetButton类</a></p>
<p>实现了HTTP表单提交上的重置按钮控件。</p>
<pre>Component
  |
  +-- DhStyleBase
     |
     +--DhElement
        |
        +--DhButtonBase
           |
           +--DhResetButton</pre>
<p>package com.ms.wfc.html</p>
<p>public class.DhResetButton</p>
<p>extends DhButtonBase</p>
<p class="title_2">说明</p>
<p>该按钮将表单上所有的控件都设置为初始化时的数值。给DhForm对象增加一个DhResetButton对象将使得DhForm成为HTML Form元件。有关Form元件的详细信息,包括重置和提交按钮,可以参考InternetClient SDK文档。该文档位于MSDN光盘上Internet/Intranet/ExtranetServices目录下的Platform SDK一节。也可以在MSDN在线SDK文档中找到(http://www.microsoft.com/msdn/sdk/inetsdk /help)。</p>
<p>请参阅:DhForm,DhSubmitButton</p>
<p class="title_2">构造器:</p>
<p>DhResetButton. DhResetButton</p>
<p>创建一个DhResetButton对象。</p>
<p class="title_2">语法</p>
<p>public DhResetButton ()</p>
<p>public DhResetButton ( String caption )</p>
<p class="title_2">参数</p>
<p>caption</p>
<p>新设置按钮的标题。</p>
<p class="title_2">说明</p>
<p>缺省构造器:创建的重置按钮标题为 揜eset敗7椒―</p>
<p>DhResetButton.getText</p>
<p>检取按钮当前的文本标题。</p>
<p class="title_2">语法</p>
<p>public String getText ()</p>
<p class="title_2">返回值</p>
<p>返回按钮标题。</p>
<p>请参阅:setText</p>
<p>DhResetButton.setText</p>
<p>设置按钮标题。</p>
<p class="title_2">语法</p>
<p>public void setText (String strCaption )</p>
<p class="title_2">参数</p>
<p>strCaption</p>
<p>新标题字符串。</p>
<p>请参阅:getText</p>
<hr><p class="title_1"><a name="DhRow类">DhRow类</a></p>
<p>在DhTable类中实现一新行。</p>
<pre>DhElement
  | 
  +--DhBaseContainer
     |
     +-- DhRow</pre>
<p>package com.ms.wfc.html</p>
<p>public class DhRow</p>
<p>extends DhBaseContainer</p>
<p class="title_2">构造器:</p>
<p>创建一个DhRow对象。</p>
<p class="title_2">语法</p>
<p>public DhRow()</p>
<p class="title_2">说明</p>
<p>该构造器创建一空行。</p>
<p class="title_2">方法</p>
<p>DhRow.add</p>
<p>为该行的末尾追加一个单元。</p>
<p class="title_2">语法</p>
<p>public void add ( DhCell cell )</p>
<p class="title_2">参数</p>
<p>cell</p>
<p>要追加到该行的DhCell。</p>
<p>DhRow.addOnGotFocus</p>
<p>为gotFocus事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnGotFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件收到输入焦点时就调用代理所指定的方法。</p>
<p>请参阅:removeOnGotFocus</p>
<p>DhRow.addOnLostFocus</p>
<p>为lostFocus事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnLostFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件失去输入焦点时就调用代理所指定的方法。DhRow.addOnResize为resize事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnResize ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件改变大小时就调用代理所指定的方法。</p>
<p>请参阅:removeOnResize</p>
<p>DhRow.getCell</p>
<p>返回单元的顺序位置(序号)。</p>
<p class="title_2">语法</p>
<p>public DhCell getCell ( int nCol )</p>
<p class="title_2">参数</p>
<p>nClo单元所在列的次序位置。</p>
<p class="title_2">返回值</p>
<p>返回单元的位置nCol。如果该位置没有单元,就返回null。</p>
<p>DhRow.getCells</p>
<p>返回本行中的单元矩阵。</p>
<p class="title_2">语法</p>
<p>public DhCell[] getCells()</p>
<p class="title_2">返回值</p>
<p>返回DhCell对象矩阵。如果该位置没有单元,就返回null。</p>
<p>DhRow.getColumnCount</p>
<p>返回本上列的数目。</p>
<p class="title_2">语法</p>
<p>public int getColumnCount ()</p>
<p class="title_2">返回值</p>
<p>返回列的数目。</p>
<p>DhRow.getRecordNumber</p>
<p>检取当前行所显示记录的序号。</p>
<p class="title_2">语法</p>
<p>public int getRecordNumber ()</p>
<p class="title_2">返回值</p>
<p>返回该行记录的绝对序号。如果该行没有绑定数据,就返回-1。</p>
<p class="title_2">说明</p>
<p>只有单元绑定了数据之后该方法才是有效的。</p>
<p>DhRow.getRowNumber</p>
<p>如果当前是在一个表格中就返回行号。</p>
<p class="title_2">语法</p>
<p>public int getRowNumber ()</p>
<p class="title_2">返回值</p>
<p>返回行号。如果该行不在表格中,就返回-1。</p>
<p>DhRow.remove</p>
<p>从行中删除单元。</p>
<p class="title_2">语法</p>
<p>public int remove ( DhCell cell )</p>
<p class="title_2">参数</p>
<p>cell</p>
<p>要删除的DhCell。</p>
<p class="title_2">返回值</p>
<p>如果成功地删除了该单元,就返回true;否则就返回false。</p>
<p>DhRow.removeOnGotFocus</p>
<p>删除为gotFocus事件指定的代理。</p>
<p class="title_2">语法</p>
<p>public final void removeOnGotFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>要删除的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件收到输入焦点时就触发gotFocus事件。</p>
<p>请参阅:addOnGotFocus</p>
<p>DhRow. removeOnLostFocus</p>
<p>删除为lostFocus事件指定的代理。</p>
<p class="title_2">语法</p>
<p>public final void removeOnLostFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>要删除的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件失去输入焦点时就触发lostFocus事件。</p>
<p>请参阅:addOnLostFocus</p>
<p>DhRow. removeOnResize</p>
<p>删除为resize事件指定的代理。</p>
<p class="title_2">语法</p>
<p>public final void removeOnResize ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>要删除的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当该容器失去输入焦点时就触发resize事件。</p>
<p>请参阅:addOnResize</p>
<hr><p class="title_1"><a name="DhScrollBars类">DhScrollBars类</a></p>
<p>定义滚动杆常量。</p>
<pre>Enum
   |
   +-- DhScrollBars</pre>
<p>package com.ms.wfc.html</p>
<p>public class DhScrollBars</p>
<p>extends Enum</p>
<p class="title_2">说明</p>
<p>DhDocument, DhInlineFrame和DhWindows类中的getScroll和</p>
<p>setScroll方法使用这些常量。</p>
<p class="title_2">字段</p>
<p>DhScrollBars.AUTO</p>
<p>指明浏览器在需要的时候将增加滚动杆。</p>
<p class="title_2">语法</p>
<p>public static final int AUTO;</p>
<p>DhScrollBars.NO</p>
<p>指明禁止滚动。</p>
<p class="title_2">语法</p>
<p>public static final int NO;</p>
<p>DhScrollBars.YES</p>
<p>指明允许滚动操作。</p>
<p class="title_2">语法</p>
<p>public static final int YES;</p>
<p class="title_2">方法</p>
<p>DhScrollBars.valid</p>
<p>确定所指定的值是否是该枚举类中的有效值。</p>
<p class="title_2">语法</p>
<p>public static boolean valid ( int n)</p>
<p class="title_2">参数</p>
<p>n</p>
<p>要检查的值。</p>
<p class="title_2">返回值</p>
<p>如果该值有效就返回true;否则,就返回false。</p>
<p class="title_2">说明</p>
<p>你应该在自己派生的类中覆盖该方法。</p>
<hr><p class="title_1"><a name="DhSelectBox类">DhSelectBox类</a></p>
<p>表示DhComboBox和DhListBox控件的基类。</p>
<pre>Component
 |
 +-- DhStyleBase
    |
    +--DhElement
       |
       +--DhBaseContainer
          |
          +-- DhSelectBox</pre>
<p>package com.ms.wfc.html</p>
<p>public abstract class DhSelectBox</p>
<p>extends DhBaseContainer</p>
<p class="title_2">说明</p>
<p>基类不能实化。</p>
<p class="title_2">方法</p>
<p>DhSelectBox.addItem给列表末尾追加一项。</p>
<p class="title_2">语法</p>
<p>public void addItem ( String strText )</p>
<p>public void addItem ( String strText, boolean fSelected )</p>
<p>public void addItem ( String strText , boolean fSelected, String</p>
<p>strValue )</p>
<p class="title_2">参数</p>
<p>strText</p>
<p>新项的文本。</p>
<p>fSelected设置该项的选择状态。如果该项处于选择状态,就设置为true;</p>
<p>否则就设置为false。</p>
<p>strValue</p>
<p>设置该项的VALUE属性。对于HTTP表单提交字符串来说是很</p>
<p>有用的。</p>
<p class="title_2">说明</p>
<p>将项追加到列表的末尾。</p>
<p>请参阅:removeItem</p>
<p>DhSelectBox.addOnGotFocus</p>
<p>为gotFocus事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnGotFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件收到输入焦点时就调用代理所指定的方法。</p>
<p>请参阅:removeOnGotFocus</p>
<p>DhSelectBox.addOnLostFocus</p>
<p>为lostFocus事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnLostFocus ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件失去输入焦点时就调用代理所指定的方法。</p>
<p>请参阅:removeOnLostFocus</p>
<p>DhSelectBox.addOnResize</p>
<p>为resize事件指定一个代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnResize ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当元件改变大小时就调用代理所指定的方法。</p>
<p>请参阅:removeOnReszie</p>
<p>DhSelectBox.addOnSelectedIndexChanged</p>
<p>给selectIndexChanged事件增加代理。</p>
<p class="title_2">语法</p>
<p>public final void addOnSelectedIndexChanged ( EventHandler h )</p>
<p class="title_2">参数</p>
<p>h</p>
<p>当事件发生时要通知的EventHandler代理。</p>
<p class="title_2">说明</p>
<p>当改变当前选择的元件时就调用代理所指定的方法。</p>
<p>请参阅:removeOnSelectedIndexChanged</p>
<p>DhSelectBox.findString寻找列表中以指定字符串开头的第一项。</p>
<p class="title_2">语法</p>
<p>public int findString ( String s )</p>
<p>public final int findString ( String s, int startIndex )</p>
<p class="title_2">参数</p>
<p>s</p>
<p>要匹配的字符串。任何以指定字符开头的字符串都认为是匹配</p>
<p>的。</p>
<p>startIndex</p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -