amanda.hinchman-dominguez
05/09/2019, 3:19 PMamanda.hinchman-dominguez
05/09/2019, 3:19 PMamanda.hinchman-dominguez
05/09/2019, 3:20 PMamanda.hinchman-dominguez
05/09/2019, 3:22 PMStephane M
05/09/2019, 3:30 PMStephane M
05/09/2019, 3:30 PMamanda.hinchman-dominguez
05/09/2019, 5:24 PMamanda.hinchman-dominguez
05/09/2019, 5:24 PMamanda.hinchman-dominguez
05/10/2019, 12:44 AMBrian
05/11/2019, 2:10 PMBrian
05/11/2019, 3:49 PMFontWeight.BOLD
aren’t being shown in a bold font on macOS.azeDevs
05/11/2019, 4:48 PMObservableMap
stored in a top level static object that updates frequently, how can I bind the model it contains to appear as a series of list items?azeDevs
05/11/2019, 4:53 PMchildren.bind(session.players) {
hbox {
hbox {
addClass(MainStyle.playerContainer)
imageview(getRes("gn_atlas.png").toString()) {
setPreserveRatio(true)
setViewport(getCharacterPortrait(it.getData().characterId))
setPrefSize(64.0, 64.0)
}
vbox {
addClass(MainStyle.playerScoreSection)
label(it.getNameString()) { addClass(MainStyle.playerHandle)
translateX -= 28
translateY -= 2
scaleX -= 0.16
}
stackpane {
label(it.getBountyFormatted(1f)) { addClass(MainStyle.playerBounty2)
translateX += 14
translateY += 4
scaleX += 0.05
scaleY += 0.15
}
label(it.getBountyFormatted(1f)) { addClass(MainStyle.playerBounty)
translateX += 14
translateY += 3
}
}
}
vbox {
addClass(MainStyle.playerStatsSection)
progressbar(it.getLoadPercent()*0.01) {
minWidth = 80.0
maxHeight = 15.0
translateY -= 20
}
}
}
imageview(getRes("gn_atlas.png").toString()) {
setViewport(Rectangle2D(it.getChain() * 64.0, 256.0, 64.0, 64.0))
setPrefSize(64.0, 64.0)
scaleX -= 0.20
scaleY -= 0.20
translateX -= 348
translateY += 4
}
}
}
this is what my list item looks like right now, session.players
being the ObservableMap
in question, which doesn't work within children.bind()
the way that an ObservableList
does. Unfortunately the source of my data has to be stored in a Map though.azeDevs
05/11/2019, 4:58 PMObservableList
, which then updates the list items, but anytime I try to make changes to the ObservableList
it throws java.lang.IllegalStateException: Not on FX application thread; currentThread = DefaultDispatcher-worker-1
.edvin
05/12/2019, 9:05 PMedvin
05/12/2019, 9:09 PMalex
05/14/2019, 3:31 PMmikehearn
05/17/2019, 2:54 PMnimakro
05/17/2019, 3:35 PMJheruty
05/20/2019, 1:18 AMclass TodoItem(text: String) {
val id = UUID.randomUUID()
val textProperty = SimpleStringProperty(text)
var text by textProperty
val completedProperty = SimpleBooleanProperty()
var completed by completedProperty
}
class TodoItemModel(property: ObjectProperty<TodoItem>) : ItemViewModel<TodoItem>(itemProperty = property) {
val text = bind(autocommit = true) { item?.textProperty }
val completed = bind(autocommit = true) { item?.completedProperty }
}
Jheruty
05/20/2019, 1:19 AMJheruty
05/20/2019, 1:20 AMJheruty
05/20/2019, 1:21 AMval allDone = booleanBinding(store.todos.items) { all { it.completed } }
carlw
05/20/2019, 2:05 PMcarlw
05/20/2019, 2:06 PMcarlw
05/20/2019, 2:07 PMsbyrne
05/22/2019, 9:13 PMfind<MyView>(Scope()).openModal()
, is it expected to open on the same screen as currentWindow
?sbyrne
05/22/2019, 9:15 PMopenModal()
and openModal(owner=currentWindow)
behave differently.alex
05/23/2019, 8:02 AMStandardPaths
and previously mentioned AppLocker
are released on maven central now, so it must be much easier to install.thomasnield
05/24/2019, 8:07 PM