org.pietschy.command
Class FaceManager
java.lang.Object
org.pietschy.command.FaceManager
public class FaceManager
extends java.lang.Object
This class is responsible for the management of the faces for a given
CommandManager
.
It is used by
faces
to locate their parents. Construction of
Face
instances
is delegated to an instance of
AbstractFaceBuilder
.
createFace
public Face createFace(Command command,
String name)
extractFaces
protected void extractFaces(Element parent)
This is invoked for every element that contains face information in a newly loaded
configuration file.
parent
- the element that contains one or more face elements.
getFacesFor
public Face[] getFacesFor(Command parent)
Retreives the faces that are registered for the specified parent id.
isMenuTooltipsEnabled
public boolean isMenuTooltipsEnabled()
Checks if tooltip are globally enabled on menus. This setting will only be used by
faces
that haven't been explicitly configured to enable or disable tooltips on
menus.
- true if tooltips are enabled on menus, false otherwise.
put
public void put(Face face)
setFaceBuilder
public void setFaceBuilder(AbstractFaceBuilder faceBuilder)
faceBuilder
- the new builder to use.
setMenuTooltipsEnabled
public void setMenuTooltipsEnabled(boolean menuTooltipsEnabled)
Configures the current menu tooltip state and notifies all
faces
that the
state has changed. This setting will be used by all
faces
that haven't been
explicitly configured to enable or disable tooltips on menus.
menuTooltipsEnabled
- true to enable tooltips on menus, false to
disable them.