|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.widgets.table.CellEditor
| Field Summary | |
protected java.util.Vector |
afterFieldListenerList
|
protected java.util.Vector |
cellChangeListenerList
|
boolean |
cellEditable
|
protected java.util.Vector |
cellListenerList
|
protected javax.swing.event.ChangeEvent |
changeEvent
|
protected int |
clickCountToStart
|
protected int |
currentColumn
|
protected int |
currentRow
|
protected WidgetDelegate |
delegate
|
protected javax.swing.JComponent |
editorComponent
|
protected boolean |
focusGained
|
protected java.util.Vector |
keyListenerList
|
protected javax.swing.event.EventListenerList |
listenerList
Event listeners |
protected long |
maxValue
|
protected long |
minValue
|
protected java.lang.Object |
oldValue
|
protected boolean |
validated
|
| Constructor Summary | |
CellEditor()
|
|
CellEditor(WidgetDelegate _delegate)
Aceita um delegate |
|
CellEditor(WidgetDelegate _delegate,
CellProperties _properties)
|
|
| Method Summary | |
void |
addAfterEditListener(AfterEditListener l)
|
void |
addAllListeners()
Adiciona listeners ao delegate |
void |
addCellChangeListener(CellChangeListener l)
|
void |
addCellEditorListener(javax.swing.event.CellEditorListener l)
|
void |
addKeyListener(java.awt.event.KeyListener l)
|
void |
addTableListener(TableListener l)
|
void |
cancelCellEditing()
|
protected void |
fireEditingCanceled()
|
protected void |
fireEditingStopped()
|
java.lang.Object |
getCellEditorValue()
Devolve o valor da celula |
int |
getClickCountToStart()
Apresenta-nos o numeros de cliques que é necessário para a edição |
java.awt.Component |
getComponent()
Devolve a referencia ao componente de edição |
WidgetDelegate |
getDelegate()
|
boolean |
getEditable()
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
|
boolean |
isCellEditable(java.util.EventObject anEvent)
Verifica se é editável |
void |
removeAfterEditListener(AfterEditListener l)
|
void |
removeCellChangeListener(CellChangeListener l)
|
void |
removeCellEditorListener(javax.swing.event.CellEditorListener l)
|
void |
removeKeyListener(java.awt.event.KeyListener l)
|
void |
removeTableListener(TableListener l)
|
void |
setCellEditorProperties(WidgetDelegate _delegate,
CellProperties _properties)
|
void |
setClickCountToStart(int count)
Numero de cliques que é necessário para começar a edição |
void |
setEditable(boolean editable)
|
boolean |
shouldSelectCell(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.event.EventListenerList listenerList
protected transient javax.swing.event.ChangeEvent changeEvent
protected java.lang.Object oldValue
protected int currentColumn
protected int currentRow
protected long maxValue
protected long minValue
protected java.util.Vector afterFieldListenerList
protected java.util.Vector keyListenerList
protected java.util.Vector cellListenerList
protected java.util.Vector cellChangeListenerList
public boolean cellEditable
protected boolean focusGained
protected javax.swing.JComponent editorComponent
protected WidgetDelegate delegate
protected int clickCountToStart
protected boolean validated
| Constructor Detail |
public CellEditor()
public CellEditor(WidgetDelegate _delegate)
public CellEditor(WidgetDelegate _delegate,
CellProperties _properties)
| Method Detail |
public void setCellEditorProperties(WidgetDelegate _delegate,
CellProperties _properties)
public void setEditable(boolean editable)
public boolean getEditable()
public void addAllListeners()
public java.awt.Component getComponent()
public void setClickCountToStart(int count)
count - an int especifica o nº de cliquesgetClickCountToStart()public int getClickCountToStart()
public java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorpublic boolean isCellEditable(java.util.EventObject anEvent)
isCellEditable in interface javax.swing.CellEditorpublic boolean shouldSelectCell(java.util.EventObject anEvent)
shouldSelectCell in interface javax.swing.CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface javax.swing.CellEditorpublic void addCellEditorListener(javax.swing.event.CellEditorListener l)
addCellEditorListener in interface javax.swing.CellEditorpublic void removeCellEditorListener(javax.swing.event.CellEditorListener l)
removeCellEditorListener in interface javax.swing.CellEditorprotected void fireEditingStopped()
protected void fireEditingCanceled()
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorpublic 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 addTableListener(TableListener l)
public void removeTableListener(TableListener l)
public void addCellChangeListener(CellChangeListener l)
public void removeCellChangeListener(CellChangeListener l)
public WidgetDelegate getDelegate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||