Class f_messageDialog

Object
  extended by f_object
      extended by f_shell
          extended by f_dialog
              extended by f_messageDialog
All Implemented Interfaces:
fa_eventTarget

public final class f_messageDialog
extends f_dialog

f_messageDialog represents popup modal window.


Field Summary
 
Fields inherited from class f_shell
ABOUT_TO_CLOSE_STATUS, APPLICATION_MODAL_STYLE, CLOSED_STATUS, CLOSE_BUTTON_EVENT, CLOSE_STYLE, CLOSING_STATUS, COPY_STYLESHEET, CREATED_STATUS, DESTROYED_STATUS, DESTROYING_STATUS, FRAME_ELEMENT, GREYED_BACKGROUND_MODE, HIDE_SCREEN_STYLE, H_SCROLL_STYLE, LIGHT_CONTAINER_STYLE, LIGHT_GREYED_BACKGROUND_MODE, MAX_STYLE, MIN_STYLE, MODELESS_STYLE, MOVE_STYLE, OPAQUE_BACKGROUND_MODE, OPENED_STATUS, OPENING_STATUS, PRIMARY_MODAL_STYLE, RESIZE_STYLE, TITLE_STYLE, TRANSPARENT, TRANSPARENT_BACKGROUND_MODE, V_SCROLL_STYLE
 
Constructor Summary
f_messageDialog(String title, String text, String defaultValue)
          Construct a new f_messageDialog with the specified initial values.
 
Method Summary
 String _toString()
           
 void f_addAction(String value, String text, any disabled, any submitButton)
          Adds an action to the popup.
 undefined f_finalize()
          Destruct a new f_messageDialog.
 Array f_getActions()
          Return the array of actions.
 String f_getDefaultValue()
          Return the defaultValue.
 String f_getImageResolvedURL()
          Gets the image resolved URL.
 String f_getImageURL()
          Gets the image URL.
 String f_getText()
          Return the text.
 void f_openMessage(Function callback)
          draw a message box.
 undefined f_setDefaultValue(String defaultValue)
          Sets the defaultValue.
 void f_setImageURL(String imageURL)
          Sets the image URL.
 undefined f_setText(String text)
          Sets the text.
 
Methods inherited from class f_shell
_toString, f_cancelNextShell, f_close, f_finalize, f_getBackgroundMode, f_getHeight, f_getId, f_getPriority, f_getShellDecoratorName, f_getStatus, f_getStyle, f_getStyleClass, f_getTitle, f_getWidth, f_isNextShellCanceled, f_open, f_setBackgroundMode, f_setHeight, f_setPriority, f_setShellDecorator, f_setShellDecoratorName, f_setStyleClass, f_setTitle, f_setWidth
 
Methods inherited from class fa_eventTarget
f_addEventListener, f_fireEvent, f_removeEventListener
 
Methods inherited from class f_object
f_getClass, toString
 
Methods inherited from class Object
toString
 

Constructor Detail

f_messageDialog

public f_messageDialog(String title,
                       String text,
                       String defaultValue)

Construct a new f_messageDialog with the specified initial values.

Parameters:
title - the title or HTMLElement the suporting v:init tag
text - the text to display
defaultValue - the value returned if the popup is closed without selecting a button
Method Detail

f_getImageResolvedURL

public String f_getImageResolvedURL()

Gets the image resolved URL.

Returns:
imageURL

f_setDefaultValue

public undefined f_setDefaultValue(String defaultValue)

Sets the defaultValue.

Parameters:
defaultValue - the default Value

_toString

public String _toString()
Overrides:
_toString in class f_shell

f_openMessage

public void f_openMessage(Function callback)

draw a message box. The first parameter is a callback that must take a String as a first parameter and a f_messageDialog as second parameter. the callback can be null;

Parameters:
callback - The callback function to be called when the messageBox is closed

f_setImageURL

public void f_setImageURL(String imageURL)

Sets the image URL.

Parameters:
imageURL - (or null)

f_getText

public String f_getText()

Return the text.

Returns:
The text

f_setText

public undefined f_setText(String text)

Sets the text.

Parameters:
text - the text

f_addAction

public void f_addAction(String value,
                        String text,
                        any disabled,
                        any submitButton)

Adds an action to the popup.

Parameters:
value - the value of the action
text - the text displayed for the action

f_getImageURL

public String f_getImageURL()

Gets the image URL.

Returns:
imageURL

f_getActions

public Array f_getActions()

Return the array of actions.

Returns:
The actions

f_getDefaultValue

public String f_getDefaultValue()

Return the defaultValue.

Returns:
The defaultValue

f_finalize

public undefined f_finalize()

Destruct a new f_messageDialog.

Overrides:
f_finalize in class f_shell