JIDE 3.5.15

com.jidesoft.grid
Class HyperlinkTableCellEditorRenderer

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.jidesoft.grid.AbstractJideCellEditor
          extended by com.jidesoft.grid.ContextSensitiveCellEditor
              extended by com.jidesoft.grid.AbstractTableCellEditorRenderer
                  extended by com.jidesoft.grid.ButtonTableCellEditorRenderer
                      extended by com.jidesoft.grid.HyperlinkTableCellEditorRenderer
All Implemented Interfaces:
ConverterContextSupport, CellRolloverSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, TableCellEditorRenderer, Serializable, CellEditor, TableCellEditor, TableCellRenderer

public class HyperlinkTableCellEditorRenderer
extends ButtonTableCellEditorRenderer

A table cell editor/renderer that can display a hyperlink as cell. You can call ButtonTableCellEditorRenderer.setActionListener(java.awt.event.ActionListener) to set the action listener which will be triggered when the hyperlink is clicked. To make it working, you not only need to set it as the renderer and editor for the cell, but also need to call RolloverTableUtils.install method to enable the auto cell editing feature when mouse rollover.

See Also:
RolloverTableUtils, Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.AbstractTableCellEditorRenderer
_editorComponent, _rendererComponent
 
Fields inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
DEFAULT_CELL_EDITOR_BORDER
 
Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor
_clickCountToStart
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
HyperlinkTableCellEditorRenderer()
           
HyperlinkTableCellEditorRenderer(ConverterContext context)
           
 
Method Summary
 Component createTableCellEditorRendererComponent(JTable table, int row, int column)
           
 
Methods inherited from class com.jidesoft.grid.ButtonTableCellEditorRenderer
configureTableCellEditorRendererComponent, getActionListener, getCellEditorValue, isRollover, setActionListener
 
Methods inherited from class com.jidesoft.grid.AbstractTableCellEditorRenderer
cancelCellEditing, getTableCellEditorComponent, getTableCellRendererComponent, resetRendererComponent, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isEditorStyleSupported, isUseConverterContext, setConverter, setConverterContext, setEditorContext, setEditorStyle, setType, setUseConverterContext
 
Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, isCellEditable, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

HyperlinkTableCellEditorRenderer

public HyperlinkTableCellEditorRenderer()

HyperlinkTableCellEditorRenderer

public HyperlinkTableCellEditorRenderer(ConverterContext context)
Method Detail

createTableCellEditorRendererComponent

public Component createTableCellEditorRendererComponent(JTable table,
                                                        int row,
                                                        int column)
Specified by:
createTableCellEditorRendererComponent in interface TableCellEditorRenderer
Overrides:
createTableCellEditorRendererComponent in class ButtonTableCellEditorRenderer
Parameters:
table - the JTable that is asking the renderer to draw; can be null
row - the row index of the cell being drawn.
column - the column index of the cell being drawn
Returns:
the component for both rendering and editing.

JIDE 3.5.15