com.sibvisions.rad.ui.swing.ext
Class JVxTable.GenericTableCellHandler

java.lang.Object
  extended by com.sibvisions.rad.ui.swing.ext.JVxTable.GenericTableCellHandler
All Implemented Interfaces:
CellEditor, TableCellEditor, TableCellRenderer
Enclosing class:
JVxTable

public static class JVxTable.GenericTableCellHandler
extends Object
implements TableCellRenderer, TableCellEditor

The GenericTableCellEditor is a wrapper, that provides ICellEditor functionality.


Constructor Summary
JVxTable.GenericTableCellHandler(JVxTable pTableControl, String pColumnName)
          Constructs a new GenericTableCellEditor.
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
          
 void cancelCellEditing()
          
 Object getCellEditorValue()
          
 Component getTableCellEditorComponent(JTable pTable, Object pValue, boolean pIsSelected, int pRow, int pColumn)
          
 Component getTableCellRendererComponent(JTable pTable, Object pValue, boolean pIsSelected, boolean pHasFocus, int pRow, int pColumn)
          
 boolean isCellEditable(EventObject pEvent)
          
 void removeCellEditorListener(CellEditorListener l)
          
 boolean shouldSelectCell(EventObject anEvent)
          
 boolean stopCellEditing()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVxTable.GenericTableCellHandler

public JVxTable.GenericTableCellHandler(JVxTable pTableControl,
                                        String pColumnName)
Constructs a new GenericTableCellEditor.

Parameters:
pTableControl - the JVxTable.
pColumnName - the column name.
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(JTable pTable,
                                               Object pValue,
                                               boolean pIsSelected,
                                               boolean pHasFocus,
                                               int pRow,
                                               int pColumn)

Specified by:
getTableCellRendererComponent in interface TableCellRenderer

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable pTable,
                                             Object pValue,
                                             boolean pIsSelected,
                                             int pRow,
                                             int pColumn)

Specified by:
getTableCellEditorComponent in interface TableCellEditor

getCellEditorValue

public Object getCellEditorValue()

Specified by:
getCellEditorValue in interface CellEditor

isCellEditable

public boolean isCellEditable(EventObject pEvent)

Specified by:
isCellEditable in interface CellEditor

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)

Specified by:
shouldSelectCell in interface CellEditor

stopCellEditing

public boolean stopCellEditing()

Specified by:
stopCellEditing in interface CellEditor

cancelCellEditing

public void cancelCellEditing()

Specified by:
cancelCellEditing in interface CellEditor

addCellEditorListener

public void addCellEditorListener(CellEditorListener l)

Specified by:
addCellEditorListener in interface CellEditor

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)

Specified by:
removeCellEditorListener in interface CellEditor


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.