7 changed files with 89 additions and 1 deletions
@ -1 +1 @@ |
|||||
Subproject commit 40dab5933702c5b12913337dc618a68652c445e4 |
Subproject commit b2f5f5ffebfc0ce9f0d992f3ac3b59965661491b |
@ -0,0 +1,28 @@ |
|||||
|
package com.sparrowwallet.sparrow.control; |
||||
|
|
||||
|
import com.sparrowwallet.sparrow.wallet.Entry; |
||||
|
import javafx.scene.control.TreeTableCell; |
||||
|
import org.controlsfx.tools.Platform; |
||||
|
|
||||
|
public class NumberCell extends TreeTableCell<Entry, Number> { |
||||
|
public NumberCell() { |
||||
|
super(); |
||||
|
getStyleClass().add("number-cell"); |
||||
|
if(Platform.getCurrent() == Platform.OSX) { |
||||
|
getStyleClass().add("number-field"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
protected void updateItem(Number amount, boolean empty) { |
||||
|
super.updateItem(amount, empty); |
||||
|
|
||||
|
if(empty || amount == null) { |
||||
|
setText(null); |
||||
|
setGraphic(null); |
||||
|
} else { |
||||
|
setText(amount.toString()); |
||||
|
setGraphic(null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.sparrowwallet.sparrow.event; |
||||
|
|
||||
|
public class ShowTransactionsCountEvent { |
||||
|
private final boolean showCount; |
||||
|
|
||||
|
public ShowTransactionsCountEvent(boolean showCount) { |
||||
|
this.showCount = showCount; |
||||
|
} |
||||
|
|
||||
|
public boolean isShowCount() { |
||||
|
return showCount; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue