pt.moredata.dataentry.component.swing
Class ComboBoxComponent
java.lang.Object
pt.moredata.dataentry.component.AbstractDataEntryComponent
pt.moredata.dataentry.component.FormDataEntryComponent
pt.moredata.dataentry.component.swing.JComboBoxComponent
pt.moredata.dataentry.component.swing.ComboBoxComponent
- All Implemented Interfaces:
- DataEntryComponent, java.io.Serializable
- public class ComboBoxComponent
- extends JComboBoxComponent
Company MoreData
- Version:
- $Revision: 1.3 $
- Author:
- pcarmo
- See Also:
- Serialized Form
|
Constructor Summary |
ComboBoxComponent(java.lang.String tableName,
java.lang.String columnName,
ComboBox field)
Cria um novo campo visual a partir de um JComboBox. |
ComboBoxComponent(java.lang.String name,
java.lang.String tableName,
java.lang.String tableAlias,
java.lang.String columnName,
ComboBox field)
Constructor for the ComboBoxComponent object |
|
Method Summary |
java.lang.Object |
getFieldValue()
Devolve o valor guardado no componente. |
void |
setFieldValue(java.lang.Object value)
Altera o valor guardado no componente.
|
| Methods inherited from class pt.moredata.dataentry.component.AbstractDataEntryComponent |
addComponentModifiedListener, fireComponentEvent, getColumnName, getName, getTableAlias, getTableName, getTableNameOrAlias, isDataBaseComponent, isEditableForInsert, isEditableForQuery, isEditableForUpdate, removeComponentModifiedListener, setAllowedCharacters, setDataBaseComponent, setEditableForInsert, setEditableForQuery, setEditableForUpdate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxComponent
public ComboBoxComponent(java.lang.String tableName,
java.lang.String columnName,
ComboBox field)
throws NullTableNameException,
NullColumnNameException,
java.lang.NullPointerException
- Cria um novo campo visual a partir de um JComboBox.
- Parameters:
tableName - Nome da tabela associada ao campo visual.columnName - Nome da coluna da tabela associada ao campo visual.field - JComboBox onde sao introduzidos os dados.
- Throws:
NullTableNameException - If the table name is null.
NullColumnNameException - Se o nome da coluna for nulo.
java.lang.NullPointerException - Se o field for nulo.
ComboBoxComponent
public ComboBoxComponent(java.lang.String name,
java.lang.String tableName,
java.lang.String tableAlias,
java.lang.String columnName,
ComboBox field)
throws NullTableNameException,
NullColumnNameException,
java.lang.NullPointerException
- Constructor for the ComboBoxComponent object
- Parameters:
name - The component name. This name will be used to identify the
component, if the name is null, the columnName is used.tableName - The table name.tableAlias - The table alias.columnName - The column name of the component.field - JComboBox onde sao introduzidos os dados.
- Throws:
NullTableNameException - If the table name is null.
NullColumnNameException - If the column name is null.
java.lang.NullPointerException - Se o obj for nulo.
getFieldValue
public java.lang.Object getFieldValue()
- Devolve o valor guardado no componente.
- Specified by:
getFieldValue in interface DataEntryComponent- Overrides:
getFieldValue in class JComboBoxComponent
- Returns:
- O valor guardado no componente (pode ser null).
setFieldValue
public void setFieldValue(java.lang.Object value)
- Altera o valor guardado no componente.
O valor alterado e o valor do codigo e nao o da descricao.
- Specified by:
setFieldValue in interface DataEntryComponent- Overrides:
setFieldValue in class JComboBoxComponent
- Parameters:
value - O valor a guardar no componente.