org.mlc.swing.layout
Interface ComponentBuilder

All Known Implementing Classes:
ButtonBarComponentBuilder, DefaultComponentBuilder, JListComponentBuilder, JTableComponentBuilder, JToolBarComponentBuilder, JTreeComponentBuilder, SeparatorComponentBuilder

public interface ComponentBuilder

All components that want to be included in the list of components that want to be part of the builder must implement this interface

Since:
Ptolemy II 8.0
Version:
$Id: ComponentBuilder.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Michael Connor

Method Summary
 ComponentDef getComponentDef(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> properties)
           
 java.lang.String getDeclaration(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> properties)
          Returns the appropriate declaration suitable for this component
 java.awt.Component getInstance(java.util.Map<java.lang.String,java.lang.Object> properties)
          Returns an instance of this object given the specified properties
 java.util.List<BeanProperty> getProperties()
          Returns a list of properties that are appropriate for construction
 boolean isComponentALayoutContainer()
           
 

Method Detail

getProperties

java.util.List<BeanProperty> getProperties()
Returns a list of properties that are appropriate for construction


getDeclaration

java.lang.String getDeclaration(java.lang.String name,
                                java.util.Map<java.lang.String,java.lang.Object> properties)
Returns the appropriate declaration suitable for this component


getInstance

java.awt.Component getInstance(java.util.Map<java.lang.String,java.lang.Object> properties)
                               throws java.lang.Exception
Returns an instance of this object given the specified properties

Throws:
java.lang.Exception

isComponentALayoutContainer

boolean isComponentALayoutContainer()

getComponentDef

ComponentDef getComponentDef(java.lang.String name,
                             java.util.Map<java.lang.String,java.lang.Object> properties)