|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.despodata.java.ddata.table.DDataDelegate
| Field Summary | |
protected AfterEditListener |
afterFieldListenerList
|
protected CellChangeListener |
cellChangeListenerList
|
protected DDataTableListener |
cellListenerList
|
protected CellProperties |
cellPropertiesEditor
|
protected CellProperties |
cellPropertiesRenderer
|
protected int |
currentColumn
|
protected int |
currentRow
|
protected javax.swing.JComponent |
editorComponent
|
protected boolean |
firstTime
|
protected boolean |
focusGained
|
protected java.awt.event.FocusListener |
focusListenerList
|
protected java.awt.event.KeyListener |
keyListenerList
|
protected javax.swing.JComponent |
rendererComponent
|
protected boolean |
validated
|
| Constructor Summary | |
DDataDelegate()
|
|
DDataDelegate(javax.swing.JComponent _editorComponent,
javax.swing.JComponent _rendererComponent)
|
|
| Method Summary | |
void |
addAfterEditListener(AfterEditListener l)
|
void |
addCellChangeListener(CellChangeListener l)
|
void |
addDDataTableListener(DDataTableListener l)
|
void |
addFocusListener(java.awt.event.FocusListener l)
|
void |
addKeyListener(java.awt.event.KeyListener l)
|
boolean |
afterCheckIt()
Aqui pode-se aproveitar para por outras coisas após as validações |
void |
cancelCellEditing()
|
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()
|
int |
getCurrentColumn()
|
int |
getCurrentRow()
|
javax.swing.JComponent |
getEditorComponent()
Devolve o editor usado como editor |
boolean |
getFirstTime()
|
boolean |
getFocusGained()
|
javax.swing.JComponent |
getRendererComponent()
Devolve o editor usado como renderer |
boolean |
getValidated()
|
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)
|
void |
removeCellChangeListener(CellChangeListener l)
|
void |
removeDDataTableListener(DDataTableListener l)
|
void |
removeFocusListener(java.awt.event.FocusListener l)
|
void |
removeKeyListener(java.awt.event.KeyListener l)
|
void |
setCellEditorProperties(CellProperties properties)
|
void |
setCellProperties(CellProperties properties)
|
void |
setCellRendererProperties(CellProperties properties)
|
void |
setCurrentColumn(int cc)
|
void |
setCurrentRow(int cr)
|
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)
|
void |
setFocusGained(boolean _focusGained)
|
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)
|
boolean |
startCellEditing(java.util.EventObject anEvent)
|
boolean |
stopCellEditing()
|
| 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 javax.swing.JComponent rendererComponent
protected boolean validated
protected boolean firstTime
protected boolean focusGained
protected CellProperties cellPropertiesEditor
protected CellProperties cellPropertiesRenderer
protected AfterEditListener afterFieldListenerList
protected java.awt.event.KeyListener keyListenerList
protected DDataTableListener cellListenerList
protected CellChangeListener cellChangeListenerList
protected java.awt.event.FocusListener focusListenerList
protected int currentColumn
protected int currentRow
| Constructor Detail |
public DDataDelegate()
public DDataDelegate(javax.swing.JComponent _editorComponent,
javax.swing.JComponent _rendererComponent)
| Method Detail |
public void setCellProperties(CellProperties properties)
public void setCellEditorProperties(CellProperties properties)
public void setCellRendererProperties(CellProperties properties)
public void setFirstTime(boolean _firstTime)
public boolean getFirstTime()
public void setFocusGained(boolean _focusGained)
public boolean getFocusGained()
public CellProperties[] getCellProperties()
public void setValidated(boolean _validated)
public boolean getValidated()
public abstract java.lang.Object getCellEditorValue()
public abstract void setEditorValue(java.lang.Object x)
public abstract void setRendererValue(java.lang.Object x)
public boolean isCellEditable(java.util.EventObject anEvent)
public boolean startCellEditing(java.util.EventObject anEvent)
public boolean stopCellEditing()
public java.lang.String checkIt(int row,
int column)
public boolean afterCheckIt()
public void cancelCellEditing()
public void prepareEditor(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
public void prepareRenderer(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
public void setEditorComponent(javax.swing.JComponent componente)
public javax.swing.JComponent getEditorComponent()
public void setRendererComponent(javax.swing.JComponent component)
public javax.swing.JComponent getRendererComponent()
public int getCurrentColumn()
public void setCurrentColumn(int cc)
public int getCurrentRow()
public void setCurrentRow(int cr)
public void addAfterEditListener(AfterEditListener l)
public void removeAfterEditListener(AfterEditListener l)
public void addKeyListener(java.awt.event.KeyListener l)
public void removeKeyListener(java.awt.event.KeyListener l)
public void addDDataTableListener(DDataTableListener l)
public void removeDDataTableListener(DDataTableListener l)
public void addCellChangeListener(CellChangeListener l)
public void removeCellChangeListener(CellChangeListener l)
public void addFocusListener(java.awt.event.FocusListener l)
public void removeFocusListener(java.awt.event.FocusListener l)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||