jcreek.gui.representation
Class EntityComponentFactory

java.lang.Object
  extended byjcreek.gui.representation.EntityComponentFactory

public class EntityComponentFactory
extends java.lang.Object

Class that produces Swing component to edit different types of Entities in relations.

Version:
1.0
Author:
Frode Sørmo

Method Summary
static javax.swing.JComponent getEntityComponent(Relation rel, boolean editable)
          Returns a JComponent that is made to display or edit the value component of the supplied relation.
static Entity[] getSubEntities(Entity ent, RelationType[] relationClassDescriptors, boolean includeRelationValue)
           
static javax.swing.JComboBox getSymbolComboBox(Relation rel, Entity[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEntityComponent

public static javax.swing.JComponent getEntityComponent(Relation rel,
                                                        boolean editable)
Returns a JComponent that is made to display or edit the value component of the supplied relation.


getSymbolComboBox

public static javax.swing.JComboBox getSymbolComboBox(Relation rel,
                                                      Entity[] values)

getSubEntities

public static Entity[] getSubEntities(Entity ent,
                                      RelationType[] relationClassDescriptors,
                                      boolean includeRelationValue)


Created at IDI, NTNU by the Artificial Intelligence and Learning group