|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dataentry.component.AbstractDataEntryComponent
Company MoreData
| Field Summary | |
protected java.lang.String |
_columnName
Nome da coluna na tabela a que este componente esta associado. |
protected java.lang.String |
_tableAlias
The table alias |
protected java.lang.String |
_tableName
The table name. |
| Constructor Summary | |
AbstractDataEntryComponent(java.lang.String tableName,
java.lang.String columnName)
Constructor for the AbstractDataEntryComponent object |
|
AbstractDataEntryComponent(java.lang.String name,
java.lang.String tableName,
java.lang.String tableAlias,
java.lang.String columnName)
Constructor for the AbstractDataEntryComponent object |
|
| Method Summary | |
void |
addComponentModifiedListener(ComponentModifiedListener listener)
Adiciona um listener, para detectar alterações ao componente. |
protected void |
fireComponentEvent(ComponentEvent event,
int type)
Gera um evento para cada um dos listeneres registados no componente. |
java.lang.String |
getColumnName()
Devolve o nome da coluna da tabela a que este campo visual esta associado. |
java.lang.String |
getName()
Getter for the component name. |
java.lang.String |
getTableAlias()
Return the table alias of the table name. |
java.lang.String |
getTableName()
Devolve o nome da tabela a que este campo visual esta associado. |
java.lang.String |
getTableNameOrAlias()
Return the table alias or the table name if the alias is null. |
boolean |
isDataBaseComponent()
Check if the component is a database component. |
boolean |
isEditableForInsert()
Check if the component should be editable when the DataEntry is INSERT_MODE. |
boolean |
isEditableForQuery()
Check if the component should be editable when the DataEntry is QUERY_MODE. |
boolean |
isEditableForUpdate()
Check if the component should be editable when the DataEntry is UPDATE_MODE. |
void |
removeComponentModifiedListener(ComponentModifiedListener listener)
Remove um listener, para detectar alterações ao componente. |
void |
setAllowedCharacters(java.lang.String allowedCharacters)
Change the list of allowed characters to be used in the widget represeted by the component during a query only. |
void |
setDataBaseComponent(boolean dataBaseComponent)
Setter for property dataBaseComponent. |
void |
setEditableForInsert(boolean editable)
Change the component editable state when the DataEntry is INSERT_MODE. |
void |
setEditableForQuery(boolean editable)
Change the component editable state when the DataEntry is QUERY_MODE. |
void |
setEditableForUpdate(boolean editable)
Change the component editable state when the DataEntry is UPDATE_MODE. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface pt.moredata.dataentry.component.DataEntryComponent |
cleanUp, getCurrentRow, getFieldValue, getRows, setEditable, setFieldValue |
| Field Detail |
protected java.lang.String _tableName
protected java.lang.String _tableAlias
protected java.lang.String _columnName
| Constructor Detail |
public AbstractDataEntryComponent(java.lang.String tableName,
java.lang.String columnName)
throws NullTableNameException,
NullColumnNameException
tableName - Description of the ParametercolumnName - The column name of the component.
NullTableNameException - If the table name is null.
NullColumnNameException - If the column name is null.
public AbstractDataEntryComponent(java.lang.String name,
java.lang.String tableName,
java.lang.String tableAlias,
java.lang.String columnName)
throws NullTableNameException,
NullColumnNameException
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.
NullTableNameException - If the table name is null.
NullColumnNameException - If the column name is null.| Method Detail |
protected void fireComponentEvent(ComponentEvent event,
int type)
event - Evento que deve ser gerado.type - Tipo de evento que deve ser gerado.public java.lang.String getName()
getName in interface DataEntryComponentpublic java.lang.String getTableName()
getTableName in interface DataEntryComponentpublic java.lang.String getTableAlias()
getTableAlias in interface DataEntryComponentpublic java.lang.String getTableNameOrAlias()
getTableNameOrAlias in interface DataEntryComponentpublic java.lang.String getColumnName()
getColumnName in interface DataEntryComponentpublic void addComponentModifiedListener(ComponentModifiedListener listener)
addComponentModifiedListener in interface DataEntryComponentlistener - Listener a adicionar ao DataEntry.public void removeComponentModifiedListener(ComponentModifiedListener listener)
removeComponentModifiedListener in interface DataEntryComponentlistener - Listener a remover do DataEntry.public boolean isEditableForInsert()
isEditableForInsert in interface DataEntryComponentpublic boolean isEditableForQuery()
isEditableForQuery in interface DataEntryComponentpublic boolean isEditableForUpdate()
isEditableForUpdate in interface DataEntryComponentpublic void setEditableForInsert(boolean editable)
setEditableForInsert in interface DataEntryComponenteditable - The Component editable state.public void setEditableForQuery(boolean editable)
setEditableForQuery in interface DataEntryComponenteditable - The Component editable state.public void setEditableForUpdate(boolean editable)
setEditableForUpdate in interface DataEntryComponenteditable - The Component editable state.public void setAllowedCharacters(java.lang.String allowedCharacters)
setAllowedCharacters in interface DataEntryComponentpublic boolean isDataBaseComponent()
isDataBaseComponent in interface DataEntryComponentpublic void setDataBaseComponent(boolean dataBaseComponent)
setDataBaseComponent in interface DataEntryComponentdataBaseComponent - New value of property dataBaseComponent.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||