com.irisel.oms.guiom.interfaces
Interface ComponentFactory

All Known Implementing Classes:
ComponentFactoryBase

public interface ComponentFactory


Method Summary
 java.awt.Component getComponent(ClassVO clsvo, Instance instance, int propId)
          It returns a JComponent object used as input control for a OMS Property.
 java.awt.Component getComponent(ClassVO clsvo, PropertyVO propvo, java.lang.Object value)
           
 java.lang.Object getComponentValue(java.awt.Component component)
           
 javax.swing.JLabel getLabel(ClassVO clsvo, int propId)
           
 javax.swing.JLabel getLabel(ClassVO clsvo, PropertyVO prop)
           
 java.awt.Component getTableCellComponent(ClassVO cvo, Instance inst, int col)
           
 void setComponentValue(java.awt.Component component, java.lang.Object value)
           
 

Method Detail

getComponent

java.awt.Component getComponent(ClassVO clsvo,
                                Instance instance,
                                int propId)
It returns a JComponent object used as input control for a OMS Property. The property is defined by its class (clsvo), and property id (propId).

Parameters:
clsvo - ClassVO object
instance - Instance object used to initialize the control
propId - Index of the property in the instance associated with this control
Returns:
JComponent

getComponent

java.awt.Component getComponent(ClassVO clsvo,
                                PropertyVO propvo,
                                java.lang.Object value)

getLabel

javax.swing.JLabel getLabel(ClassVO clsvo,
                            int propId)

getLabel

javax.swing.JLabel getLabel(ClassVO clsvo,
                            PropertyVO prop)

getTableCellComponent

java.awt.Component getTableCellComponent(ClassVO cvo,
                                         Instance inst,
                                         int col)

getComponentValue

java.lang.Object getComponentValue(java.awt.Component component)

setComponentValue

void setComponentValue(java.awt.Component component,
                       java.lang.Object value)