org.bdgp.swing
Interface ComponentNameResolver
- public interface ComponentNameResolver
Interface for defining a name resolver for a XMLLayoutPanel
.
- See Also:
XMLLayout
,
XMLLayoutPanel
Method Summary |
java.awt.Component |
resolveName(java.lang.String id,
java.util.Properties props)
Returns a component based on the id provided. |
resolveName
public java.awt.Component resolveName(java.lang.String id,
java.util.Properties props)
- Returns a component based on the id provided. The component may
be configured based on the values in props.
No assumptions are made about the uniqueness of objects returned by
this method. If this method is called on the same id twice, the resolver
may return exactly the same object both times, or may return another
new object, according to the needs of the application.
- Parameters:
id
- identifies the component to returnprops
- information on how to configure the component- Returns:
- a component