Package com.jbidwatcher.util.html

Examples of com.jbidwatcher.util.html.JHTMLOutput


        m_within.dispose();
        m_within = null;
      }
    };
    OptionUI oui = new OptionUI();
    JFrame newFrame = oui.showChoiceTextDisplay(new JHTMLOutput("Version " + ue.getVersion() + " available!", fullMsg).getStringBuffer(),
        new Dimension(UPDATE_FRAME_WIDTH, UPDATE_FRAME_HEIGHT), "Version " + ue.getVersion() + " available!", buttons,
        "Upgrade information", mal);
    mal.setFrame(newFrame);
  }
View Full Code Here


  }

  protected StringBuffer checkError(StringBuffer result) {
    if(result != null) return result;

    return new JHTMLOutput("Invalid request", "Failed to correctly perform server-side actions." +
                           messageFinisher).getStringBuffer();
  }
View Full Code Here

    boolean isCached = cached != null && cached.length() != 0;

    AuctionEntry ae = AuctionEntry.findByIdentifier(identifier);

    if (ae == null) {
      return (new JHTMLOutput("Error!", "Error: No such auction in list!" + messageFinisher).getStringBuffer());
    }

    StringBuffer sbOut;

    if (isCached) {
View Full Code Here

    return wholeData;
  }

  public StringBuffer fireEvent(String eventName, String eventParam) {
    if(eventName == null || eventParam == null) {
      return new JHTMLOutput("Invalid event", "No such event available." + messageFinisher).getStringBuffer();
    }
    eventParam = eventParam.replaceAll("\\+", " ").replaceAll("%20", " ");
    JConfig.log().logMessage("Firing event to queue '" + eventName + "' with parameter '" + eventParam + "'");
    MQFactory.getConcrete(eventName).enqueue(eventParam);
    return new JHTMLOutput("Event posted", "Event has been submitted." + messageFinisher).getStringBuffer();
  }
View Full Code Here

      minBid = ae.getCurBid().add(ae.getServer().getMinimumBidIncrement(ae.getCurBid(), ae.getNumBidders()));
    } catch (Currency.CurrencyTypeException ignored) {
      minBid = ae.getCurBid();
    }

    JHTMLOutput jho = new JHTMLOutput("Prepare snipe",
        new JHTMLDialog("Snipe", "./activateSnipe", "GET",
            findIDString, auctionId, "snipe",
            "Enter snipe amount, with no currency symbols.", findAmountString, 20,
            minBid.getValueString()) +
            messageFinisher);

    return jho.getStringBuffer();
  }
View Full Code Here

    JConfig.log().logDebug("Remote-controlled snipe activated against auction " + auctionId + " for " + snipeValue);
    ae.prepareSnipe(snipeValue);
    MQFactory.getConcrete("redraw").enqueue(ae.getIdentifier());

    JHTMLOutput jho = new JHTMLOutput("Activated snipe!",
        "Remote-controlled snipe activated on: " +
            auctionId + " for " + snipeValue +
            messageFinisher);
    return jho.getStringBuffer();
  }
View Full Code Here

    Snipeable ae = AuctionEntry.findByIdentifier(identifier);

    if (ae != null) {
      ae.cancelSnipe(false);
      MQFactory.getConcrete("redraw").enqueue(ae.getIdentifier());
      return new JHTMLOutput("Snipe canceled!", "Cancellation of snipe successful." +
          messageFinisher).getStringBuffer();
    }
    return new JHTMLOutput("Could not find auction!",
        "Cancellation of snipe failed, could not find auction " + identifier + '!' +
            messageFinisher).getStringBuffer();
  }
View Full Code Here

    if(ae == null) ae = (AuctionEntry) mTabs.getIndexedEntry(rowList[0]);

    StringBuffer wholeStatus = ae.getErrorPage();
    Dimension statusBox = new Dimension(756, 444);

    _oui.showHTMLDisplay(new JHTMLOutput("Error Page", wholeStatus).getStringBuffer(), statusBox, "Error Page...");
  }
View Full Code Here

      }
    };

    al.setEntries(deleteIds);

    JFrame newFrame = _oui.showChoiceTextDisplay(new JHTMLOutput("Deleting", wholeDelete).getStringBuffer(), statusBox, "Deleting...", buttons, "Items to delete...", al);
    al.setFrame(newFrame);

    _in_deleting = false;
  }
View Full Code Here

          m_within.dispose();
          m_within = null;
        }
      };

    final JFrame newFrame = _oui.showChoiceTextDisplay(new JHTMLOutput("Information", prompt).getStringBuffer(), statusBox, "Information...", buttons, null, al);
    newFrame.addComponentListener(new ComponentAdapter() {
      public void componentResized(ComponentEvent e) {
        JConfig.setDisplayConfiguration("info.width", Integer.toString(newFrame.getWidth()));
        JConfig.setDisplayConfiguration("info.height", Integer.toString(newFrame.getHeight()));
      }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.util.html.JHTMLOutput

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.