Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sensory21

    sortedMap in reverse order?

    Hi, This is a sorting by keys' natural ordering (ascending) and I need to have also the descending order, can someone help? I've looked at comparator and again at: Map map = new TreeMap(Collections.reverseOrder()); but I haven't managed to make it work? SortedMap sortedMap = new TreeMap()...
  2. sensory21

    ArrayList

    Thanks for the StringBuffer class that's a lot better!
  3. sensory21

    ArrayList

    Thanks for your advice, I have my code working the way I want now with SortedMap, just sticked an ID at the end of the elements needed and got all the elements as unique. So it's fine now with SortedMap and I've got the list in ascending order, do you know about the reversed() method to get the...
  4. sensory21

    ArrayList

    ...== Stage.DONE) { pc = 100.0; } else { int done = item.getHistory().size(); int total = item.getItemType().getStages().size(); pc = 100.0 * done / total; } list.add(new Double(pc)); String html = ""; html += "<td class=columnwhite>" +item.getItemType().getDescription()+ "</td>"; html +=...
  5. sensory21

    TreeSet class

    Forget about the previous question it's fine now; thanks a lot for your previous help with SortedMap it effectively works unfortunately that's not what I wanted as now it displays only the table in that sorted order and the other columns don't sort anymore, what I wanted it to collect the order...
  6. sensory21

    TreeSet class

    Hi, I would need to add this in the html just before the ht.put: <td class=columnwhite width="75"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #000000;"> <tr> <% if (pc > 0.00001) {%> <td width="<%=pc%>%"><img src="images/bargrph_blue.gif"...
  7. sensory21

    TreeSet class

    ...{ pc = 100.0; k++; } else { int done = item.getHistory().size(); int total = item.getItemType().getStages().size(); pc = 100.0 * done / total; k++; } Map map = new HashMap(); map.put(String.valueOf(k), roundPercentage.format(pc)); SortedMap sortedMap = new TreeMap()...
  8. sensory21

    TreeSet class

    Will it be possible to have a request at the top of the page and retrieve the sorted order?
  9. sensory21

    TreeSet class

    sorry Sedj, but I didn't leave the other columns as I didn't want to confuse you but I need to stay in the same while loop for the other results like item.get...... <td class=columnwhite><%=item.getItemType().getDescription()%></td> <td class=columnwhite><%=item.getSystem().getName()%></td>...
  10. sensory21

    TreeSet class

    ...== Stage.DONE) { pc = 100.0; } else { int done = item.getHistory().size(); int total = item.getItemType().getStages().size(); pc = 100.0 * done / total; } TreeSet ts = new TreeSet (); ts.add (roundPercentage.format(pc)); SortedSet ss = Collections.synchronizedSortedSet(ts)...
  11. sensory21

    TreeSet class

    Ok, I've tried your method and it effectively works so I guess I am not using the right method, roundPercentage.format(pc) is inside a while loop and this method doesn't sort all the elements? Am I missing something or should I use another method? TreeSet ts = new TreeSet (); ts.add...
  12. sensory21

    TreeSet class

    Hi, I am using this class for the first time and I am confused as I thought that SortedSet will sort the content of ts but it doesn't? If I print out ts or orderComplete the content will be in the same order. Any advice available? TreeSet ts = new TreeSet (); ts.add...
  13. sensory21

    SortedMap class

    Hi, Has anyone used SortedMap class? and have some info about it please? (except from java sun) Cheers vero
  14. sensory21

    Torque criteria

    thanks anyway!
  15. sensory21

    request parameters from a list

    Im not surprise, don't think I've explained very well! We are now using Apache Torque and Im new to it... I try again This produce queries like sql: Criteria cr = new Criteria(); cr.addJoin(ItemPeer.SYSTEMID, SystemPeer.SYSTEMID); cr.addJoin(ItemPeer.STAGEID, StagePeer.STAGEID)...
  16. sensory21

    Torque criteria

    No, not in sql in Apache Torque like: cr.addJoin(ItemPeer.ITEMTYPEID, ItemTypePeer.ITEMTYPEID); any ideas? Am i in the right forum?
  17. sensory21

    Torque criteria

    Hi I need to have a new criteria to join two tables in different manner: table item ========== stageId nextStageId table stage =========== stageId the query has to match where stageId from item equals stageId from stage and nextStageId from item equals stageId from stage can anybody help...
  18. sensory21

    request parameters from a list

    Hi, no help is available for this?? it's urgent please...
  19. sensory21

    sorting column

    ...== Stage.DONE) { pc = 100.0; } else { int done = item.getHistory().size(); int total = item.getItemType().getStages().size(); pc = 100.0 * done / total; } String nextStage = item.getNextStage().getStageTemplate().getDescription(); nextStageList.add(nextStage)...
  20. sensory21

    request parameters from a list

    Hi Sedj, in the jsp file: TableHeadFormat th = new TableHeadFormat("tableheads", "wlink", urlPrefix, btnDown, btnUp, isAsc, sortOrder); the class file: public TableHeadFormat(String thClass, String aClass, String hrefPrefix, String arrowDown, String arrowUp, boolean...

Part and Inventory Search

Back
Top