Changeset 50 for trunk/src/org/expeditee/gui/AttributeUtils.java
- Timestamp:
- 05/16/08 10:25:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/AttributeUtils.java
r48 r50 66 66 _GetMethods = new LinkedList<Method>(); 67 67 _GetMethods.add(Item.class.getMethod("getDateCreated", param)); 68 68 69 69 _GetMethods.add(Item.class.getMethod("getColor", param)); 70 70 _GetMethods.add(Item.class.getMethod("getBackgroundColor", param)); … … 74 74 _GetMethods.add(Item.class.getMethod("getFillPattern", param)); 75 75 _GetMethods.add(Item.class.getMethod("getThickness", param)); 76 76 77 77 _GetMethods.add(Item.class.getMethod("getOwner", param)); 78 78 _GetMethods.add(Item.class.getMethod("getLinkMark", param)); … … 99 99 _GetMethods.add(Text.class.getMethod("getJustification", param)); 100 100 _GetMethods.add(Text.class.getMethod("getWidth", param)); 101 _GetMethods.add( Text.class.getMethod("getSize", param));101 _GetMethods.add(Item.class.getMethod("getSize", param)); 102 102 103 103 _GetMethods.add(Frame.class.getMethod("getOwner", param)); … … 111 111 Class[] pString = { String.class }; 112 112 Class[] pInt = { int.class }; 113 Class[] pFloat = { float.class }; 113 114 Class[] pColor = { Color.class }; 114 115 Class[] pBool = { boolean.class }; … … 119 120 _SetMethods = new HashMap<String, Method>(); 120 121 121 _SetMethods.put("size", Item.class.getMethod("setSize", pInt)); 122 _SetMethods.put("s", Item.class.getMethod("setSize", pInt)); 122 _SetMethods.put("thickness", Item.class.getMethod("setThickness", 123 pFloat)); 124 _SetMethods.put("t", Item.class.getMethod("setThickness", pFloat)); 123 125 124 126 _SetMethods.put("color", Item.class.getMethod("setColor", pColor)); … … 173 175 _SetMethods.put("family", Text.class 174 176 .getMethod("setFamily", pString)); 175 _SetMethods.put("face", Text.class.getMethod("setFontStyle", pString)); 176 _SetMethods.put("fontstyle", Text.class.getMethod("setFontStyle", pString)); 177 _SetMethods.put("face", Text.class.getMethod("setFontStyle", 178 pString)); 179 _SetMethods.put("fontstyle", Text.class.getMethod("setFontStyle", 180 pString)); 177 181 _SetMethods.put("justification", Text.class.getMethod( 178 182 "setJustification", pInt)); 179 183 _SetMethods.put("width", Text.class.getMethod("setWidth", pInt)); 184 _SetMethods.put("size", Item.class.getMethod("setSize", pInt)); 185 _SetMethods.put("s", Item.class.getMethod("setSize", pInt)); 180 186 181 187 _SetMethods.put("foregroundcolor", Frame.class.getMethod( … … 548 554 549 555 try { 550 Object[] params = Conversion.Convert(possible, value, 551 current); 556 Object[] params = Conversion.Convert(possible, value, current); 552 557 553 558 try { … … 561 566 e.printStackTrace(); 562 567 } catch (InvocationTargetException e) { 563 // TODO Auto-generated catch block 564 e.printStackTrace(); 568 FrameGraphics.DisplayMessage(toSet.getClass() 569 .getSimpleName() 570 + " type does not support that attribute."); 571 // e.printStackTrace(); 565 572 } 566 573 } catch (NumberFormatException e) { … … 620 627 public static void setSingleValue(Text text, String value) { 621 628 assert (value != null); 622 629 623 630 String oldText = text.getTextNoList(); 624 631 String attribute = stripAttribute(oldText);
Note:
See TracChangeset
for help on using the changeset viewer.