Ignore:
Timestamp:
06/27/08 16:44:21 (16 years ago)
Author:
ra33
Message:

Heaps of changes!!!!
Added circles...
Better drawing of lines etc etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/AttributeUtils.java

    r102 r108  
    1313import org.expeditee.items.Item;
    1414import org.expeditee.items.Justification;
     15import org.expeditee.items.Permission;
    1516import org.expeditee.items.Text;
    1617
     
    127128
    128129                        _GetMethods.add(Frame.class.getMethod("getOwner", param));
    129                         _GetMethods.add(Frame.class.getMethod("getProtection", param));
     130                        _GetMethods.add(Frame.class.getMethod("getPermission", param));
    130131                        _GetMethods.add(Frame.class.getMethod("getDateCreated", param));
    131132                        _GetMethods.add(Frame.class.getMethod("getLastModifyUser", param));
     
    140141                        Class[] pColor = { Color.class };
    141142                        Class[] pBool = { boolean.class };
    142                         Class[] pArrow = { int.class, double.class };
     143                        Class[] pArrow = { float.class, double.class };
    143144                        Class[] pList = { List.class };
    144145                        Class[] pIntArray = { int[].class };
    145146                        Class[] pJustification = { Justification.class };
     147                        Class[] pPermission = { Permission.class };
    146148
    147149                        _SetMethods = new HashMap<String, Method>();
     
    228230                                        "setJustification", pJustification));
    229231                        _SetMethods.put("width", Text.class.getMethod("setWidth", pInt));
    230                         _SetMethods.put("size", Item.class.getMethod("setSize", pInt));
    231                         _SetMethods.put("s", Item.class.getMethod("setSize", pInt));
     232                        _SetMethods.put("size", Item.class.getMethod("setSize", pFloat));
     233                        _SetMethods.put("s", Item.class.getMethod("setSize", pFloat));
    232234
    233235                        _SetMethods.put("foregroundcolor", Frame.class.getMethod(
     
    239241                        _SetMethods.put("bgc0", Frame.class.getMethod("setBackgroundColor",
    240242                                        pColor));
    241                         _SetMethods.put("protection", Frame.class.getMethod(
    242                                         "setProtection", pString));
     243                        _SetMethods.put("permission", Frame.class.getMethod(
     244                                        "setPermission", pPermission));
    243245
    244246                } catch (SecurityException e) {
     
    626628         */
    627629        public static String getAttribute(String attributeValuePair) {
     630                if(attributeValuePair.length() <= 1)
     631                        return null;
     632               
    628633                attributeValuePair = attributeValuePair.trim();
    629634
Note: See TracChangeset for help on using the changeset viewer.