public class RelationTreeCellRendererEditor extends javax.swing.AbstractCellEditor implements IRendererEditor
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
backColor
Back color
|
static boolean |
displayLongName
Display long names
|
private javax.swing.JCheckBox |
editingCheckBox
Editing checkbox
|
private IMutableFilter<HasId> |
relationFilter
Relation filter
|
private javax.swing.JCheckBox |
renderingCheckBox
Rendering checkbox
|
private static long |
serialVersionUID |
protected RelationTreeValue |
value
Edited value (this is needed so that getCellEditorValue() returns composite data)
|
Constructor and Description |
---|
RelationTreeCellRendererEditor()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCellEditorValue() |
java.awt.Component |
getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row) |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) |
javax.swing.JCheckBox |
prepare(javax.swing.JCheckBox checkBox,
Relation relation)
Prepare checkbox with relation data
|
void |
set(IMutableFilter<HasId> filter)
Set filter
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
private static final long serialVersionUID
public static final java.awt.Color backColor
public static boolean displayLongName
private IMutableFilter<HasId> relationFilter
private final javax.swing.JCheckBox renderingCheckBox
private final javax.swing.JCheckBox editingCheckBox
protected RelationTreeValue value
public RelationTreeCellRendererEditor()
public void set(IMutableFilter<HasId> filter)
IRenderer
public javax.swing.JCheckBox prepare(javax.swing.JCheckBox checkBox, Relation relation)
checkBox
- checkboxrelation
- relationpublic java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
getTreeCellEditorComponent
in interface javax.swing.tree.TreeCellEditor
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor