fix up chat room view
This commit is contained in:
@@ -32,7 +32,9 @@ class ChatRoomView {
|
|||||||
borderLayout()
|
borderLayout()
|
||||||
panel(constraints : BorderLayout.CENTER) {
|
panel(constraints : BorderLayout.CENTER) {
|
||||||
gridLayout(rows : 1, cols : 1)
|
gridLayout(rows : 1, cols : 1)
|
||||||
roomTextArea = textArea(editable : false, lineWrap : true, wrapStyleWord : true)
|
scrollPane {
|
||||||
|
roomTextArea = textArea(editable : false, lineWrap : true, wrapStyleWord : true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
panel(constraints : BorderLayout.SOUTH) {
|
panel(constraints : BorderLayout.SOUTH) {
|
||||||
borderLayout()
|
borderLayout()
|
||||||
@@ -45,18 +47,24 @@ class ChatRoomView {
|
|||||||
borderLayout()
|
borderLayout()
|
||||||
panel(constraints : BorderLayout.CENTER) {
|
panel(constraints : BorderLayout.CENTER) {
|
||||||
gridLayout(rows : 1, cols : 1)
|
gridLayout(rows : 1, cols : 1)
|
||||||
splitPane(orientation : JSplitPane.HORIZONTAL_SPLIT, continuousLayout : true, dividerLocation : 100)
|
splitPane(orientation : JSplitPane.HORIZONTAL_SPLIT, continuousLayout : true, dividerLocation : 300) {
|
||||||
panel {
|
panel {
|
||||||
table(autoCreateRowSorter : true, rowHeight : rowHeight) {
|
gridLayout(rows : 1, cols : 1)
|
||||||
tableModel(list : model.members) {
|
scrollPane {
|
||||||
closureColumn(header : "Name", type: String, read : {it.getHumanReadableName()})
|
table(autoCreateRowSorter : true, rowHeight : rowHeight) {
|
||||||
closureColumn(header : "Trust Status", type : String, read : {String.valueOf(model.core.trustService.getLevel(it.destination))})
|
tableModel(list : model.members) {
|
||||||
|
closureColumn(header : "Name", preferredWidth: 100, type: String, read : {it.getHumanReadableName()})
|
||||||
|
closureColumn(header : "Trust Status", preferredWidth: 30, type : String, read : {String.valueOf(model.core.trustService.getLevel(it.destination))})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
panel {
|
||||||
|
gridLayout(rows : 1, cols : 1)
|
||||||
|
scrollPane {
|
||||||
|
roomTextArea = textArea(editable : false, lineWrap : true, wrapStyleWord : true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
panel {
|
|
||||||
gridLayout(rows : 1, cols : 1)
|
|
||||||
roomTextArea = textArea(editable : false, lineWrap : true, wrapStyleWord : true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panel(constraints : BorderLayout.SOUTH) {
|
panel(constraints : BorderLayout.SOUTH) {
|
||||||
|
Reference in New Issue
Block a user