Package java.util

Examples of java.util.Set


   * @return  FileList object
   */
  public FileList setLinksfunction( FileList DL )
  {

    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    /*while( it.hasNext() )
    {
      String str = ( String )it.next();
      StringMember sm = null;
      ListElement ele  = ( ListElement )DL.get( str );
View Full Code Here


    return mapping.findForward(FORWARD_final);
  }

  public ThreadList setLinksfunction(ThreadList DL)
  {
    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();

    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
View Full Code Here

    return DL;
  }

  public TimeSlipList setTimeSlipLinks(TimeSlipList DL, int ticketID)
  {
    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();

    while (it.hasNext()) {
      String str = (String)it.next();
      StringMember sm = null;
      ListElement ele = (ListElement)DL.get(str);
View Full Code Here

  }

  public ExpenseList setExpenseLinks(ExpenseList DL, int ticketID)
  {
    String url = null;
    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();

    while (it.hasNext()) {
      try {
        String str = (String)it.next();
View Full Code Here

   * In this method if search string is present then continue with
   * element otherwise remove the element.
   */
  public void search()
  {
    Set listkey = keySet();
    Iterator it = listkey.iterator();
    String str = null;

    while (it.hasNext())
    {
      str = (String) it.next();
View Full Code Here

   * element otherwise remove the element.
   * Carry out the Search process on particular column only.
   */
  public void search(String searchColumn)
  {
    Set listkey = keySet();
    Iterator it = listkey.iterator();
    String str = null;

    while (it.hasNext())
    {
      str = (String) it.next();
View Full Code Here

    this.put(newKey, ie);
  }//addline


  public void removeLine (int lineID) {
    Set s = this.keySet();
    Iterator itr = s.iterator();
    Vector v = new Vector();
    while (itr.hasNext())
    {
      Object o = itr.next();
      AccountingLineElement ale = (AccountingLineElement) this.get(o);
View Full Code Here

    }//if vector size != 0

  }//removeLiine(int)

  public void removeLine (int[] lineID) {
    Set s = this.keySet();
    Iterator itr = s.iterator();
    while (itr.hasNext())
    {
      AccountingLineElement ale = (AccountingLineElement) this.get(itr.next());
      int currid = ale.getElementId();
      if (Arrays.binarySearch(lineID,currid) != -1)
View Full Code Here

    float subtotal = 0;
    float total = 0;
    float shipping = 0;
    float discount = 0;

    Set s = this.keySet();
    Iterator itr = s.iterator();

    while (itr.hasNext())
    {
      ItemElement ie = (ItemElement)this.get(itr.next());
      String lineStatus = ie.getLineStatus();
View Full Code Here

          Iterator it = cl.keySet().iterator();
          while (it.hasNext()) {
            Object o = cl.get(it.next());
            if (o instanceof CalendarListElement) {
              CalendarListElement ele = (CalendarListElement) o;
              Set setmember = ele.keySet();
              Iterator itMember = setmember.iterator();
              while (itMember.hasNext()) {
                Object keyValue = itMember.next();
                CalendarMember elemember = (CalendarMember) ele.get(keyValue);
                CalendarActivityObject calActivity = elemember.getActivityobject();
                ArrayList activitiesAttendeesList = calActivity.getActivityAttendee();
                if ("PRIVATE".equals(calActivity.getActivityVisibility()) && calActivity.getActivityOwnerId() != individualID
                    && !activitiesAttendeesList.contains(individualID + "")) {
                  calActivity.setActivity("Private");
                  calActivity.setActivityDetail("Private");
                }
              }
            }
          }
          continue;
        }

        Map map = (Map) lgmap.get(key);
        Iterator it = map.keySet().iterator();

        while (it.hasNext()) {
          CalendarActivityObject cao = (CalendarActivityObject) map.get(it.next());
          ArrayList activitiesAttendeesList = cao.getActivityAttendee();
          if ("PRIVATE".equals(cao.getActivityVisibility()) && cao.getActivityOwnerId() != individualID
              && !activitiesAttendeesList.contains(individualID + "")) {
            cao.setActivity("Private");
            cao.setActivityDetail("Private");
          }
        }
      }

      DL.setSearchString(request.getParameter("searchTextBox"));
      request.setAttribute("allDayActivity", allDayActivity);

      ArrayList nonCalendarActivityList = new ArrayList();
      if (scheduledactivity != null) {
        Set scheduleSet = scheduledactivity.keySet();
        Iterator scheduleIt = scheduleSet.iterator();
        while (scheduleIt.hasNext()) {
          CalendarActivityObject ele = (CalendarActivityObject) scheduledactivity.get(scheduleIt.next());
          String activitytype = ele.getActivityType();
          String iconFileName = CalendarUtil.getActivityIconFileName(activitytype);
          String activityTitle = ele.getActivity();
          StringBuffer displayLink = new StringBuffer("/activities/view_activity.do?rowId=");
          displayLink.append(ele.getActivityID());
          HashMap nonCalenderActivityMap = new HashMap();
          nonCalenderActivityMap.put("activityIcon", iconFileName);
          nonCalenderActivityMap.put("activityLink", displayLink.toString());
          nonCalenderActivityMap.put("activityTitle", activityTitle);
          nonCalendarActivityList.add(nonCalenderActivityMap);
        }// end while (it.hasNext())
      }
      if (unscheduledactivity != null) {
        Set unScheduleSet = unscheduledactivity.keySet();
        Iterator unScheduleIt = unScheduleSet.iterator();
        while (unScheduleIt.hasNext()) {
          CalendarActivityObject ele = (CalendarActivityObject) unscheduledactivity.get(unScheduleIt.next());
          String activitytype = ele.getActivityType();
          String iconFileName = CalendarUtil.getActivityIconFileName(activitytype);
          StringBuffer displayLink = new StringBuffer("/activities/view_activity.do?rowId=");
          displayLink.append(ele.getActivityID());
          String activityTitle = ele.getActivity();
          HashMap nonCalenderActivityMap = new HashMap();
          nonCalenderActivityMap.put("activityIcon", iconFileName);
          nonCalenderActivityMap.put("activityLink", displayLink.toString());
          nonCalenderActivityMap.put("activityTitle", activityTitle);
          nonCalendarActivityList.add(nonCalenderActivityMap);
        }
      }
      calendardyna.set("nonCalendarActivity", nonCalendarActivityList);

      // set the Icon and the links on the calendar elements.
      Set listkey = DL.keySet();
      Iterator it = listkey.iterator();
      while (it.hasNext()) {
        CalendarListElement ele = (CalendarListElement) DL.get(it.next());
        Set elekey = ele.keySet();
        Iterator eleit = elekey.iterator();
        while (eleit.hasNext()) {
          CalendarMember calmember = (CalendarMember) ele.get(eleit.next());
          CalendarActivityObject calActivity = calmember.getActivityobject();

          String activitytype = calActivity.getActivityType();
View Full Code Here

TOP

Related Classes of java.util.Set

Copyright © 2015 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.