mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Move merit and stake column to the right
For better usability I moved the column next to the result.
This commit is contained in:
parent
0931792fd4
commit
bc0284ba0b
@ -285,29 +285,6 @@ public class ProposalResultsWindow extends TabbedOverlay<ProposalResultsWindow>
|
|||||||
});
|
});
|
||||||
votesTableView.getColumns().add(column);
|
votesTableView.getColumns().add(column);
|
||||||
|
|
||||||
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stakeAndMerit"));
|
|
||||||
column.setSortable(false);
|
|
||||||
column.setMinWidth(100);
|
|
||||||
column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<>(item.getValue()));
|
|
||||||
column.setCellFactory(
|
|
||||||
new Callback<>() {
|
|
||||||
@Override
|
|
||||||
public TableCell<VoteListItem, VoteListItem> call(
|
|
||||||
TableColumn<VoteListItem, VoteListItem> column) {
|
|
||||||
return new TableCell<>() {
|
|
||||||
@Override
|
|
||||||
public void updateItem(final VoteListItem item, boolean empty) {
|
|
||||||
super.updateItem(item, empty);
|
|
||||||
if (item != null)
|
|
||||||
setText(item.getMeritAndStake());
|
|
||||||
else
|
|
||||||
setText("");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
votesTableView.getColumns().add(column);
|
|
||||||
|
|
||||||
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.merit"));
|
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.merit"));
|
||||||
column.setSortable(false);
|
column.setSortable(false);
|
||||||
column.setMinWidth(100);
|
column.setMinWidth(100);
|
||||||
@ -354,6 +331,29 @@ public class ProposalResultsWindow extends TabbedOverlay<ProposalResultsWindow>
|
|||||||
});
|
});
|
||||||
votesTableView.getColumns().add(column);
|
votesTableView.getColumns().add(column);
|
||||||
|
|
||||||
|
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stakeAndMerit"));
|
||||||
|
column.setSortable(false);
|
||||||
|
column.setMinWidth(100);
|
||||||
|
column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<>(item.getValue()));
|
||||||
|
column.setCellFactory(
|
||||||
|
new Callback<>() {
|
||||||
|
@Override
|
||||||
|
public TableCell<VoteListItem, VoteListItem> call(
|
||||||
|
TableColumn<VoteListItem, VoteListItem> column) {
|
||||||
|
return new TableCell<>() {
|
||||||
|
@Override
|
||||||
|
public void updateItem(final VoteListItem item, boolean empty) {
|
||||||
|
super.updateItem(item, empty);
|
||||||
|
if (item != null)
|
||||||
|
setText(item.getMeritAndStake());
|
||||||
|
else
|
||||||
|
setText("");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
votesTableView.getColumns().add(column);
|
||||||
|
|
||||||
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.vote"));
|
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.vote"));
|
||||||
column.setSortable(false);
|
column.setSortable(false);
|
||||||
column.setMinWidth(50);
|
column.setMinWidth(50);
|
||||||
|
Loading…
Reference in New Issue
Block a user