net.xoetrope.html
Class XMessageBox

java.lang.Object
  extended by net.xoetrope.html.XHtmlWidget
      extended by net.xoetrope.html.XMessageBox
All Implemented Interfaces:
XMessageBoxSetup

public class XMessageBox
extends XHtmlWidget
implements XMessageBoxSetup

Creates a simple modal MessageBox with a label for the text and a close button

Copyright (c) Xoetrope Ltd., 1998-2004
License: see license.txt $Revision: 2.7 $


Field Summary
protected  netscape.javascript.JSObject obj
           
protected  XEdit prompt
           
 
Fields inherited from class net.xoetrope.html.XHtmlWidget
currentProject, divElement, htmlDoc, imageElement, inputElement, labelElement, metaElement, olElement, selectElement, tableElement, textareaElement, ulElement
 
Constructor Summary
XMessageBox()
          Create a new instance of message box.
XMessageBox(java.lang.String msg)
          Create a new XMessageBox with a specific text
 
Method Summary
 void add(XEdit edit)
          Add an edit field to the message box
 java.lang.String getText()
          Get the text displayed in the message box
 void setup(java.lang.String msg)
          Setup the content of the message box
 void setup(java.lang.String title, java.lang.String msg, java.lang.Object size, java.lang.Object page)
          Setup the content of the message box
 
Methods inherited from class net.xoetrope.html.XHtmlWidget
addEvent, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obj

protected netscape.javascript.JSObject obj

prompt

protected XEdit prompt
Constructor Detail

XMessageBox

public XMessageBox()
Create a new instance of message box.


XMessageBox

public XMessageBox(java.lang.String msg)
Create a new XMessageBox with a specific text

Parameters:
msg - the message to display
Method Detail

setup

public void setup(java.lang.String msg)
Setup the content of the message box

Parameters:
msg - the text of the message

add

public void add(XEdit edit)
Add an edit field to the message box

Parameters:
the - edit field

getText

public java.lang.String getText()
Get the text displayed in the message box

Returns:
the text displayed

setup

public void setup(java.lang.String title,
                  java.lang.String msg,
                  java.lang.Object size,
                  java.lang.Object page)
Description copied from interface: XMessageBoxSetup
Setup the content of the message box

Specified by:
setup in interface XMessageBoxSetup
Parameters:
title - the message box title or caption
msg - the text of the message
size - the size of the owner page
page - the content page