scrollable.html

来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 378 行 · 第 1/2 页

HTML
378
字号
<TH ALIGN="left"><B>Methods inherited from class <A HREF="../../widsets/api/Object.html" title="class in ">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../widsets/api/Object.html#toString()">toString</A>, <A HREF="../../widsets/api/Object.html#equals(Object)">equals</A>, <A HREF="../../widsets/api/Object.html#hashCode()">hashCode</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from </B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Scrollable(Style, Component)"><!-- --></A><H3>Scrollable</H3><PRE>       <B>Scrollable</B>(<A HREF="../../widsets/api/Style.html" title="class in ">Style</A>&nbsp;style,                  <A HREF="../../widsets/api/Component.html" title="class in ">Component</A>&nbsp;child)</PRE><DL><DD>Constructs a new scrollable region.<P><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - Style to use<DD><CODE>child</CODE> - Child component</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getViewSize()"><!-- --></A><H3>getViewSize</H3><PRE>         int,&nbsp;int <B>getViewSize</B>()</PRE><DL><DD>Returns a dimension of view port.<P><DD><DL><DT><B>Returns:</B><DD>Tuple containing <code>(int viewWidth, int viewHeight)</code></DL></DD></DL><HR><A NAME="getTotalSize()"><!-- --></A><H3>getTotalSize</H3><PRE>         int,&nbsp;int <B>getTotalSize</B>()</PRE><DL><DD>Returns a dimension of contained component.<P><DD><DL><DT><B>Returns:</B><DD>Tuple containing <code>(int childWidth, int childHeight)</code></DL></DD></DL><HR><A NAME="getPosition()"><!-- --></A><H3>getPosition</H3><PRE>         int,&nbsp;int <B>getPosition</B>()</PRE><DL><DD>Returns a a current position of view port. Position is a coordinate of pixel on top left corner of this Scrollable that is part of child Component.<P><DD><DL><DT><B>Returns:</B><DD>Tuple containing <code>(int xpos, int ypos)</code><DT><B>See Also:</B><DD><A HREF="../../widsets/api/Scrollable.html#setPosition(int, int)"><CODE>setPosition(int, int)</CODE></A></DL></DD></DL><HR><A NAME="setPosition(int, int)"><!-- --></A><H3>setPosition</H3><PRE>       void <B>setPosition</B>(int&nbsp;x,                        int&nbsp;y)</PRE><DL><DD>Sets a current position of view port. If the position changes the child component are animated to target position.<P><DD><DL><DT><B>See Also:</B><DD><A HREF="../../widsets/api/Scrollable.html#getPosition()"><CODE>getPosition()</CODE></A></DL></DD></DL><HR><A NAME="setScrollStep(int)"><!-- --></A><H3>setScrollStep</H3><PRE>       void <B>setScrollStep</B>(int&nbsp;step)</PRE><DL><DD>Sets scroll step size.  The scale of step varies from 1 to 100,  where 100 is a full height of this component,  and 1 being 1% from height of this component. This step is used by automatic scrolling triggered by focus changes. Default scoll step is 50.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>step</CODE> - Step size, in percents</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../widsets/api/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../widsets/api/Script.html" title="interface in "><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../widsets/api/ServiceCallback.html" title="interface in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?widsets/api/Scrollable.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Scrollable.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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