public class ComponentFactoryBase extends java.lang.Object implements ComponentFactory
Título:
Descripción:
Copyright: Copyright (c) 2003
Empresa:
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
HYPERLINK_COLOR |
static java.awt.Color |
MANDATORY_COLOR |
static JComboList |
static_jcb |
static javax.swing.table.DefaultTableCellRenderer |
static_txtf |
static int |
TEXTFIELD_HEIGHT |
static int |
TEXTFIELD_WIDTH |
| Constructor and Description |
|---|
ComponentFactoryBase() |
| 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 prop,
java.lang.Object value) |
java.lang.Object |
getComponentValue(java.awt.Component component)
This method is provided to obtain a component value.
|
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) |
java.awt.Component |
getTableCellComponent(ClassVO clsvo,
PropertyVO prop,
java.lang.Object value) |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed
and released) on a component.
|
void |
setComponentValue(java.awt.Component component,
java.lang.Object value)
This method is used to set a component value.
|
void |
setDimensions(java.awt.Component c,
java.lang.String dimensions)
String format matches that of dimensions field in oms_gui_comp_map: comma-separated integer values (2, 4 or 6 )
corresponding to height,width for preferred,minimum and maximum dimension, respectively.
|
public static final java.awt.Color MANDATORY_COLOR
public static final java.awt.Color HYPERLINK_COLOR
public static final int TEXTFIELD_WIDTH
public static final int TEXTFIELD_HEIGHT
public static javax.swing.table.DefaultTableCellRenderer static_txtf
public static JComboList static_jcb
public ComponentFactoryBase()
throws GuiException
GuiExceptionpublic javax.swing.JLabel getLabel(ClassVO clsvo, int propId)
getLabel in interface ComponentFactorypublic javax.swing.JLabel getLabel(ClassVO clsvo, PropertyVO prop)
getLabel in interface ComponentFactorypublic void mouseClicked(java.awt.event.MouseEvent e)
public java.awt.Component getComponent(ClassVO clsvo, Instance instance, int propId)
ComponentFactorygetComponent in interface ComponentFactoryclsvo - 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 prop, java.lang.Object value)
getComponent in interface ComponentFactorypublic void setDimensions(java.awt.Component c,
java.lang.String dimensions)
dimensions - c - componentpublic java.awt.Component getTableCellComponent(ClassVO cvo, Instance inst, int col)
getTableCellComponent in interface ComponentFactorypublic java.awt.Component getTableCellComponent(ClassVO clsvo, PropertyVO prop, java.lang.Object value)
public java.lang.Object getComponentValue(java.awt.Component component)
getComponentValue in interface ComponentFactorypublic void setComponentValue(java.awt.Component component,
java.lang.Object value)
setComponentValue in interface ComponentFactory