-
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.
- Loading branch information
1 parent
a00f3d3
commit e4866d8
Showing
23 changed files
with
538 additions
and
1,064 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
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,8 @@ | ||
package me.ialistannen.mimadebugger.gui; | ||
|
||
public class Launcher { | ||
|
||
public static void main(String[] args) { | ||
MiMaGui.launch(MiMaGui.class, args); | ||
} | ||
} |
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
58 changes: 58 additions & 0 deletions
58
src/main/java/me/ialistannen/mimadebugger/gui/util/AutoSizableTableViewSkin.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,58 @@ | ||
package me.ialistannen.mimadebugger.gui.util; | ||
|
||
import javafx.scene.control.TableColumnBase; | ||
import javafx.scene.control.TableView; | ||
import javafx.scene.control.skin.NestedTableColumnHeader; | ||
import javafx.scene.control.skin.TableColumnHeader; | ||
import javafx.scene.control.skin.TableHeaderRow; | ||
import javafx.scene.control.skin.TableViewSkin; | ||
import javafx.scene.control.skin.TableViewSkinBase; | ||
|
||
public class AutoSizableTableViewSkin<T> extends TableViewSkin<T> { | ||
|
||
public AutoSizableTableViewSkin(TableView<T> tableView) { | ||
super(tableView); | ||
} | ||
|
||
@Override | ||
protected TableHeaderRow createTableHeaderRow() { | ||
return new MyTableHeaderRow(this); | ||
} | ||
|
||
public static class MyTableHeaderRow extends TableHeaderRow { | ||
|
||
public MyTableHeaderRow(TableViewSkinBase base) { | ||
super(base); | ||
} | ||
|
||
@Override | ||
protected NestedTableColumnHeader createRootHeader() { | ||
return new MyNestedTableColumnHeader(); | ||
} | ||
|
||
} | ||
|
||
public static class ColumnHeader extends TableColumnHeader { | ||
|
||
public ColumnHeader(TableColumnBase col) { | ||
super(col); | ||
} | ||
|
||
public void resizeColumnToFitContent() { | ||
super.resizeColumnToFitContent(-1); | ||
} | ||
} | ||
|
||
public static class MyNestedTableColumnHeader extends NestedTableColumnHeader { | ||
|
||
public MyNestedTableColumnHeader() { | ||
super(null); | ||
} | ||
|
||
@Override | ||
protected TableColumnHeader createTableColumnHeader(TableColumnBase col) { | ||
return new ColumnHeader(col); | ||
} | ||
|
||
} | ||
} |
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.