Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## multivalent.gui
Class VEntry

    java.lang.Object
      multivalent.VObject
          multivalent.Node
              multivalent.INode
                  multivalent.IScrollPane
                      multivalent.gui.VTextArea
                          multivalent.gui.VEntry

All Implemented Interfaces:
  java.lang.Cloneable

public class VEntry
extends VTextArea

Single-line editable text field. Like `VTextArea`, except typing Return invokes SCRIPT attribute, if any.

Version:
  $Revision: 1.2 $ $Date: 2002/01/27 02:01:06 $

Field Summary

Fields inherited from class multivalent.IScrollPane
`editable, hchars_, ibbox, MSG_FORMATTED, MSG_SCROLL_TO, wchars_`

Fields inherited from class multivalent.INode
`border, INSETS, INSETS_ZERO, margin, padding`

Fields inherited from class multivalent.Node
`align, ALIGN_INVALID, ATTR_ID, ATTR_SCRIPT, baseline, BASELINE, bbox, BOTH, BOTTOM, CENTER, CHAR, FILL, floats, INHERIT, JUSTIFY, LEFT, MAXNONSTRUCTDEPTH, MIDDLE, name_, NONE, observers_, parent_, PROBEWIDTH, RIGHT, sticky_, stickycnt_, TOP, valid_, valign`

Fields inherited from class multivalent.VObject
`attr_`

Constructor Summary
`VEntry(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent)`
`VEntry(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent, int widthchars, java.lang.String initcontent)`

Method Summary
`boolean` | `eventNode(java.awt.AWTEvent e, java.awt.Point rel)` Typing return invokes SCRIPT attribute, if any.
`int` | `getWidthChars()`
`void` | `invoke()` Before executing the script, the Entry's content is collected as the TEXT entry to this widget, where it can be referred to by the script as "$TEXT".
`void` | `setContent(java.lang.String text)`
`void` | `setWidthChars(int widthchars)`

Methods inherited from class multivalent.gui.VTextArea
`breakAfter, breakBefore, fixContent, formatNode, getContent, paintNode`

Methods inherited from class multivalent.IScrollPane
`checkRep, dump, dx, dy, getHsb, getIScrollPane, getVsb, paintBeforeAfter, scrollBy, scrollTo, scrollTo, setScrollbarShowPolicy, setSizeChars`

Methods inherited from class multivalent.INode
`addCategory, appendChild, childAt, childNum, clipboardNode, clone, contains, eventBeforeAfter, findDFS, formatBeforeAfter, getElementById, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getNextSibling, getPreviousSibling, insertChildAt, isStruct, markDirtySubtreeDown, removeAllChildren, removeChild, removeChildAt, setChildAt, setName, size, structChildAt, structChildNum, structsize`

Methods inherited from class multivalent.Node
`addObserver, addSticky, addSticky, childNum, clipboardBeforeAfter, cmp, commonAncestor, commonAncestor, contains, deleteObserver, dump, dump, findBFS, findBFS, findBFS, findDFS, findDFS, findDFS, getAbsLocation, getActivesAt, getActivesAt, getActivesAt, getBbox, getBrowser, getDocument, getName, getNextLeaf, getNextNode, getNodeName, getObservers, getParentNode, getPrevLeaf, getPrevNode, getRelLocation, getRoot, getSticky, indexSticky, intersects, isLeaf, isValid, markDirty, markDirtySubtree, markDirtyTo, morphInto, reformat, remove, removeSticky, removeSticky, removeTidy, repaint, repaint, repaint, repaint, scrollTo, scrollTo, setParentNode, setValid, sizeSticky, spanChunky, spanChunky, structChildNum, toString`

Methods inherited from class multivalent.VObject
`attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### VEntry

    public VEntry(java.lang.String name,
                  java.util.Map<java.lang.String,java.lang.Object> attr,
                  INode parent,
                  int widthchars,
                  java.lang.String initcontent)

### VEntry

    public VEntry(java.lang.String name,
                  java.util.Map<java.lang.String,java.lang.Object> attr,
                  INode parent)

Method Detail

### setContent

    public void setContent(java.lang.String text)

### getWidthChars

    public int getWidthChars()

### setWidthChars

    public void setWidthChars(int widthchars)

### eventNode

    public boolean eventNode(java.awt.AWTEvent e,
                             java.awt.Point rel)

  Typing return invokes SCRIPT attribute, if any.

  Overrides:
    `eventNode` in class `VTextArea`
  See Also:
    `TreeEvent`, `SemanticEvent`

### invoke

    public void invoke()

  Before executing the script, the Entry's content is collected as the TEXT entry to this widget, where it can be referred to by the script as "$TEXT".

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD