public abstract class AbstractJDynFormFieldWithValueList extends AbstractJDynFormField implements JDynFormField, FocusListener
Modifier and Type | Class and Description |
---|---|
class |
AbstractJDynFormFieldWithValueList.KeyAdapterRegEx |
AbstractJDynFormField.IllegalFieldValue
JDynFormField.JDynFormFieldListener
Modifier and Type | Field and Description |
---|---|
protected Object |
assignedValue |
contents, emptyToNull, logger, parameters
Constructor and Description |
---|
AbstractJDynFormFieldWithValueList(DynObject parameters,
ServiceManager serviceManager) |
Modifier and Type | Method and Description |
---|---|
void |
focusGained(FocusEvent arg0) |
void |
focusLost(FocusEvent arg0) |
Object |
getAssignedValue() |
protected String |
getDefaultValue() |
protected JComboBox |
getJComboBox() |
protected JTextField |
getJTextField() |
String |
getJTextFieldRegex()
Este método es por si se quiere añadir una expresión regular al JTextField
Por defecto, se puede escribir cualquier cosa, pero se puede sobreescribir este
método en la clase que lo requiera para añadir restricciones (p.ej: en los numéricos)
|
Object |
getValue()
Get the value of field from the form.
|
protected String |
getValueFromJComponent() |
boolean |
hasValidValue() |
void |
initComponent() |
void |
setValue(Object value) |
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, asJComponent, clear, fetch, fireFieldChangedEvent, fireFieldEnterEvent, fireFieldExitEvent, fireMessageEvent, getDefinition, getForm, getJLabel, getLabel, getManager, getName, getParameterValue, getServiceManager, getTagValueAsBoolean, getTagValueAsBoolean, getTagValueAsInt, getTagValueAsInt, getTagValueAsString, getTagValueAsString, isModified, isReadOnly, loadDefaultValuesFromTags, problemIndicator, removeListener, setForm, setReadOnly, setTranslateEmptyToNull, toString, translateEmptyToNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, clear, fetch, fireMessageEvent, getDefinition, getForm, getJLabel, getLabel, getName, isModified, isReadOnly, removeListener, setReadOnly
asJComponent
getManager
protected Object assignedValue
public AbstractJDynFormFieldWithValueList(DynObject parameters, ServiceManager serviceManager)
public Object getAssignedValue()
getAssignedValue
in class AbstractJDynFormField
protected JTextField getJTextField()
protected JComboBox getJComboBox()
public void initComponent()
initComponent
in class AbstractJDynFormField
protected String getValueFromJComponent()
public void setValue(Object value)
setValue
in interface JDynFormField
protected String getDefaultValue()
public Object getValue()
JDynFormField
getValue
in interface JDynFormField
public boolean hasValidValue()
hasValidValue
in interface JDynFormField
public void focusGained(FocusEvent arg0)
focusGained
in interface FocusListener
public void focusLost(FocusEvent arg0)
focusLost
in interface FocusListener
public String getJTextFieldRegex()