コード例 #1
0
 private void initialize() {
   TextAttribute textAttribute = textAttributeProvider.get(attributeKey);
   setDefaultReturnToken(new Token(textAttribute));
 }
コード例 #2
0
 /**
  * Create a new token whose data is the {@link TextAttribute} matching the given styleId.
  *
  * @param styleId
  * @return
  */
 protected Token newToken(String styleId) {
   TextAttribute textAttribute = textAttributeProvider.get(styleId);
   return new Token(textAttribute);
 }