|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.widgets.table.WidgetDelegate
Description of the Class
| Field Summary | |
protected CellProperties |
cellPropertiesEditor
Description of the Field |
protected CellProperties |
cellPropertiesRenderer
Description of the Field |
protected javax.swing.JComponent |
editorComponent
Description of the Field |
protected boolean |
validated
Description of the Field |
| Constructor Summary | |
WidgetDelegate()
Constructor for the Delegate object |
|
WidgetDelegate(javax.swing.JComponent _editorComponent,
javax.swing.JComponent _rendererComponent)
Constructor for the Delegate object |
|
| Method Summary | |
void |
addAfterEditListener(AfterEditListener l)
Adds a feature to the AfterEditListener attribute of the Delegate object |
void |
addCellChangeListener(CellChangeListener l)
Adds a feature to the CellChangeListener attribute of the Delegate object |
void |
addFocusListener(java.awt.event.FocusListener l)
Adds a feature to the FocusListener attribute of the Delegate object |
void |
addKeyListener(java.awt.event.KeyListener l)
Adds a feature to the KeyListener attribute of the Delegate object |
void |
addTableListener(TableListener l)
Adds a feature to the TableListener attribute of the Delegate object |
boolean |
afterCheckIt()
Aqui pode-se aproveitar para por outras coisas após as validações |
void |
cancelCellEditing()
Description of the Method |
java.lang.String |
checkIt(int row,
int column)
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 |
abstract java.lang.Object |
getCellEditorValue()
Não implementado |
CellProperties[] |
getCellProperties()
Gets the cellProperties attribute of the Delegate object |
int |
getCurrentColumn()
Gets the currentColumn attribute of the Delegate object |
int |
getCurrentRow()
Gets the currentRow attribute of the Delegate object |
javax.swing.JComponent |
getEditorComponent()
Devolve o editor usado como editor |
boolean |
getFirstTime()
Gets the firstTime attribute of the Delegate object |
boolean |
getFocusGained()
Gets the focusGained attribute of the Delegate object |
javax.swing.JComponent |
getRendererComponent()
Devolve o editor usado como renderer |
boolean |
getValidated()
Gets the validated attribute of the Delegate object |
boolean |
isCellEditable(java.util.EventObject anEvent)
Se a Celula é editavel |
void |
prepareEditor(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Preparação antes de executar o editor |
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 |
removeAfterEditListener(AfterEditListener l)
Description of the Method |
void |
removeCellChangeListener(CellChangeListener l)
Description of the Method |
void |
removeFocusListener(java.awt.event.FocusListener l)
Description of the Method |
void |
removeKeyListener(java.awt.event.KeyListener l)
Description of the Method |
void |
removeTableListener(TableListener l)
Description of the Method |
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 |
setCurrentColumn(int cc)
Sets the currentColumn attribute of the Delegate object |
void |
setCurrentRow(int cr)
Sets the currentRow attribute of the Delegate object |
void |
setEditorComponent(javax.swing.JComponent componente)
Define componente a ser utilizado pelo editor |
abstract void |
setEditorValue(java.lang.Object x)
Não implementado. |
void |
setFirstTime(boolean _firstTime)
Sets the firstTime attribute of the Delegate object |
void |
setFocusGained(boolean _focusGained)
Sets the focusGained attribute of the Delegate object |
void |
setRendererComponent(javax.swing.JComponent component)
Define componente a ser utilizado pelo renderer |
abstract void |
setRendererValue(java.lang.Object x)
Não implementado. |
void |
setValidated(boolean _validated)
Sets the validated attribute of the Delegate object |
boolean |
startCellEditing(java.util.EventObject anEvent)
Description of the Method |
boolean |
stopCellEditing()
Description of the Method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.JComponent editorComponent
protected boolean validated
protected CellProperties cellPropertiesEditor
protected CellProperties cellPropertiesRenderer
| Constructor Detail |
public WidgetDelegate()
public WidgetDelegate(javax.swing.JComponent _editorComponent,
javax.swing.JComponent _rendererComponent)
_editorComponent - Description of the Parameter_rendererComponent - Description of the Parameter| Method Detail |
public void setCellProperties(CellProperties properties)
properties - The new cellProperties valuepublic void setCellEditorProperties(CellProperties properties)
properties - The new cellEditorProperties valuepublic void setCellRendererProperties(CellProperties properties)
properties - The new cellRendererProperties valuepublic void setFirstTime(boolean _firstTime)
_firstTime - The new firstTime valuepublic boolean getFirstTime()
public void setFocusGained(boolean _focusGained)
_focusGained - The new focusGained valuepublic boolean getFocusGained()
public CellProperties[] getCellProperties()
public void setValidated(boolean _validated)
_validated - The new validated valuepublic boolean getValidated()
public abstract java.lang.Object getCellEditorValue()
public abstract void setEditorValue(java.lang.Object x)
x - The new editorValue valuepublic abstract void setRendererValue(java.lang.Object x)
x - The new rendererValue valuepublic boolean isCellEditable(java.util.EventObject anEvent)
anEvent - Description of the Parameter
public boolean startCellEditing(java.util.EventObject anEvent)
anEvent - Description of the Parameter
public boolean stopCellEditing()
public java.lang.String checkIt(int row,
int column)
row - Description of the Parametercolumn - Description of the Parameter
public boolean afterCheckIt()
public void cancelCellEditing()
public void prepareEditor(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
table - 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)
table - Description of the Parametervalue - Description of the ParameterisSelected - Description of the ParameterhasFocus - Description of the Parameterrow - Description of the Parametercolumn - Description of the Parameterpublic void setEditorComponent(javax.swing.JComponent componente)
componente - The new editorComponent valuepublic javax.swing.JComponent getEditorComponent()
public void setRendererComponent(javax.swing.JComponent component)
component - The new rendererComponent valuepublic javax.swing.JComponent getRendererComponent()
public int getCurrentColumn()
public void setCurrentColumn(int cc)
cc - The new currentColumn valuepublic int getCurrentRow()
public void setCurrentRow(int cr)
cr - The new currentRow valuepublic void addAfterEditListener(AfterEditListener l)
l - The feature to be added to the AfterEditListener attributepublic void removeAfterEditListener(AfterEditListener l)
l - Description of the Parameterpublic void addKeyListener(java.awt.event.KeyListener l)
l - The feature to be added to the KeyListener attributepublic void removeKeyListener(java.awt.event.KeyListener l)
l - Description of the Parameterpublic void addTableListener(TableListener l)
l - The feature to be added to the TableListener attributepublic void removeTableListener(TableListener l)
l - Description of the Parameterpublic void addCellChangeListener(CellChangeListener l)
l - The feature to be added to the CellChangeListener attributepublic void removeCellChangeListener(CellChangeListener l)
l - Description of the Parameterpublic void addFocusListener(java.awt.event.FocusListener l)
l - The feature to be added to the FocusListener attributepublic void removeFocusListener(java.awt.event.FocusListener l)
l - Description of the Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||