generated from marcin-chwedczuk/javafx-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Chwedczuk
committed
Dec 25, 2021
1 parent
d26a838
commit b3dcc0c
Showing
26 changed files
with
223 additions
and
170 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
gui/src/main/java/pl/marcinchwedczuk/elfviewer/gui/mainwindow/DisplayAction.java
This file was deleted.
Oops, something went wrong.
125 changes: 67 additions & 58 deletions
125
...src/main/java/pl/marcinchwedczuk/elfviewer/gui/mainwindow/ElfExplorerTreeViewBuilder.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
38 changes: 38 additions & 0 deletions
38
gui/src/main/java/pl/marcinchwedczuk/elfviewer/gui/mainwindow/RenderDataAction.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,38 @@ | ||
package pl.marcinchwedczuk.elfviewer.gui.mainwindow; | ||
|
||
import javafx.beans.property.StringProperty; | ||
import javafx.scene.control.TableView; | ||
import pl.marcinchwedczuk.elfviewer.gui.mainwindow.renderer.BaseRenderer; | ||
import pl.marcinchwedczuk.elfviewer.gui.mainwindow.renderer.NothingRenderer; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public class RenderDataAction< | ||
NATIVE_WORD extends Number & Comparable<NATIVE_WORD> | ||
> | ||
{ | ||
private final String displayName; | ||
private final BaseRenderer<?, NATIVE_WORD> renderer; | ||
|
||
public RenderDataAction(String displayName, | ||
BaseRenderer<?, NATIVE_WORD> renderer) { | ||
this.displayName = displayName; | ||
this.renderer = renderer; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return displayName; | ||
} | ||
|
||
public void mountView(TableView<Object> tableView, | ||
StringProperty filter) { | ||
renderer.filterPhaseProperty().bind(filter); | ||
renderer.renderDataOn(tableView); | ||
} | ||
|
||
public void unmountView() { | ||
renderer.filterPhaseProperty().unbind(); | ||
renderer.filterPhaseProperty().setValue(""); | ||
} | ||
} |
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
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
Oops, something went wrong.