multivalent.gui

Class VTextArea

public class VTextArea extends IScrollPane

Editable area (not necessarily all text). Depends on other behaviors, such as BindingsDefault and BindingsEmacs, for key bindings, and other nodes to display content.

Content kept as subtree, available as string from getContent().

Version: $Revision: 1.3 $ $Date: 2003/06/02 05:21:29 $

Constructor Summary
VTextArea(String name, Map<String,Object> attr, INode parent)
VTextArea(String name, Map<String,Object> attr, INode parent, INode layout)
Method Summary
booleanbreakAfter()
booleanbreakBefore()
booleaneventNode(AWTEvent e, Point rel)
If no content, route mouse to 0-length leaf, so can click and type.
protected voidfixContent()
appendChild() adds to formatting node, which is VTextArea's first and only child, instead.
booleanformatNode(int width, int height, Context cx)
StringgetContent()
Collect up textual leaves into a space-separated String.
voidpaintNode(Rectangle docclip, Context cx)

Constructor Detail

VTextArea

public VTextArea(String name, Map<String,Object> attr, INode parent)

VTextArea

public VTextArea(String name, Map<String,Object> attr, INode parent, INode layout)

Parameters: layout INode, defaults to IParaBox. Content should be added to this node, which should be the single child of VTextArea.

Method Detail

breakAfter

public boolean breakAfter()

breakBefore

public boolean breakBefore()

eventNode

public boolean eventNode(AWTEvent e, Point rel)
If no content, route mouse to 0-length leaf, so can click and type.

fixContent

protected void fixContent()
appendChild() adds to formatting node, which is VTextArea's first and only child, instead.

formatNode

public boolean formatNode(int width, int height, Context cx)

getContent

public String getContent()
Collect up textual leaves into a space-separated String.

paintNode

public void paintNode(Rectangle docclip, Context cx)