|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.irisel.oms.guiom.comp.ComponentFactoryBase
public class ComponentFactoryBase
Título:
Descripción:
Copyright: Copyright (c) 2003
Empresa:
Field Summary | |
---|---|
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 Summary | |
---|---|
ComponentFactoryBase()
|
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 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ComponentFactoryBase() throws GuiException
GuiException
Method Detail |
---|
public javax.swing.JLabel getLabel(ClassVO clsvo, int propId)
getLabel
in interface ComponentFactory
public javax.swing.JLabel getLabel(ClassVO clsvo, PropertyVO prop)
getLabel
in interface ComponentFactory
public void mouseClicked(java.awt.event.MouseEvent e)
public java.awt.Component getComponent(ClassVO clsvo, Instance instance, int propId)
ComponentFactory
getComponent
in interface ComponentFactory
clsvo
- ClassVO objectinstance
- Instance object used to initialize the controlpropId
- Index of the property in the instance associated with this control
public java.awt.Component getComponent(ClassVO clsvo, PropertyVO prop, java.lang.Object value)
getComponent
in interface ComponentFactory
public 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 ComponentFactory
public java.awt.Component getTableCellComponent(ClassVO clsvo, PropertyVO prop, java.lang.Object value)
public java.lang.Object getComponentValue(java.awt.Component component)
getComponentValue
in interface ComponentFactory
public void setComponentValue(java.awt.Component component, java.lang.Object value)
setComponentValue
in interface ComponentFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |