【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-TextArea.java,希望本篇文章对您学习有所帮助。
// ===========================================================================
// Copyright (c) 1996 Mort Bay Consulting Pty. Ltd. All rights reserved.
// $Id: TextArea.java,v 1.3 2000/11/19 01:37:50 gregwilkins Exp $
// ---------------------------------------------------------------------------
package com.mortbay.HTML;
/* -------------------------------------------------------------------- */
/** A Text Area within a form.
* <p> The text in the TEXTAREA is handled by the super class, Text
* @see com.mortbay.HTML.Text
*/
public class TextArea extends Block
{
/* ----------------------------------------------------------------- */
/** @param name The name of the TextArea within the form */
public TextArea(String name)
{
super("TEXTAREA");
attribute("NAME",name);
}
/* ----------------------------------------------------------------- */
/** @param name The name of the TextArea within the form
* @param s The string in the text area */
public TextArea(String name, String s)
{
this(name);
add(s);
}
/* ----------------------------------------------------------------- */
public TextArea setSize(int chars,int lines)
{
attribute("ROWS",lines);
attribute("COLS",chars);
return this;
}
}
上一篇:
TextAnonymity.java
下一篇:
哈弗F7 VS名爵HS,谁更懂得年轻人的心?