Ignore:
Timestamp:
Apr 26, 2010, 6:20:44 PM (14 years ago)
Author:
tobias
Message:

create Client function added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/PropertyBundle.java

    r865 r867  
    5858                        key = keySet.nextElement();
    5959                        if (key.startsWith(partialKey)){
    60                                 result.add(getProperty(key));
     60                                        result.add(getProperty(key));
    6161                        }
    6262                }
     
    6565                return result.toArray(new String[0]);
    6666        }
     67        public static ArrayList<String> getTypeAttributes(String partialKey){
     68                Enumeration<String> keySet = properties.getKeys();
     69                String key;
     70                ArrayList<String> result = new ArrayList<String>();
     71                String [] keyComponents;
     72                while(keySet.hasMoreElements()){
     73                        key = keySet.nextElement();
     74                        if (key.startsWith(partialKey)){
     75                                if (key.contains("type")){
     76                                        keyComponents = key.split("\\.");
     77                                        result.add(keyComponents[2]);
     78                                }
     79                        }
     80                }
     81                result.trimToSize();
     82                return result;
     83        }
    6784}
    6885
Note: See TracChangeset for help on using the changeset viewer.