2020-03-26 20:23:25 +01:00
|
|
|
package envoy.client.ui;
|
|
|
|
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
|
|
import envoy.util.EnvoyLog;
|
|
|
|
import javafx.event.ActionEvent;
|
|
|
|
import javafx.fxml.FXML;
|
2020-03-28 10:39:15 +01:00
|
|
|
import javafx.scene.control.ListView;
|
2020-03-26 20:23:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Project: <strong>envoy-client</strong><br>
|
|
|
|
* File: <strong>ChatSceneController.java</strong><br>
|
|
|
|
* Created: <strong>26.03.2020</strong><br>
|
|
|
|
*
|
|
|
|
* @author Kai S. K. Engelbart
|
|
|
|
* @since Envoy Client v0.1-beta
|
|
|
|
*/
|
2020-03-27 21:14:49 +01:00
|
|
|
public final class ChatSceneController {
|
2020-03-26 20:23:25 +01:00
|
|
|
|
2020-03-28 10:39:15 +01:00
|
|
|
@FXML
|
|
|
|
private ListView messageList;
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
private ListView userList;
|
|
|
|
|
2020-03-26 20:23:25 +01:00
|
|
|
private static final Logger logger = EnvoyLog.getLogger(ChatSceneController.class);
|
|
|
|
|
2020-03-28 10:39:15 +01:00
|
|
|
@FXML
|
|
|
|
public void initialize() {
|
|
|
|
messageList.setCellFactory(listView -> new MessageListCell());
|
|
|
|
userList.setCellFactory(listView -> new UserListCell());
|
|
|
|
}
|
|
|
|
|
2020-03-26 20:23:25 +01:00
|
|
|
@FXML
|
|
|
|
public void postButtonClicked(ActionEvent e) {
|
|
|
|
logger.info("Post Button clicked.");
|
|
|
|
}
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
public void settingsButtonClicked(ActionEvent e) {
|
|
|
|
logger.info("Settings Button clicked.");
|
|
|
|
}
|
|
|
|
}
|