📄 flow.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_11) on Tue Oct 23 19:38:41 EEST 2007 --><TITLE>Flow (Widsets API)</TITLE><META NAME="keywords" CONTENT="Flow class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="Flow (Widsets API)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../widsets/api/FailureCallback.html" title="interface in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/Font.html" title="class in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?widsets/api/Flow.html" target="_top"><B>FRAMES</B></A> <A HREF="Flow.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_Component">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1"></FONT><BR>Class Flow</H2><PRE> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../widsets/api/Object.html" title="class in ">Object</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../widsets/api/Component.html" title="class in ">Component</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>Flow</B></PRE><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../widsets/api/View.html" title="class in ">View</A></DD></DL><HR><DL><DT><PRE> class <B>Flow</B><DT>extends <A HREF="../../widsets/api/Component.html" title="class in ">Component</A></DL></PRE><P>Flow is a container class for other user interface <A HREF="../../widsets/api/Component.html" title="class in "><CODE>Component</CODE></A>s. As the name suggests the Flow uses HTML like layout management where child components are laid out to "lines". Components need to have <A HREF="../../widsets/api/API.html#VISIBLE"><CODE>VISIBLE</CODE></A> flag in order for them to appear on screen. Contents of this container are accessed and manipulated with: <ul> <li><A HREF="../../widsets/api/Component.html#size()"><CODE>Component.size()</CODE></A>, <li><A HREF="../../widsets/api/Component.html#first()"><CODE>Component.first()</CODE></A> <li><A HREF="../../widsets/api/Component.html#last()"><CODE>Component.last()</CODE></A> <li><A HREF="../../widsets/api/Component.html#indexOf(Component)"><CODE>Component.indexOf(Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#get(int)"><CODE>Component.get(int)</CODE></A> <li><A HREF="../../widsets/api/Component.html#set(int, Component)"><CODE>Component.set(int, Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#insert(int, Component)"><CODE>Component.insert(int, Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#add(Component)"><CODE>Component.add(Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#remove(int)"><CODE>Component.remove(int)</CODE></A> <li><A HREF="../../widsets/api/Component.html#remove(Component)"><CODE>Component.remove(Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#operator_get(int)"><CODE>Component.operator_get(int)</CODE></A> <li><A HREF="../../widsets/api/Component.html#operator_set(int, Component)"><CODE>Component.operator_set(int, Component)</CODE></A> <li><A HREF="../../widsets/api/Component.html#clear()"><CODE>Component.clear()</CODE></A> </ul> </p> <p>A line break occurs on the following conditions: <ul> <li>After a child component if it has <A HREF="../../widsets/api/API.html#LINEFEED"><CODE>LINEFEED</CODE></A> flag on. <li>With <A HREF="../../widsets/api/API.html#WRAP"><CODE>WRAP</CODE></A> flag on, the linefeed will occur if the child component would otherwise exceed the space horizontally available space for Flow. </ul> </p> <p> All flags are: <ul> <li><A HREF="../../widsets/api/API.html#VISIBLE"><CODE>VISIBLE</CODE></A> <li><A HREF="../../widsets/api/API.html#LINEFEED"><CODE>LINEFEED</CODE></A> <li><A HREF="../../widsets/api/API.html#WRAP"><CODE>WRAP</CODE></A> <li><A HREF="../../widsets/api/API.html#FOCUSABLE"><CODE>FOCUSABLE</CODE></A> </ul> </p> <p>Flow has following special style customizations: <ul> <li><code>hspacing</code>: Horizontal spacing between components <li><code>vspacing</code>: Vertical spacing between lines <li><code>align</code>: Horizontal alignment controls how the components are aligned on lines and vertical alignment controls how the lines are aligned on the area available for Flow.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -