Java Code Examples for com.google.gwt.user.client.ui.CheckBox#setTitle()

The following examples show how to use com.google.gwt.user.client.ui.CheckBox#setTitle() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SettingsPanel.java    From swcv with MIT License 6 votes vote down vote up
private Widget createCheckboxStopwords()
{
    final CheckBox box = new CheckBox();
    box.setValue(setting.isRemoveStopwords());

    box.addClickHandler(new ClickHandler()
    {
        @Override
        public void onClick(ClickEvent event)
        {
            setting.setRemoveStopwords(box.getValue());
        }
    });

    box.setTitle("Exclude common stop words from the result\ne.g., 'the', 'is', 'at', 'which', 'on' etc");
    return box;
}
 
Example 2
Source File: SettingsPanel.java    From swcv with MIT License 6 votes vote down vote up
private Widget createCheckboxStem()
{
    final CheckBox box = new CheckBox();
    box.setValue(setting.isStemWords());

    box.addClickHandler(new ClickHandler()
    {
        @Override
        public void onClick(ClickEvent event)
        {
            setting.setStemWords(box.getValue());
        }
    });

    box.setTitle("Combine similar words\ne.g., 'dance', 'dancer', 'danced', 'dancing' -> 'dance'");
    return box;
}
 
Example 3
Source File: SettingsPanel.java    From swcv with MIT License 6 votes vote down vote up
private Widget createCheckboxRemoveNumbers()
{
    final CheckBox box = new CheckBox();
    box.setValue(setting.isRemoveNumbers());

    box.addClickHandler(new ClickHandler()
    {
        @Override
        public void onClick(ClickEvent event)
        {
            setting.setRemoveNumbers(box.getValue());
        }
    });

    box.setTitle("Remove numbers and punctuation characters from the result");
    return box;
}