Package org.waveprotocol.wave.client.editor.sugg.SuggestionsManager

Examples of org.waveprotocol.wave.client.editor.sugg.SuggestionsManager.HasSuggestions


  public Element createDomImpl(Renderable element) {
    // HACK(danilatos) temp workaround, see todo in SuggestionButton and Suggestion
    // regarding their dep on ContentElement
    ContentElement haxContentElement = (ContentElement) element;

    HasSuggestions suggestions = new Suggestion(haxContentElement,
        haxContentElement.getContext());
    element.setProperty(HAS_SUGGESTIONS_PROP, suggestions);

    SuggestionButton display = new SuggestionButton(haxContentElement);
    // TODO(user): Avoid using non-html tag names
View Full Code Here


    Widget clickButton =
        ButtonFactory.createIconClickButton(IconButtonStyle.LIGHTBULB, TOOLTIP,
        new ClickButtonListener() {
          @Override
          public void onClick() {
            HasSuggestions suggestion =
                element.getProperty(SuggestionRenderer.HAS_SUGGESTIONS_PROP);
            element.getSuggestionsManager().showSuggestionsFor(suggestion);
          }
        });
    clickButton.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
View Full Code Here

  public Element createDomImpl(Renderable element) {
    // HACK(danilatos) temp workaround, see todo in SuggestionButton and Suggestion
    // regarding their dep on ContentElement
    ContentElement haxContentElement = (ContentElement) element;

    HasSuggestions suggestions = new Suggestion(haxContentElement,
        haxContentElement.getContext());
    element.setProperty(HAS_SUGGESTIONS_PROP, suggestions);

    SuggestionButton display = new SuggestionButton(haxContentElement);
    // TODO(user): Avoid using non-html tag names
View Full Code Here

    Widget clickButton =
        ButtonFactory.createIconClickButton(IconButtonStyle.LIGHTBULB, TOOLTIP,
        new ClickButtonListener() {
          @Override
          public void onClick() {
            HasSuggestions suggestion =
                element.getProperty(SuggestionRenderer.HAS_SUGGESTIONS_PROP);
            element.getSuggestionsManager().showSuggestionsFor(suggestion);
          }
        });
    clickButton.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.editor.sugg.SuggestionsManager.HasSuggestions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.