Examples of removeItem()


Examples of com.google.code.gwt.storage.client.Storage.removeItem()

        // of default (English)
        if (Storage.isSupported()) {
          Storage localStorage = Storage.getLocalStorage();
         
          if (value.equals("default")) {
            localStorage.removeItem("locale");
          } else {
            localStorage.setItem("locale", value);
          }
         
        }
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.removeItem()

      NotesDocument srcdbDoc = srcdbView.getFirstDocument();
      while (null != srcdbDoc) {
        LOGGER.logp(Level.FINER, CLASS_NAME, METHOD,
            "Connector reset - Resetting database last update date for "
            + srcdbDoc.getItemValue(NCCONST.DITM_DBNAME));
        srcdbDoc.removeItem(NCCONST.DITM_LASTUPDATE);
        srcdbDoc.removeItem(NCCONST.DITM_ACLTEXT);
        srcdbDoc.save(true);
        NotesDocument prevDoc = srcdbDoc;
        srcdbDoc = srcdbView.getNextDocument(prevDoc);
        prevDoc.recycle();
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.removeItem()

      while (null != srcdbDoc) {
        LOGGER.logp(Level.FINER, CLASS_NAME, METHOD,
            "Connector reset - Resetting database last update date for "
            + srcdbDoc.getItemValue(NCCONST.DITM_DBNAME));
        srcdbDoc.removeItem(NCCONST.DITM_LASTUPDATE);
        srcdbDoc.removeItem(NCCONST.DITM_ACLTEXT);
        srcdbDoc.save(true);
        NotesDocument prevDoc = srcdbDoc;
        srcdbDoc = srcdbView.getNextDocument(prevDoc);
        prevDoc.recycle();
      }
View Full Code Here

Examples of com.google.gwt.storage.client.Storage.removeItem()

            if (stockStore != null)
            {
              if (stockStore.getItem("signup") != null)
              {
                signup = stockStore.getItem("signup").equals(Boolean.toString(true));
                stockStore.removeItem("signup");
              }
            }
          }

          if (signup)
View Full Code Here

Examples of com.google.gwt.user.client.ui.ListBox.removeItem()

                if (box.getSelectedIndex() == -1) {
                    Window.alert(TestScenarioConstants.INSTANCE.PleaseChooseARuleToRemove());
                } else {
                    String r = box.getItemText(box.getSelectedIndex());
                    sc.getRules().remove(r);
                    box.removeItem(box.getSelectedIndex());
                }
            }
        });
        VerticalPanel actions = new VerticalPanel();
        actions.add(add);
View Full Code Here

Examples of com.google.gwt.user.client.ui.ListBox.removeItem()

      public void onClick(Widget sender) {
        if (customTypesListBox.getItemCount() > 0) {            
          String selectedCustomType = customTypesListBox.getItemText(customTypesListBox.getSelectedIndex());
          ParamItem.customTypes.remove(selectedCustomType);
          ParamItem.customTypeOptions.remove(selectedCustomType);         
          customTypesListBox.removeItem(customTypesListBox.getSelectedIndex());
          optionsTextArea.setText("");
          if (param.getType().equals(selectedCustomType)) {
            param.setOptions(new Vector());           
          }
          if (customTypesListBox.getItemCount() > 0) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.ListBox.removeItem()

                if ( box.getSelectedIndex() == -1 ) {
                    Window.alert( TestScenarioConstants.INSTANCE.PleaseChooseARuleToRemove() );
                } else {
                    String r = box.getItemText( box.getSelectedIndex() );
                    sc.getRules().remove( r );
                    box.removeItem( box.getSelectedIndex() );
                }
            }
        } );
        VerticalPanel actions = new VerticalPanel();
        actions.add( add );
View Full Code Here

Examples of com.google.gwt.user.client.ui.MenuBar.removeItem()

      MenuBar bar = new MenuBar();
      MenuItem item0 = bar.addItem("test0", cmd);
      MenuItem item1 = bar.addItem("test1", cmd);

      // Act
      bar.removeItem(item0);

      // Assert
      assertEquals(0, bar.getItemIndex(item1));
   }
View Full Code Here

Examples of com.jada.order.cart.ShoppingCart.removeItem()

      ContentBean contentBean = getContentBean(request);
    Site site = contentBean.getContentSessionBean().getSiteDomain().getSite();
      ShoppingCartActionForm form = (ShoppingCartActionForm) actionForm;
      ShoppingCart shoppingCart = ShoppingCart.getSessionInstance(request, true);
      ActionMessages messages = new ActionMessages();
    shoppingCart.removeItem(form.getItemNaturalKey(), getContentBean(request));
   
    maintainOpenOrder(request, shoppingCart);

    this.initSearchInfo(form, site.getSiteId(), messages);
    this.initCartInfo(form, site, shoppingCart, request, messages);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2TradeList.removeItem()

    if(args.length > 3)
    {
      int order = findOrderTradeList(itemID, tradeList.getPriceForItemId(itemID), tradeListID);

      tradeList.removeItem(itemID);
      deleteTradeList(tradeListID, order);

      activeChar.sendMessage("Deleted " + ItemTable.getInstance().getTemplate(itemID).getName() + " from Trade List " + tradeListID);
      showShopList(activeChar, tradeListID, 1);
      return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.