|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.face.FaceManager
public class FaceManager
FaceManager provides support for the various command implementations to manage thier faces.
| Constructor Summary | |
|---|---|
FaceManager()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addFace(Face face)
Adds the specified face. |
(package private) Face |
createFace(java.lang.String context)
Creates a new empty face with the specified name. |
boolean |
faceExists(java.lang.String context)
Checks if a face exist for the specified context. |
Face |
findBestFace(java.lang.String context,
java.lang.String[] alternativeFaces)
Finds the best face for the specified context. |
Face |
getDefaultFace(boolean createIfMissing)
Gets the default face. |
Face |
getFace(java.lang.String context,
boolean createFace)
Gets the face for the specified context. |
(package private) void |
rebuildFaceDependencies()
|
void |
setFacePropertyChangeListener(java.beans.PropertyChangeListener faceListener)
Sets the global property change listener callback that will listen to all properties on all faces. |
(package private) void |
updateParentFace(Face face)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FaceManager()
| Method Detail |
|---|
public void setFacePropertyChangeListener(java.beans.PropertyChangeListener faceListener)
faceListener - the listener.
public Face getFace(java.lang.String context,
boolean createFace)
context - the contextcreateFace - true to create when not defined.
public Face findBestFace(java.lang.String context,
java.lang.String[] alternativeFaces)
context - the contextalternativeFaces - alternative contexts so search in order.
null if none face was found.Defaults.getAlternativeFaceContexts(String)public Face getDefaultFace(boolean createIfMissing)
createIfMissing - true to create the face when not defined, false
to return null.
null.Face createFace(java.lang.String context)
The face is automatically added to the command so there is no need explicitly installFace it.
context - the name of the face, "button" for example.
public boolean faceExists(java.lang.String context)
context - the context.
true if the face exists, false otherwise.public void addFace(Face face)
IllegalStateException will be thrown.
face - the face to add.void rebuildFaceDependencies()
void updateParentFace(Face face)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||