/** * Returns the accesskey character as a String. If the character is not a letter or digit then <code>null</code> is * returned. * * @return The accesskey character as a String (may be <code>null</code>). */ public String getAccessKeyAsString() { char accessKey = getAccessKey(); if (Character.isLetterOrDigit(accessKey)) { return String.valueOf(accessKey); } return null; }