Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.dombuilding

public final Class ListEnvironmentHandler

extends Object
implements EnvironmentHandler, CommandHandler
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler, uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler
Imports
uk.ac.ed.ph.snuggletex.SnuggleLogicException, uk.ac.ed.ph.snuggletex.definitions.BuiltinEnvironment, .CoreErrorCode, .CorePackageDefinitions, uk.ac.ed.ph.snuggletex.internal.DOMBuilder, .SnuggleParseException, uk.ac.ed.ph.snuggletex.tokens.CommandToken, .EnvironmentToken, .FlowToken, .TokenType, java.util.List, org.w3c.dom.Element

This handles LaTeX list environments (i.e. itemize and enumerate).
Author
David McKain
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleCommand(DOMBuilder builder, Element parentElement, CommandToken itemToken)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

public void
handleEnvironment(DOMBuilder builder, Element parentElement, EnvironmentToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler.handleEnvironment.

Builds the actual List environment

private void
handleListContent(DOMBuilder builder, Element parentElement, Element listElement, List<FlowToken> content)

private void
handleListItem(DOMBuilder builder, Element listElement, CommandToken itemToken)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ListEnvironmentHandlerback to summary
public ListEnvironmentHandler()

Method Detail

handleCommandback to summary
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken itemToken) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Exceptions
SnuggleParseException:
to indicate a client error
handleEnvironmentback to summary
public void handleEnvironment(DOMBuilder builder, Element parentElement, EnvironmentToken token) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.EnvironmentHandler.handleEnvironment.

Builds the actual List environment

handleListContentback to summary
private void handleListContent(DOMBuilder builder, Element parentElement, Element listElement, List<FlowToken> content) throws SnuggleParseException
handleListItemback to summary
private void handleListItem(DOMBuilder builder, Element listElement, CommandToken itemToken) throws SnuggleParseException