com.jidesoft.grid
Class HyperlinkTableCellEditorRenderer
java.lang.Object
javax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.AbstractTableCellEditorRenderer
com.jidesoft.grid.ButtonTableCellEditorRenderer
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HyperlinkTableCellEditorRenderer
public HyperlinkTableCellEditorRenderer()
HyperlinkTableCellEditorRenderer
public HyperlinkTableCellEditorRenderer(ConverterContext context)
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.