Example usage for com.google.gwt.dom.client OptionElement getPropertyBoolean

List of usage examples for com.google.gwt.dom.client OptionElement getPropertyBoolean

Introduction

In this page you can find the example usage for com.google.gwt.dom.client OptionElement getPropertyBoolean.

Prototype

@Override
    public boolean getPropertyBoolean(String name) 

Source Link

Usage

From source file:org.xwiki.gwt.wysiwyg.client.plugin.style.StylePlugin.java

License:Open Source License

/**
 * Toggles the style name corresponding to the given style option.
 * //from  w  ww.  j a  va  2s .c o m
 * @param styleOption one of the style option from the style name list box
 */
private void toggleStyle(OptionElement styleOption) {
    String styleName = styleOption.getValue();
    Command command = styleOption.getPropertyBoolean(INLINE) ? INLINE_STYLE_NAME : BLOCK_STYLE_NAME;
    getTextArea().setFocus(true);
    getTextArea().getCommandManager().execute(command, styleName);
}