org.gui4j.core
Class Gui4jComponentContainerManager

java.lang.Object
org.gui4j.core.Gui4jComponentContainerManager
- All Implemented Interfaces:
- org.gui4j.exception.ErrorTags, java.io.Serializable
- public final class Gui4jComponentContainerManager
- extends java.lang.Object
- implements java.io.Serializable, org.gui4j.exception.ErrorTags
The Gui4jComponentContainerManager manages different instances of Gui4jComponentContainer.
Whenever an instance of Gui4jComponentContainer for a given resource file and given
controller class type is requested, the Gui4jComponentManager creates that instance
or returns an already created instance for the same arguments.
| Fields inherited from interface org.gui4j.exception.ErrorTags |
EXCEPTION_OCCURED, PROGRAMMING_ERROR, PROGRAMMING_ERROR_illegal_access_exception, PROGRAMMING_ERROR_instantiation_exception, PROGRAMMING_ERROR_invocation_target_exception, PROGRAMMING_ERROR_method_ambiguous, PROGRAMMING_ERROR_method_not_found, PROGRAMMING_ERROR_parameter_null, RESOURCE_ERROR, RESOURCE_ERROR_access_type_not_compatible, RESOURCE_ERROR_access_unexpected_character, RESOURCE_ERROR_access_unexpected_end, RESOURCE_ERROR_access_value_type_not_defined, RESOURCE_ERROR_alias_already_defined, RESOURCE_ERROR_alias_class_not_found, RESOURCE_ERROR_alias_not_defined_in_path, RESOURCE_ERROR_alias_undefined, RESOURCE_ERROR_attribute_editable_defined, RESOURCE_ERROR_attribute_listEditable_defined, RESOURCE_ERROR_attribute_not_defined, RESOURCE_ERROR_double_DataConversionException, RESOURCE_ERROR_element_at_row_col_already_defined, RESOURCE_ERROR_gui4jComponent_already_defined, RESOURCE_ERROR_gui4jComponent_already_registered, RESOURCE_ERROR_gui4jComponent_not_defined, RESOURCE_ERROR_gui4jComponent_not_registered, RESOURCE_ERROR_int_DataConversionException, RESOURCE_ERROR_invalid_column, RESOURCE_ERROR_invalid_defaultButton, RESOURCE_ERROR_invalid_keystroke, RESOURCE_ERROR_invalid_row, RESOURCE_ERROR_invalid_url, RESOURCE_ERROR_jdom_exception, RESOURCE_ERROR_labelform_column_conflict, RESOURCE_ERROR_placement_must_contain_gui4jComponent, RESOURCE_ERROR_property_getter_type_incompatible, RESOURCE_ERROR_style_defined_twice, RESOURCE_ERROR_style_not_defined, RESOURCE_ERROR_tableLayout_invalid_col_row_str, RESOURCE_ERROR_type_not_compatible, RESOURCE_ERROR_unexpected_gui4jStyle_end, RESOURCE_ERROR_unknown_param, RESOURCE_ERROR_unknown_param_in_include |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mGui4jComponentContainerClassMap
private final java.util.Map mGui4jComponentContainerClassMap
mResourceMap
private final java.util.Map mResourceMap
mGui4j
private final Gui4jInternal mGui4j
mLogger
protected static final org.apache.commons.logging.Log mLogger
Gui4jComponentContainerManager
private Gui4jComponentContainerManager(Gui4jInternal gui4j)
getResourceNameFullyQuantified
public static java.lang.String getResourceNameFullyQuantified(java.lang.String baseName,
java.lang.String resourceName)
getBaseName
public static java.lang.String getBaseName(java.lang.Class c)
getNewInstance
public static Gui4jComponentContainerManager getNewInstance(Gui4jInternal gui4j)
getResource
Gui4jComponentContainerManager.Resource getResource(java.lang.String resourceNameFullyQuantified,
java.net.URL configurationSource)
clearResources
public void clearResources()
getGui4jComponentContainer
public Gui4jComponentContainer getGui4jComponentContainer(java.lang.Class controllerClass,
java.lang.String resourceNameFullyQuantified,
java.net.URL configurationSource)
- If a
Gui4jComponentContainer for the specified combination is already
loaded, then it is returned. Otherwise, a new instance is created. Note
that one instance of Gui4jComponentContainer might be shared by
several instances of Gui4jSwingContainer.
getLineNumber
public static int getLineNumber(org.dom4j.Attribute attribute)
getLineNumber
public static int getLineNumber(org.dom4j.Element element)