Skip to content

Commit

Permalink
Code refactoring (remove Vector und Hashtable, correct generics, code…
Browse files Browse the repository at this point in the history
… formatting), small changes
  • Loading branch information
kpatzwald committed Dec 4, 2021
1 parent da9b7cf commit 296ff64
Show file tree
Hide file tree
Showing 48 changed files with 9,068 additions and 8,507 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public Component getComponent() {
/**
* @return editorComponent
*/
@Override
public Object getCellEditorValue() {
return editorComponent;
}
Expand All @@ -67,6 +68,7 @@ public Object getCellEditorValue() {
* @param anEvent
* @return boolean
*/
@Override
public boolean isCellEditable(EventObject anEvent) {
return true;
}
Expand All @@ -91,25 +93,29 @@ public boolean shouldSelectCell(EventObject anEvent) {
/**
* @return boolean
*/
@Override
public boolean stopCellEditing() {
fireEditingStopped();
return true;
}

@Override
public void cancelCellEditing() {
fireEditingCanceled();
}

/**
* @param l
*/
@Override
public void addCellEditorListener(CellEditorListener l) {
listenerList.add(CellEditorListener.class, l);
}

/**
* @param l
*/
@Override
public void removeCellEditorListener(CellEditorListener l) {
listenerList.remove(CellEditorListener.class, l);
}
Expand Down Expand Up @@ -153,6 +159,7 @@ protected void fireEditingCanceled() {
* @param row
* @return editorComponent
*/
@Override
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) {
tree.convertValueToText(value, isSelected, expanded, leaf, row, false); //dispensable?
editorComponent = (JComponent) value;
Expand All @@ -169,6 +176,7 @@ public Component getTreeCellEditorComponent(JTree tree, Object value, boolean is
* @param column
* @return editorComponent
*/
@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {

editorComponent = (JComponent) value;
Expand Down
Loading

0 comments on commit 296ff64

Please sign in to comment.