当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
TokenID (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Interface TokenID
- All Superinterfaces:
- TokenCategory
- All Known Subinterfaces:
- ImageTokenID
- All Known Implementing Classes:
- BaseImageTokenID, BaseTokenID
public interface TokenID
- extends TokenCategory
Token-id is a unique identifier of a particular token.
It's not a classical token, because it doesn't contain the image of the token.
The token image is handled separately in general.
The common place where the tokens should be defined is
the appropriate token-context for which they are being
created.
The fact that TokenID extends TokenCategory
helps to treat the colorings more easily by working with
TokenCategory only (it can be TokenID too).
getCategory
TokenCategory getCategory()
- Get the optional category of the token.