Package org.appfuse.client.widget

Examples of org.appfuse.client.widget.Paragraph


        // handle backspace
        if (event.getNativeKeyCode() == KeyCodes.KEY_BACKSPACE) {
          if ("".equals(itemBox.getValue().trim())) {
            ListItem li = (ListItem) list.getWidget(list
                .getWidgetCount() - 2);
            Paragraph p = (Paragraph) li.getWidget(0);
            if (itemsSelected.contains(p.getText())) {
              itemsSelected.remove(p.getText());
              GWT.log("Removing selected item '" + p.getText()
                  + "'", null);
              GWT.log("Remaining: " + itemsSelected, null);
            }
            list.remove(li);
            itemBox.setFocus(true);
View Full Code Here


       * <span class="token-input-delete-token-facebook">x</span></li>
       */

      final ListItem displayItem = new ListItem();
      displayItem.setStyleName("token-input-token-facebook");
      Paragraph p = new Paragraph(itemBox.getValue());

      displayItem.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent clickEvent) {
          displayItem
              .addStyleName("token-input-selected-token-facebook");
View Full Code Here

TOP

Related Classes of org.appfuse.client.widget.Paragraph

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.