org.mlc.swing.layout
Class JTableComponentBuilder

java.lang.Object
  extended by org.mlc.swing.layout.JTableComponentBuilder
All Implemented Interfaces:
ComponentBuilder

public class JTableComponentBuilder
extends java.lang.Object
implements ComponentBuilder

This is the ComponentBuilder used to build JTables. When a JTable is added, it will be given some default data just so the user can get an idea of what it might look like.

Author:
Michael Connor

Constructor Summary
JTableComponentBuilder()
           
 
Method Summary
 ComponentDef getComponentDef(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> beanProperties)
           
 java.lang.String getDeclaration(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> beanProperties)
          Returns the appropriate declaration suitable for this component
 java.awt.Component getInstance(java.util.Map<java.lang.String,java.lang.Object> beanProperties)
          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()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JTableComponentBuilder

public JTableComponentBuilder()
Method Detail

getDeclaration

public java.lang.String getDeclaration(java.lang.String name,
                                       java.util.Map<java.lang.String,java.lang.Object> beanProperties)
Description copied from interface: ComponentBuilder
Returns the appropriate declaration suitable for this component

Specified by:
getDeclaration in interface ComponentBuilder

getInstance

public java.awt.Component getInstance(java.util.Map<java.lang.String,java.lang.Object> beanProperties)
                               throws java.lang.Exception
Description copied from interface: ComponentBuilder
Returns an instance of this object given the specified properties

Specified by:
getInstance in interface ComponentBuilder
Throws:
java.lang.Exception

getProperties

public java.util.List<BeanProperty> getProperties()
Description copied from interface: ComponentBuilder
Returns a list of properties that are appropriate for construction

Specified by:
getProperties in interface ComponentBuilder

isComponentALayoutContainer

public boolean isComponentALayoutContainer()
Specified by:
isComponentALayoutContainer in interface ComponentBuilder

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getComponentDef

public ComponentDef getComponentDef(java.lang.String name,
                                    java.util.Map<java.lang.String,java.lang.Object> beanProperties)
Specified by:
getComponentDef in interface ComponentBuilder