-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add search function to addKey field to highlight, fix several issues
- Loading branch information
1 parent
5103e5c
commit e00d427
Showing
11 changed files
with
134 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.0 | ||
2.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/de/tinycodecrank/l4j/util/DocumentListenerAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package de.tinycodecrank.l4j.util; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import javax.swing.event.DocumentEvent; | ||
import javax.swing.event.DocumentListener; | ||
|
||
public class DocumentListenerAdapter implements DocumentListener | ||
{ | ||
private final Consumer<DocumentEvent> insertUpdate; | ||
private final Consumer<DocumentEvent> removeUpdate; | ||
private final Consumer<DocumentEvent> changedUpdate; | ||
|
||
public DocumentListenerAdapter( | ||
Consumer<DocumentEvent> insertUpdate, | ||
Consumer<DocumentEvent> removeUpdate, | ||
Consumer<DocumentEvent> changedUpdate) | ||
{ | ||
this.insertUpdate = insertUpdate; | ||
this.removeUpdate = removeUpdate; | ||
this.changedUpdate = changedUpdate; | ||
} | ||
|
||
@Override | ||
public void insertUpdate(DocumentEvent e) | ||
{ | ||
insertUpdate.accept(e); | ||
} | ||
|
||
@Override | ||
public void removeUpdate(DocumentEvent e) | ||
{ | ||
removeUpdate.accept(e); | ||
} | ||
|
||
@Override | ||
public void changedUpdate(DocumentEvent e) | ||
{ | ||
changedUpdate.accept(e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters