org.odlabs.wiquery.ui.dialog
Class DialogButton

java.lang.Object
  extended by org.odlabs.wiquery.ui.dialog.DialogButton
All Implemented Interfaces:
Serializable, IListItemOption
Direct Known Subclasses:
AjaxDialogButton

public class DialogButton
extends Object
implements IListItemOption

$Id: DialogButton.java

Bean to represent a dialog button

Since:
1.0
Author:
Julien Roche
See Also:
Serialized Form

Constructor Summary
DialogButton(String title, JsScope jsScope)
          Build a new instance of a dialog button
 
Method Summary
 CharSequence getJavascriptOption()
          Method retrieving the javascript's representation of the option
 JsScope getJsScope()
          Method retrieving the JsScope of the button
 String getTitle()
          Method retrieving the title of the button
 void setJsScope(JsScope jsScope)
          Method setting the JsScope of the button
 void setTitle(String title)
          Method setting the title of the button
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogButton

public DialogButton(String title,
                    JsScope jsScope)
Build a new instance of a dialog button

Parameters:
title - Title of the button
jsScope - JsScope of the button
Method Detail

getJavascriptOption

public final CharSequence getJavascriptOption()
Description copied from interface: IListItemOption
Method retrieving the javascript's representation of the option

Specified by:
getJavascriptOption in interface IListItemOption
Returns:

getJsScope

public JsScope getJsScope()
Method retrieving the JsScope of the button

Returns:
the JsScope

getTitle

public String getTitle()
Method retrieving the title of the button

Returns:
the title

setJsScope

public void setJsScope(JsScope jsScope)
Method setting the JsScope of the button

Parameters:
jsScope -

setTitle

public void setTitle(String title)
Method setting the title of the button

Parameters:
title -


Copyright © 2012. All Rights Reserved.