|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.Defaults
public class Defaults
Defines all the defaults for the GUI Command infrastructure. It can be accessed
via GuiCommands.defaults().
| Constructor Summary | |
|---|---|
Defaults()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getAlternativeFaceContexts(java.lang.String context)
Gets the list of alternative face contexts to try if a face with the specfied context doesn't exits. |
AnnotationSupport |
getAnnotationSupport()
Gets the AnnotationSupport instance used by the library. |
ButtonFactory |
getButtonFactory()
Gets the default ButtonFactory used by the library. |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader used by the library. |
ConfigurationLoader |
getConfigurationLoader()
Gets the ConfigurationLoader. |
FaceRenderer |
getFaceRenderer()
Gets the FaceRenderer used by the library. |
GroupMemberFactory |
getGroupMemberFactory()
Gets the GroupMemberFactory used by the library. |
GroupMemberParser |
getGroupMemberParser()
Gets the GroupMemberParser used by the library. |
IconFactory |
getIconFactory()
Gets the user defined IconFactory used to load custom icons. |
MenuFactory |
getMenuFactory()
Gets the default MenuFactory used by the library. |
java.lang.String |
getPopupContext(java.lang.String context)
Gets the appropriate context to use for popup menus of the specified context. |
ToolbarFactory |
getToolbarFactory()
Gets the default ToolbarFactory used by the library. |
void |
setAlternativeFaceContexts(java.lang.String face,
java.lang.String... alternatives)
Sets the list of alternative face contexts to try if a face with the specfied context doesn't exits. |
void |
setAnnotationSupport(AnnotationSupport annotationSupport)
Sets the AnnotationSupport instance used by the library. |
void |
setButtonFactory(ButtonFactory buttonFactory)
Sets the default ButtonFactory to use. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader used by the library. |
void |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets the ConfigurationLoader used by the library. |
void |
setFaceRenderer(FaceRenderer faceRenderer)
Sets the FaceRenderer for the library to use. |
void |
setGroupMemberFactory(GroupMemberFactory groupMemberFactory)
Sets the GroupMemberFactory used by the library. |
void |
setGroupMemberParser(GroupMemberParser groupMemberParser)
Sets the GroupMemberParser to use. |
void |
setIconFactory(IconFactory iconFactory)
Sets the user defined IconFactory used to load custom icons. |
void |
setMenuFactory(MenuFactory menuFactory)
Sets the default MenuFactory to use. |
void |
setPopupContext(java.lang.String context,
java.lang.String popupContext)
Sets the face context to use for popups of buttons created with the specified popup. |
void |
setToolbarFactory(ToolbarFactory toolbarFactory)
Sets the default ToolbarFactory to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Defaults()
| Method Detail |
|---|
public ButtonFactory getButtonFactory()
ButtonFactory used by the library.
ButtonFactory used by the library.public void setButtonFactory(ButtonFactory buttonFactory)
ButtonFactory to use.
buttonFactory - the default ButtonFactory to use.public MenuFactory getMenuFactory()
MenuFactory used by the library.
MenuFactory used by the library.public void setMenuFactory(MenuFactory menuFactory)
MenuFactory to use.
menuFactory - the default MenuFactory to use.public ToolbarFactory getToolbarFactory()
ToolbarFactory used by the library.
ToolbarFactory used by the library.public void setToolbarFactory(ToolbarFactory toolbarFactory)
ToolbarFactory to use.
toolbarFactory - the default ToolbarFactory to use.public GroupMemberParser getGroupMemberParser()
GroupMemberParser used by the library.
GroupMemberParser used by the library.public void setGroupMemberParser(GroupMemberParser groupMemberParser)
GroupMemberParser to use.
groupMemberParser - the GroupMemberParser to use.public GroupMemberFactory getGroupMemberFactory()
GroupMemberFactory used by the library.
GroupMemberFactory used by the library.public void setGroupMemberFactory(GroupMemberFactory groupMemberFactory)
GroupMemberFactory used by the library.
groupMemberFactory - the GroupMemberFactory to use.public java.lang.String[] getAlternativeFaceContexts(java.lang.String context)
Command.findBestFace(String).
setAlternativeFaceContexts(String, String...)
public void setAlternativeFaceContexts(java.lang.String face,
java.lang.String... alternatives)
Command.findBestFace(String).
alternatives - the alternate face contexts to use if there's no face matching
the specified context.getAlternativeFaceContexts(String)public java.lang.String getPopupContext(java.lang.String context)
Face.TOOLBAR and the popup context is Face.TOOLBAR_POPUP.
context - the context of the main button.
setPopupContext(String, String)
public void setPopupContext(java.lang.String context,
java.lang.String popupContext)
Face.TOOLBAR and the popup context is Face.TOOLBAR_POPUP.
context - the main contextpopupContext - the context of any popup created by buttons of the main context.public ConfigurationLoader getConfigurationLoader()
ConfigurationLoader.
ConfigurationLoader.public void setConfigurationLoader(ConfigurationLoader configurationLoader)
ConfigurationLoader used by the library.
configurationLoader - the ConfigurationLoader used by the library.public java.lang.ClassLoader getClassLoader()
The default value is the class loader that loaded this class.
public void setClassLoader(java.lang.ClassLoader classLoader)
The default value is the class loader that loaded this class.
classLoader - the class loader used by the library.public IconFactory getIconFactory()
IconFactory used to load custom icons.
IconFactory used to load custom icons.public void setIconFactory(IconFactory iconFactory)
IconFactory used to load custom icons.
iconFactory - the IconFactory used to load custom icons.public FaceRenderer getFaceRenderer()
FaceRenderer used by the library. This is preconfigued to use
MacOSFaceRenderer on the Mac and the DefaultFaceRenderer on all
other platforms.
FaceRenderer used by the library.public void setFaceRenderer(FaceRenderer faceRenderer)
FaceRenderer for the library to use.
faceRenderer - the FaceRenderer for the library to use.public AnnotationSupport getAnnotationSupport()
AnnotationSupport instance used by the library.
AnnotationSupport instance used by the library.public void setAnnotationSupport(AnnotationSupport annotationSupport)
AnnotationSupport instance used by the library.
annotationSupport - the AnnotationSupport instance used by the library.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||