Changeset 8705


Ignore:
Timestamp:
03/04/05 19:01:17 (16 years ago)
Author:
piso
Message:

getKeyText()
toString()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/JEvent.java

    r8701 r8705  
    33 *
    44 * Copyright (C) 2005 Peter Graves
    5  * $Id: JEvent.java,v 1.1 2005-03-04 17:33:19 piso Exp $
     5 * $Id: JEvent.java,v 1.2 2005-03-04 19:01:17 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    9898    }
    9999
     100    public String getKeyText()
     101    {
     102        return Utilities.getKeyText(keyChar, keyCode, modifiers);
     103    }
     104
    100105    public String toString()
    101106    {
     
    120125        sb.append(' ');
    121126        sb.append(String.valueOf(keyChar));
     127        sb.append(" \"");
     128        sb.append(Utilities.getKeyText(keyChar, keyCode, modifiers));
     129        sb.append('"');
    122130        return sb.toString();
    123131    }
Note: See TracChangeset for help on using the changeset viewer.