pt.moredata.widgets.table
Class FieldDelegate

java.lang.Object
  extended bypt.moredata.widgets.table.WidgetDelegate
      extended bypt.moredata.widgets.table.FieldDelegate
All Implemented Interfaces:
java.io.Serializable

public class FieldDelegate
extends WidgetDelegate

See Also:
Serialized Form

Field Summary
 
Fields inherited from class pt.moredata.widgets.table.WidgetDelegate
cellPropertiesEditor, cellPropertiesRenderer, editorComponent, validated
 
Constructor Summary
FieldDelegate()
           
FieldDelegate(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 CellField
 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 setCellEditorProperties(CellProperties properties)
          Afectação das propriedades das CellProperties a DDataField
 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 setEditorValue(java.lang.Object value)
          Não implementado.
 void setRendererValue(java.lang.Object value)
          Não implementado.
 
Methods inherited from class pt.moredata.widgets.table.WidgetDelegate
addAfterEditListener, addCellChangeListener, addFocusListener, addKeyListener, addTableListener, cancelCellEditing, getCellProperties, getCurrentColumn, getCurrentRow, getEditorComponent, getFirstTime, getFocusGained, getRendererComponent, getValidated, isCellEditable, removeAfterEditListener, removeCellChangeListener, removeFocusListener, removeKeyListener, removeTableListener, setCurrentColumn, setCurrentRow, setEditorComponent, setFirstTime, setFocusGained, setRendererComponent, setValidated, startCellEditing, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDelegate

public FieldDelegate()

FieldDelegate

public FieldDelegate(CellProperties _properties)
Method Detail

setCellProperties

public void setCellProperties(CellProperties properties)
Description copied from class: WidgetDelegate
Sets the cellProperties attribute of the Delegate object

Overrides:
setCellProperties in class WidgetDelegate
Parameters:
properties - The new cellProperties value

setCellRendererProperties

public void setCellRendererProperties(CellProperties properties)
Description copied from class: WidgetDelegate
Sets the cellRendererProperties attribute of the Delegate object

Overrides:
setCellRendererProperties in class WidgetDelegate
Parameters:
properties - The new cellRendererProperties value

setCellEditorProperties

public void setCellEditorProperties(CellProperties properties)
Afectação das propriedades das CellProperties a DDataField

Overrides:
setCellEditorProperties in class WidgetDelegate
Parameters:
properties - The new cellEditorProperties value

setRendererValue

public void setRendererValue(java.lang.Object value)
Description copied from class: WidgetDelegate
Não implementado.

Specified by:
setRendererValue in class WidgetDelegate
Parameters:
value - The new rendererValue value

setEditorValue

public void setEditorValue(java.lang.Object value)
Description copied from class: WidgetDelegate
Não implementado.

Specified by:
setEditorValue in class WidgetDelegate
Parameters:
value - The new editorValue value

getCellEditorValue

public java.lang.Object getCellEditorValue()
Description copied from class: WidgetDelegate
Não implementado

Specified by:
getCellEditorValue in class WidgetDelegate
Returns:
The cellEditorValue value

prepareEditor

public void prepareEditor(javax.swing.JTable table,
                          java.lang.Object value,
                          boolean isSelected,
                          int row,
                          int column)
Faz a preparação do CellField

Overrides:
prepareEditor in class WidgetDelegate
Parameters:
table - Description of the Parameter
value - Description of the Parameter
isSelected - Description of the Parameter
row - Description of the Parameter
column - Description of the Parameter

prepareRenderer

public void prepareRenderer(javax.swing.JTable table,
                            java.lang.Object value,
                            boolean isSelected,
                            boolean hasFocus,
                            int row,
                            int column)
Description copied from class: WidgetDelegate
Preparação antes de devolver o renderer

Overrides:
prepareRenderer in class WidgetDelegate
Parameters:
table - Description of the Parameter
value - Description of the Parameter
isSelected - Description of the Parameter
hasFocus - Description of the Parameter
row - Description of the Parameter
column - Description of the Parameter

checkIt

public java.lang.String checkIt(int row,
                                int col)
Description copied from class: WidgetDelegate
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

Overrides:
checkIt in class WidgetDelegate
Parameters:
row - Description of the Parameter
col - Description of the Parameter
Returns:
Description of the Return Value

afterCheckIt

public boolean afterCheckIt()
Description copied from class: WidgetDelegate
Aqui pode-se aproveitar para por outras coisas após as validações

Overrides:
afterCheckIt in class WidgetDelegate
Returns:
Description of the Return Value

addAllListeners

public void addAllListeners()