multivalent.gui
Class VAlert
java.lang.Object
multivalent.VObject
multivalent.Node
multivalent.INode
multivalent.node.IVBox
multivalent.gui.VAlert
- All Implemented Interfaces:
- java.lang.Cloneable
- public class VAlert
- extends IVBox
Automatically sizes to include content as given by a URL, and horizontally centers in window, and has no window controls.
As in Apple's Aqua, Alerts are not free to roam about the screen, but rather are bound to the window to which they refer and hence remain clearly associate to it.
Remember that URL can be systemresource:/.
To this content is appended a horizontal rule and close button.
- Version:
- $Revision: 1.4 $ $Date: 2002/11/08 06:03:17 $
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 |
Constructor Summary |
VAlert(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent,
java.lang.String src)
|
VAlert(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent,
java.net.URI src)
|
Method Summary |
boolean |
eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
Block events to rest of tree. |
boolean |
formatNode(int width,
int height,
Context cx)
Children report dimensions (width and height), parent places at (x,y). |
Methods inherited from class multivalent.INode |
addCategory, appendChild, breakAfter, breakBefore, checkRep, childAt, childNum, clipboardNode, clone, contains, dump, dx, dy, eventBeforeAfter, findDFS, formatBeforeAfter, getElementById, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getNextSibling, getPreviousSibling, insertChildAt, isStruct, markDirtySubtreeDown, paintBeforeAfter, 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, getIScrollPane, 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 |
VAlert
public VAlert(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent,
java.lang.String src)
VAlert
public VAlert(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attrs,
INode parent,
java.net.URI src)
eventNode
public boolean eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
- Block events to rest of tree.
- Overrides:
eventNode
in class INode
- See Also:
TreeEvent
,
SemanticEvent
formatNode
public boolean formatNode(int width,
int height,
Context cx)
- Description copied from class:
INode
- Children report dimensions (width and height), parent places at (x,y).
Bbox = union of children's bboxes
Children stacked vertically like TeX vbox; override to implement other layout strategies
To implement a new layout manager, override this method.
- Overrides:
formatNode
in class IVBox
- Parameters:
width
- ignored during formattingheight
- ignored during formatting- See Also:
FixedI