站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

TokenCategory (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

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/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.