|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.widgets.table.WidgetDelegate
pt.moredata.widgets.table.TextFieldDelegate
Title: DDataTextFieldDelegate
Description: Define o comportamento que editor e renderer devem ter
por default, podendo ser mudados
Copyright: Copyright (c)
Company:
| Field Summary |
| Fields inherited from class pt.moredata.widgets.table.WidgetDelegate |
cellPropertiesEditor, cellPropertiesRenderer, editorComponent, validated |
| Constructor Summary | |
TextFieldDelegate()
|
|
TextFieldDelegate(CellProperties _properties)
|
|
| Method Summary | |
void |
addAllListeners()
|
boolean |
afterCheckIt()
Aqui pode-se aproveitar para por outras coisas após as validações |
java.lang.String |
checkIt(int row,
int col)
Este método deve ser aproveitado para correr as rotinas de validaçoes devolvendo uma mensagem se houver erros ou null senão houver erros |
java.lang.Object |
getCellEditorValue()
Não implementado |
void |
prepareEditor(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Faz a preparação do DDataCellField |
void |
prepareRenderer(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Preparação antes de devolver o renderer |
void |
setAutoFormat(boolean _autoFormat)
|
void |
setCellEditorProperties(CellProperties properties)
Sets the cellEditorProperties attribute of the Delegate object |
void |
setCellProperties(CellProperties properties)
Sets the cellProperties attribute of the Delegate object |
void |
setCellRendererProperties(CellProperties properties)
Sets the cellRendererProperties attribute of the Delegate object |
void |
setDbDataType(java.lang.String _dbDataType)
|
void |
setEditable(boolean _editable)
|
void |
setEditorValue(java.lang.Object value)
Não implementado. |
void |
setMaxLenght(int _maxLenght)
|
void |
setMaxValue(long _max)
|
void |
setMinValue(long _min)
|
void |
setRendererValue(java.lang.Object value)
Não implementado. |
void |
setRequired(boolean _required)
|
void |
setValidateOnLostFocus(boolean _validateOnLostFocus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextFieldDelegate()
public TextFieldDelegate(CellProperties _properties)
| Method Detail |
public void setCellProperties(CellProperties properties)
WidgetDelegate
setCellProperties in class WidgetDelegateproperties - The new cellProperties valuepublic void setCellRendererProperties(CellProperties properties)
WidgetDelegate
setCellRendererProperties in class WidgetDelegateproperties - The new cellRendererProperties valuepublic void setCellEditorProperties(CellProperties properties)
WidgetDelegate
setCellEditorProperties in class WidgetDelegateproperties - The new cellEditorProperties valuepublic void setDbDataType(java.lang.String _dbDataType)
public void setMinValue(long _min)
public void setMaxValue(long _max)
public void setMaxLenght(int _maxLenght)
public void setRequired(boolean _required)
public void setValidateOnLostFocus(boolean _validateOnLostFocus)
public void setEditable(boolean _editable)
public void setAutoFormat(boolean _autoFormat)
public void setRendererValue(java.lang.Object value)
WidgetDelegate
setRendererValue in class WidgetDelegatevalue - The new rendererValue valuepublic void setEditorValue(java.lang.Object value)
WidgetDelegate
setEditorValue in class WidgetDelegatevalue - The new editorValue valuepublic java.lang.Object getCellEditorValue()
WidgetDelegate
getCellEditorValue in class WidgetDelegate
public void prepareEditor(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
prepareEditor in class WidgetDelegatetable - Description of the Parametervalue - Description of the ParameterisSelected - Description of the Parameterrow - Description of the Parametercolumn - Description of the Parameter
public void prepareRenderer(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
WidgetDelegate
prepareRenderer in class WidgetDelegatetable - Description of the Parametervalue - Description of the ParameterisSelected - Description of the ParameterhasFocus - Description of the Parameterrow - Description of the Parametercolumn - Description of the Parameter
public java.lang.String checkIt(int row,
int col)
WidgetDelegate
checkIt in class WidgetDelegaterow - Description of the Parametercol - Description of the Parameter
public boolean afterCheckIt()
WidgetDelegate
afterCheckIt in class WidgetDelegatepublic void addAllListeners()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||