org.pietschy.command
Class DefaultFaceBuilder
public class DefaultFaceBuilder
protected void | buildAccelerator(Face face, Element commandElement) - Interprets the accelerator string for the specified command and returns
a representative KeyStroke.
|
protected void | buildIcons(Face face, Element faceElement) - Scans the specified face element, extracts all the faces specified and adds them to
the face.
|
protected void | buildText(Face face, Element faceElement) - Configures the text properties of the face from the specified face element.
|
void | configure(Face face, Element faceElement) - Implementers of this class are responsible for building a
Face element for the
specified configuration data.
|
Face | createFace(FaceId id, FaceManager faceManager) - Creates a new empty face with the specified
id and uses the specified
CommandManager for locating its parent.
|
protected Icon | loadIcon(Element iconElement) - Loads the icon specified by the element.
|
protected void | populateClientProperties(Face face, Element faceRoot)
|
DefaultFaceBuilder
public DefaultFaceBuilder()
Creats a new builder.
buildAccelerator
protected void buildAccelerator(Face face,
Element commandElement)
Interprets the accelerator string for the specified command and returns
a representative KeyStroke.
The property form for the accelerator is as follows.
commandId.accel=alt-shift-ctrl-meta-c
buildIcons
protected void buildIcons(Face face,
Element faceElement)
Scans the specified face element, extracts all the faces specified and adds them to
the face.
face
- the Face
to configureMenu.faceElement
- the element defining the faces properties.
buildText
protected void buildText(Face face,
Element faceElement)
Configures the text properties of the face from the specified face element.
face
- the Face
to configureMenu.faceElement
- the element defining the faces properties.
configure
public void configure(Face face,
Element faceElement)
Implementers of this class are responsible for building a
Face
element for the
specified configuration data.
- configure in interface AbstractFaceBuilder
face
- the Face
to configureMenu.faceElement
- the element defining the faces properties.
loadIcon
protected Icon loadIcon(Element iconElement)
Loads the icon specified by the element.
populateClientProperties
protected void populateClientProperties(Face face,
Element faceRoot)