Ignore:
Timestamp:
04/08/19 15:59:17 (5 years ago)
Author:
bln4
Message:

Added placeholders as a thing for text items. You can now provide default text for a text item. Inject the property 'Placeholder: <text>' were <text> is the placeholder text. When the placeholder is being used, the font color alpha is reduced.

Location:
trunk/src/org/expeditee/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/DefaultFrameReader.java

    r1242 r1296  
    161161                        _ItemTags.put('O', Text.class.getMethod("setMask", pIntO));
    162162                       
     163                        _ItemTags.put('=', Text.class.getMethod("setPlaceholder", pString));
     164                       
    163165                        // Lines and constraints are created differently
    164166                        _ItemTags.put('L', Line.class.getMethod("setStartItem", pItem));
  • trunk/src/org/expeditee/io/DefaultFrameWriter.java

    r1274 r1296  
    149149                        _ItemTags.put('^', Item.class.getMethod("getMagnetizedItemTop"));
    150150                        _ItemTags.put('_', Item.class.getMethod("getMagnetizedItemBottom"));
     151                       
     152                        _ItemTags.put('=', Text.class.getMethod("getPlaceholder"));
    151153                } catch (Exception e) {
    152154                        e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.