public final class CharacterCommandHandler extends Object implements CommandHandler
In TEXT mode, the resulting character is appending to the DOM directly.
In MATH mode, the character is wrapped inside an mi element.
| Constructor and Description |
|---|
CharacterCommandHandler(String outputCharacter) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(DOMBuilder builder,
Element parentElement,
CommandToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
public CharacterCommandHandler(String outputCharacter)
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)
CommandHandlerCommandToken is being handled by the DOMBuilder.handleCommand in interface CommandHandlerbuilder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the command being processed.Copyright © 2008–2026 The University of Edinburgh. All rights reserved.