Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.RichTextArea


    b.addBlurHandler(handler);
    b.addFocusListener(handler);
    b.addValueChangeHandler(handler);
    b.addMouseListener(handler);
    // Rich text box:
    RichTextArea rich = new RichTextArea();
    rich.setTitle("rich text box");
    p.add(rich);
    handler = new EventReporter<String, Object>(p);
    rich.addKeyboardListener(handler);
    HandlesAllKeyEvents.addHandlers(rich,handler);

    rich.addBlurHandler(handler);
    rich.addFocusHandler(handler);
    rich.addClickHandler(handler);
    rich.addClickListener(handler);

    return p;
  }
View Full Code Here


  private VerticalPanel wrapper;

  @Override
  public Widget createIssue() {
    rta = new RichTextArea();
    rta.setPixelSize(200, 100);

    // Combine the control panel and RichTextArea in a wrapper
    wrapper = new VerticalPanel();
    wrapper.setSpacing(10);
View Full Code Here

    verifyGestureStartEventSinkOnAddHandler(new ListBox(), false);
    verifyGestureEndEventSinkOnAddHandler(new ListBox(), false);
    verifyGestureChangeEventSinkOnAddHandler(new ListBox(), false);

    verifyGestureStartEventSinkOnAddHandler(new RichTextArea(), false);
    verifyGestureEndEventSinkOnAddHandler(new RichTextArea(), false);
    verifyGestureChangeEventSinkOnAddHandler(new RichTextArea(), false);

    verifyGestureStartEventSinkOnAddHandler(new TextArea(), false);
    verifyGestureEndEventSinkOnAddHandler(new TextArea(), false);
    verifyGestureChangeEventSinkOnAddHandler(new TextArea(), false);
View Full Code Here

    verifyTouchStartEventSinkOnAddHandler(new ListBox(), false);
    verifyTouchMoveEventSinkOnAddHandler(new ListBox(), false);
    verifyTouchEndEventSinkOnAddHandler(new ListBox(), false);
    verifyTouchCancelEventSinkOnAddHandler(new ListBox(), false);

    verifyTouchStartEventSinkOnAddHandler(new RichTextArea(), false);
    verifyTouchMoveEventSinkOnAddHandler(new RichTextArea(), false);
    verifyTouchEndEventSinkOnAddHandler(new RichTextArea(), false);
    verifyTouchCancelEventSinkOnAddHandler(new RichTextArea(), false);

    verifyTouchStartEventSinkOnAddHandler(new TextArea(), false);
    verifyTouchMoveEventSinkOnAddHandler(new TextArea(), false);
    verifyTouchEndEventSinkOnAddHandler(new TextArea(), false);
    verifyTouchCancelEventSinkOnAddHandler(new TextArea(), false);
View Full Code Here

    Element e = (Element) checkBox.getElement().getFirstChildElement();
    verifyEventSinkOnAddHandler(checkBox, e, false);

    verifyEventSinkOnAddHandler(new ToggleButton(), false);
    verifyEventSinkOnAddHandler(new ListBox(), false);
    verifyEventSinkOnAddHandler(new RichTextArea(), false);
    verifyEventSinkOnAddHandler(new TextArea(), false);
    verifyEventSinkOnAddHandler(new PasswordTextBox(), false);
    verifyEventSinkOnAddHandler(new TextBox(), false);
    verifyEventSinkOnAddHandler(new SimpleRadioButton("foo"), false);
  }
View Full Code Here

        uiService.sendDataToServer(eventInstruction);
    }

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        final RichTextArea richTextArea = new RichTextArea();
        init(create, uiService, richTextArea);
        this.uiService = uiService;
        richTextArea.addBlurHandler(this);
    }
View Full Code Here

  private boolean enabled = true;
  private IVkWidget vkParent;
  public VkRichTextArea()
  {
    super(2,1);
    richTextArea = new RichTextArea(){
      @Override
      public void onBrowserEvent(Event event){
        if(!enabled)
          setEnabled(false);
        else
View Full Code Here

   */
  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create the text area and toolbar
    RichTextArea area = new RichTextArea();
    area.ensureDebugId("cwRichText-area");
    area.setSize("100%", "14em");
    RichTextToolbar toolbar = new RichTextToolbar(area);
    toolbar.ensureDebugId("cwRichText-toolbar");
    toolbar.setWidth("100%");

    // Add the components to a panel
View Full Code Here

        $(ccl).as(Tooltip).tooltip(options);
    }

    private void setupMenuTooltip() {
        // Create the text area and toolbar
        RichTextArea area = new RichTextArea();
        area.setSize("100%", "30px");
        RichTextToolbar toolbar = new RichTextToolbar(area);
        toolbar.ensureDebugId("cwRichText-toolbar");
        toolbar.setWidth("100%");

        RootPanel.get("widgetSample").add(toolbar);
View Full Code Here

    FlexCellFormatter cellFormatter = topFlexTable.getFlexCellFormatter();
    topFlexTable.setCellSpacing(3);
    topFlexTable.setCellPadding(3);
    cellFormatter.setColSpan(0, 0, 2);

    final RichTextArea area = new RichTextArea();
    area.ensureDebugId("cwRichText-area");
    area.setSize("750px", "100px");
    topFlexTable.setWidget(0, 0, area);

    /*
     * Image reloadImage = new Image("/images/refresh.png");
     * reloadImage.setWidth("24px"); reloadImage.setHeight("24px");
     * reloadImage.addStyleName("img_button"); topFlexTable.setWidget(1, 0,
     * reloadImage);
     */

    Button sendButton = new Button("SendMessage");
    cellFormatter.setHorizontalAlignment(1, 1, HasHorizontalAlignment.ALIGN_RIGHT);
    topFlexTable.setWidget(1, 1, sendButton);

    final FlexTable flexTable = new FlexTable();
    flexTable.addStyleName("cw-FlexTable");
    flexTable.setWidth("100%");
    flexTable.setCellSpacing(5);
    flexTable.setCellPadding(3);
    VerticalSplitPanel vSplit = new VerticalSplitPanel();
    vSplit.ensureDebugId("cwVerticalSplitPanel");
    vSplit.setSize("100%", "100%");
    vSplit.setSplitPosition("155px");
    vSplit.setTopWidget(topFlexTable);
    vSplit.setBottomWidget(flexTable);

    final MessageAsyncCallback messageAsyncCallback = new MessageAsyncCallback();
    messageAsyncCallback.setFlexTable(flexTable);
    greetingService.loadGreeting(messageAsyncCallback);

    sendButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {

        if (area.getText() == null || area.getText().trim().length() == 0) {
          Window.alert("no message need to send!!!");
        } else {
          greetingService.pushMessage(encrypt(encryptKey, area.getText()), messageAsyncCallback);
          area.setText("");
        }
      }
    });

    /*
 
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.RichTextArea

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.