Changeset 108 for trunk/src/org/expeditee/gui/AttributeUtils.java
- Timestamp:
- 06/27/08 16:44:21 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/AttributeUtils.java
r102 r108 13 13 import org.expeditee.items.Item; 14 14 import org.expeditee.items.Justification; 15 import org.expeditee.items.Permission; 15 16 import org.expeditee.items.Text; 16 17 … … 127 128 128 129 _GetMethods.add(Frame.class.getMethod("getOwner", param)); 129 _GetMethods.add(Frame.class.getMethod("getP rotection", param));130 _GetMethods.add(Frame.class.getMethod("getPermission", param)); 130 131 _GetMethods.add(Frame.class.getMethod("getDateCreated", param)); 131 132 _GetMethods.add(Frame.class.getMethod("getLastModifyUser", param)); … … 140 141 Class[] pColor = { Color.class }; 141 142 Class[] pBool = { boolean.class }; 142 Class[] pArrow = { int.class, double.class };143 Class[] pArrow = { float.class, double.class }; 143 144 Class[] pList = { List.class }; 144 145 Class[] pIntArray = { int[].class }; 145 146 Class[] pJustification = { Justification.class }; 147 Class[] pPermission = { Permission.class }; 146 148 147 149 _SetMethods = new HashMap<String, Method>(); … … 228 230 "setJustification", pJustification)); 229 231 _SetMethods.put("width", Text.class.getMethod("setWidth", pInt)); 230 _SetMethods.put("size", Item.class.getMethod("setSize", p Int));231 _SetMethods.put("s", Item.class.getMethod("setSize", p Int));232 _SetMethods.put("size", Item.class.getMethod("setSize", pFloat)); 233 _SetMethods.put("s", Item.class.getMethod("setSize", pFloat)); 232 234 233 235 _SetMethods.put("foregroundcolor", Frame.class.getMethod( … … 239 241 _SetMethods.put("bgc0", Frame.class.getMethod("setBackgroundColor", 240 242 pColor)); 241 _SetMethods.put("p rotection", Frame.class.getMethod(242 "setP rotection", pString));243 _SetMethods.put("permission", Frame.class.getMethod( 244 "setPermission", pPermission)); 243 245 244 246 } catch (SecurityException e) { … … 626 628 */ 627 629 public static String getAttribute(String attributeValuePair) { 630 if(attributeValuePair.length() <= 1) 631 return null; 632 628 633 attributeValuePair = attributeValuePair.trim(); 629 634
Note:
See TracChangeset
for help on using the changeset viewer.