Package com.jbidwatcher.util.queue

Examples of com.jbidwatcher.util.queue.AuctionQObject


    //  Whoops!  Bad thing happened on the way to loading the auction!
    JConfig.log().logDebug("Failed to parse auction!  Bad return result from auction server.");
    //  Only retry the login cookie once every ten minutes of these errors.
    if ((sLastUpdated + Constants.ONE_MINUTE * 10) > System.currentTimeMillis()) {
      sLastUpdated = System.currentTimeMillis();
      MQFactory.getConcrete(this.getFriendlyName()).enqueueBean(new AuctionQObject(AuctionQObject.MENU_CMD, UPDATE_LOGIN_COOKIE, null)); //$NON-NLS-1$ //$NON-NLS-2$
    }
  }
View Full Code Here


  }

  public class StringSearcher extends Searcher {
    public String getTypeName() { return "Text"; }
    protected void fire() {
      MQFactory.getConcrete(destinationQueue).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_SEARCH, getId(), getCategory()));
    }
View Full Code Here

  }

  public class TitleSearcher extends Searcher {
    public String getTypeName() { return "Title"; }
    protected void fire() {
      MQFactory.getConcrete(destinationQueue).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_TITLE, getId(), getCategory()));
    }
View Full Code Here

  }

  public class URLSearcher extends Searcher {
    public String getTypeName() { return "URL"; }
    protected void fire() {
      MQFactory.getConcrete(destinationQueue).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_URL, getId(), getCategory()));
    }
View Full Code Here

  }

  public class SellerSearcher extends Searcher {
    public String getTypeName() { return "Seller"; }
    protected void fire() {
      MQFactory.getConcrete(destinationQueue).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_SELLER, getId(), getCategory()));
    }
View Full Code Here

  }

  public class MyItemSearcher extends Searcher {
    public String getTypeName() { return "My Items"; }
    protected void fire() {
      MQFactory.getConcrete(destinationQueue).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_MYITEMS, null, hasCategory() ? getCategory() : null));
    }
View Full Code Here

  public void actionPerformed(ActionEvent ae) {
    String actionString = ae.getActionCommand();

    //  Handle stuff which is redirected to the search manager.
    if(actionString.equals("Search eBay")) MQFactory.getConcrete("user").enqueue("SEARCH");
    else MQFactory.getConcrete(mQueueServer).enqueueBean(new AuctionQObject(AuctionQObject.MENU_CMD, actionString, null));
  }
View Full Code Here

    if(mLogin) forceLogin();

    if(mRunServer) {
      spawnServer();
    } else if(mJustMyeBay) {
      MQFactory.getConcrete(mEbay.getFriendlyName()).enqueueBean(new AuctionQObject(AuctionQObject.LOAD_MYITEMS, null, null));
      try { Thread.sleep(120000); } catch(Exception ignored) { }
    } else if(mParseFile != null) {
      JConfig.setHomeDirectory("./");
      buildAuctionEntryFromFile(mParseFile);
    } else {
View Full Code Here

    int endResult = _oui.promptWithCheckbox(src, "This will buy the item outright at the price of " + ae.getBuyNow() + ".\nIs this what you want?",
                                            "Buy Item", "prompt.bin_confirm");

    if(endResult != JOptionPane.CANCEL_OPTION && endResult != JOptionPane.CLOSED_OPTION) {
      MQFactory.getConcrete(ae.getServer().getFriendlyName()).enqueueBean(new AuctionQObject(AuctionQObject.BID, new AuctionBuy(ae, Currency.NoValue(), 1), "none"));
    }
  }
View Full Code Here

                                    endResult + " is not a valid bid.\n" +
                                    "Punctuation (other than a decimal point) and currency symbols are not legal.",
                                    "Bad bid value", JOptionPane.PLAIN_MESSAGE);
      return;
    }
    MQFactory.getConcrete(ae.getServer().getFriendlyName()).enqueueBean(new AuctionQObject(AuctionQObject.BID, new AuctionBid(ae, bidAmount, 1), "none"));
  }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.util.queue.AuctionQObject

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.