Changeset 441


Ignore:
Timestamp:
02/10/12 11:40:10 (12 years ago)
Author:
davidb
Message:

Added Javadoc comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Misc.java

    r438 r441  
    7777                List<Item> allItems = current.getItems();
    7878               
    79                 for(Item i : allItems) {
     79                for(Item i : allItems)
     80                {
    8081                        if(i.getX() == x && i.getY() == y)
    8182                                return i;
     
    8586        }
    8687       
     88        /**
     89         * Returns an item containing a specified piece of data.
     90         * kgas1 - 7/06/2012
     91         * @param s
     92         * @param f
     93         * @return
     94         */
    8795        public static Item getItemContainingData(String s, Frame f){
    88                
    89         Frame current = f;
    90        
    91         List<Item> allItems = current.getItems();
    92        
    93        
    94         for(Item i : allItems) {
    95                      
    96             if(i.getData() != null && i.getData().size() > 0) {
    97                 if(i.getData().contains(s)) {
    98                     return i;
    99                 }
    100             }
    101         }
    102        
    103         return null;
    104     }
     96               
     97                Frame current = f;
     98               
     99                List<Item> allItems = current.getItems();
     100               
     101               
     102                for(Item i : allItems){
     103                       
     104                       
     105                        if(i.getData() != null && i.getData().size() > 0){
     106                                if(i.getData().contains(s)){
     107                                        return i;
     108                                }
     109                        }
     110                }
     111               
     112                return null;
     113        }
    105114       
    106115        /**
Note: See TracChangeset for help on using the changeset viewer.