|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.command.FaceManager
public class FaceManager
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
.
CommandManager.getFaceManager()
,
setFaceBuilder(org.pietschy.command.AbstractFaceBuilder)
Constructor Summary | |
---|---|
protected |
FaceManager(CommandManager manager)
|
Method Summary | |
---|---|
Face |
createFace(Command command,
java.lang.String name)
|
protected void |
extractFaces(org.w3c.dom.Element parent)
This is invoked for every element that contains face information in a newly loaded configuration file. |
Face |
get(FaceId faceId)
|
AbstractFaceBuilder |
getFaceBuilder()
Gets the AbstractFaceBuilder currently in use by the manager. |
Face[] |
getFacesFor(Command parent)
Retreives the faces that are registered for the specified parent id. |
boolean |
isMenuTooltipsEnabled()
Checks if tooltip are globally enabled on menus. |
void |
put(Face face)
|
void |
setFaceBuilder(AbstractFaceBuilder faceBuilder)
Sets the AbstractFaceBuilder that the manager is to use for constructing faces. |
void |
setMenuTooltipsEnabled(boolean menuTooltipsEnabled)
Configures the current menu tooltip state and notifies all faces that the
state has changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FaceManager(CommandManager manager)
Method Detail |
---|
public void setFaceBuilder(AbstractFaceBuilder faceBuilder)
AbstractFaceBuilder
that the manager is to use for constructing faces.
faceBuilder
- the new builder to use.public AbstractFaceBuilder getFaceBuilder()
AbstractFaceBuilder
currently in use by the manager.
AbstractFaceBuilder
currently in use by the manager.public Face createFace(Command command, java.lang.String name)
public boolean isMenuTooltipsEnabled()
faces
that haven't been explicitly configured to enable or disable tooltips on
menus.
public void setMenuTooltipsEnabled(boolean menuTooltipsEnabled)
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.protected void extractFaces(org.w3c.dom.Element parent)
parent
- the element that contains one or more face elements.public Face[] getFacesFor(Command parent)
public Face get(FaceId faceId)
public void put(Face face)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |