Jskad/extensions/calpa/Docs/html/guide-Forms-text.html
2003-07-05 22:13:17 +00:00

143 lines
4.2 KiB
HTML

<HTML>
<BODY bgcolor=ffffff>
<P>
<TABLE width=100% cellspacing=0 cellpadding=0>
<TR>
<TD>
<FONT size=-1><B>CalHTMLPane v2.0 Guide</B></FONT>
</TD>
<TD align=right>
<FONT size=-1><B>Example Tag Usage</B></FONT>
</TD>
</TR>
</TABLE>
<HR width=100% size=1 color=black>
<P>
<FONT size=+1><B>2: Forms</B></FONT>
<P>
<BLOCKQUOTE>
<P>
<B>Tag: INPUT (text)<BR>
Tag: INPUT (password)<BR>
Tag: TEXTAREA</B><BR>
<P>
<BLOCKQUOTE>
<TABLE border align=center width=100% cellpadding=12>
<TR>
<TD>
<B>Default Rendering (no color modification, size=18):</B>
<P>
<table align=center border=2 cellspacing=2 cellpadding=5 width=400 bgcolor=uicontrol>
<colgroup span=3 align=center>
</colgroup>
<tr><th>&nbsp;</th><th>uicontrol background</th><th>white background</th></tr>
<tr>
<td><B>lookandfeel</B>
<td><input type=text style=lookandfeel align=bottom></td>
<td bgcolor=white><input type=text style=lookandfeel align=bottom></td>
</tr>
<tr>
<td><B>threedee</B>
<td><input type=text style=threedee align=bottom></td>
<td bgcolor=white><input type=text style=threedee align=bottom></td>
</tr>
<tr>
<td><B>flush</B>
<td><input type=text style=flush align=bottom></td>
<td bgcolor=white><input type=text style=flush align=bottom></td>
</tr>
<tr><th>&nbsp;</th><th>light background</th><th>dark background</th></tr>
<tr>
<td><B>lookandfeel</B>
<td bgcolor=ddffdd><input type=text style=lookandfeel align=bottom></td>
<td bgcolor=6688aa><input type=text style=lookandfeel align=bottom></td>
</tr>
<tr>
<td><B>threedee</B>
<td bgcolor=ddffdd><input type=text style=threedee align=bottom></td>
<td bgcolor=6688aa><input type=text style=threedee align=bottom></td>
</tr>
<tr>
<td><B>flush</B>
<td bgcolor=ddffdd><input type=text style=flush align=bottom></td>
<td bgcolor=6688aa><input type=text style=flush align=bottom></td>
</tr>
</table>
<BR>
</TD></TR>
<TR><TD>
<B>Setting color attributes:</B>
<P>
<table align=center bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;TABLE border=2 cellspacing=2 cellpadding=5 bgcolor=gray&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;COLGROUP span=2 align=center&gt;&lt;/COLGROUP&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;</code>&lt;TH&gt;&lt;FONT color=white&gt;threedee&lt;/FONT&gt;&lt;/TH&gt;<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;</code>&lt;TH&gt;&lt;FONT color=white&gt;flush&lt;/FONT&gt;&lt;/TH&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;/TR&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;</code>&lt;TD&gt;&lt;TEXTAREA rows=4 style=threedee<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code>bgcolor=gray&gt;Some sample text&lt/TEXTAREA&gt;&lt;/TD&gt;<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;</code>&lt;TD&gt;&lt;TEXTAREA rows=4 style=flush bordercolor=maroon<BR>
<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code>text=yellow&gt;Some sample text&lt/TEXTAREA&gt;&lt;/TD&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;<BR>
&lt;/TABLE&gt;</FONT>
</td>
</tr>
</table>
<P>
</TR>
</TD>
<TR><TD>
<P>
<B>Rendering:</B>
<BR>
<table align=center border=2 cellspacing=2 cellpadding=5 bgcolor=gray>
<colgroup span=2 align=center>
</colgroup>
<tr><th><FONT color=white>threedee</FONT></th><th><FONT color=white>flush</FONT></th></tr>
<tr>
<td><textarea rows=4 style=threedee bgcolor=gray>Some sample text</textarea>
</td>
<td bgcolor=white><textarea rows=4 style=flush bordercolor=maroon text=yellow>Some sample text</textarea>
</td>
</tr>
</table>
<BR>
</TD>
</TR>
<TR>
<TD>
<B>Implementation Notes:</B><BR>
<UL>
<LI>Note that the background color of text components is set with the <B>bordercolor</B><BR>
attribute.
<LI>Input into textfields can be constrained using the <B>maxlength</B> attribute
<LI>Swing's JTextArea normally allows tabbing within it, but this has been changed<BR>
within the CalPane to allow for consistent keyboard navigation
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<TABLE align=center width=50%>
<TR>
<TD align=center>
<A href="../CalGuide.html">Guide Index</A> &nbsp;&#124;
<A href="../javadoc/overview-tree.html">&nbsp;JavaDoc</A> &nbsp;&#124;
<A href="guide-Forms-selection.html">&nbsp;Previous</A> &nbsp;&#124;
<A href="guide-Forms-buttontag.html">&nbsp;Next</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>