public class ComponentMapper extends MouseListenerBase
Description: This class is used to encapsulate the mapping logic between model and gui components. This class delegates in the ControlFactory which is pluggable. The ControlFactory classname is taken from the configuration item record with name "ComponentFactory".
Copyright: Copyright (c) 2003
Company: Irisel Consulting
Constructor and Description |
---|
ComponentMapper() |
Modifier and Type | Method and Description |
---|---|
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) |
java.lang.Object |
getComponentValue(java.awt.Component thisInput,
int type1,
int sqltype) |
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) |
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
public javax.swing.JLabel getLabel(ClassVO clsvo, PropertyVO prop)
public javax.swing.JLabel getLabel(ClassVO clsvo, int propId)
public java.awt.Component getComponent(ClassVO clsvo, Instance instance, int propId)
clsvo
- ClassVO objectinstance
- Instance object used to initialize the controlpropId
- Index of the property in the instance associated with this controlpublic java.awt.Component getComponent(ClassVO clsvo, PropertyVO propvo, java.lang.Object value)
public java.awt.Component getTableCellComponent(ClassVO cvo, Instance inst, int col)
public java.lang.Object getComponentValue(java.awt.Component component)
public void setComponentValue(java.awt.Component component, java.lang.Object value)
public java.lang.Object getComponentValue(java.awt.Component thisInput, int type1, int sqltype)