org.netbeans.modules.editor.lib/3 3.23.0 19

org.netbeans.editor
Interface TokenCategory

All Known Subinterfaces:
ImageTokenID, TokenID
All Known Implementing Classes:
BaseImageTokenID, BaseTokenCategory, BaseTokenID

public interface TokenCategory

Token category enables dividing the tokens into groups. Each token by default can be contained in zero or one group. If a coloring for the token can't be found and it has non-null token-group then the coloring for the group is attempted.


Method Summary
 String getName()
          Get the name of the category.
 int getNumericID()
          Get the optional numeric identification of this token-category.
 

Method Detail

getName

String getName()
Get the name of the category.


getNumericID

int getNumericID()
Get the optional numeric identification of this token-category. It can help to use the category in switch-case statements. It should default to a zero if no numeric-id should be used.


org.netbeans.modules.editor.lib/3 3.23.0 19

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.