2020-05-19 04:59:11 +00:00
|
|
|
package wow.doge.chatto.control
|
|
|
|
|
|
|
|
import javafx.scene.layout.HBox
|
|
|
|
import javafx.scene.control.Label
|
|
|
|
import scalafx.Includes._
|
2020-05-20 05:16:48 +00:00
|
|
|
import wow.doge.chatto.controller.ChatData
|
|
|
|
import com.sfxcode.sapphire.core.value.FXBean
|
2020-05-19 04:59:11 +00:00
|
|
|
|
2020-05-20 05:16:48 +00:00
|
|
|
class UserBox2(val username: String, val chatData: ChatData) extends HBox() {
|
|
|
|
val usernameLabel = new Label(username)
|
|
|
|
// lazy val chatDataBean = FXBean[ChatData](chatData)
|
2020-05-19 04:59:11 +00:00
|
|
|
this.children ++= Seq {
|
|
|
|
usernameLabel
|
|
|
|
}
|
|
|
|
}
|