be.ugent.caagt.swirl.commands

Class FaceBuilder


public class FaceBuilder
extends DefaultFaceBuilder

Extension of DefaultFaceBuilder enabling the following features: To use this face builder it should be registered with the face manager by calling register(CommandManager) before any commands are configured.

Important note: work on this part of the Swirl library will be discontinued because unfortunately newer versions of the GUI commands framework will no longer be available as open source. In due course this class will become deprecated and will eventually be removed from the library.

Method Summary

protected void
buildAccelerator(Face face, Element commandElement)
protected void
buildText(Face face, Element faceElement)
be.ugent.caagt.swirl.commands.DynamicFace
createFace(FaceId id, FaceManager faceManager)
protected String
processAcceleratorKey(Face face, String newText)
Process the accelerator key part of the given text and return the text without that part.
static void
register(CommandManager commandManager)
Register this face builder with the command system instead of the default.

Method Details

buildAccelerator

protected void buildAccelerator(Face face,
                                Element commandElement)

buildText

protected void buildText(Face face,
                         Element faceElement)

createFace

public be.ugent.caagt.swirl.commands.DynamicFace createFace(FaceId id,
                                                            FaceManager faceManager)

processAcceleratorKey

protected String processAcceleratorKey(Face face,
                                       String newText)
Process the accelerator key part of the given text and return the text without that part.

register

public static void register(CommandManager commandManager)
Register this face builder with the command system instead of the default.