Added a missing return statement
This commit is contained in:
parent
3e2288026b
commit
76e1ed3ff1
@ -1,9 +1,14 @@
|
|||||||
package ch.unibas.dmi.dbis.cs108.multiplayer.client.gui.chat;
|
package ch.unibas.dmi.dbis.cs108.multiplayer.client.gui.chat;
|
||||||
|
|
||||||
|
import javafx.geometry.Orientation;
|
||||||
import javafx.scene.Node;
|
import javafx.scene.Node;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
|
import javafx.scene.control.SplitPane;
|
||||||
import javafx.scene.control.TextArea;
|
import javafx.scene.control.TextArea;
|
||||||
|
import javafx.scene.layout.AnchorPane;
|
||||||
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.Pane;
|
import javafx.scene.layout.Pane;
|
||||||
|
import javax.print.attribute.standard.OrientationRequested;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the view of the client chat gui.
|
* This is the view of the client chat gui.
|
||||||
@ -15,8 +20,39 @@ public class ChatView extends Node implements NodeWithChildren, ChildNode {
|
|||||||
|
|
||||||
public void createNodeHierarchy(){
|
public void createNodeHierarchy(){
|
||||||
Button send = new SendButton();
|
Button send = new SendButton();
|
||||||
|
AnchorPane whereTheSendFieldLives = new AnchorPane();
|
||||||
|
whereTheSendFieldLives.getChildren().add(send);
|
||||||
|
|
||||||
OutMsgTargetChooserNode chooseTarget = new OutMsgTargetChooserNode();
|
OutMsgTargetChooserNode chooseTarget = new OutMsgTargetChooserNode();
|
||||||
|
AnchorPane whereTheTargetFieldLives = new AnchorPane();
|
||||||
|
whereTheTargetFieldLives.getChildren().add(chooseTarget.getChildren());
|
||||||
|
|
||||||
TextArea clientOutgoingChatMsg = new TextArea();
|
TextArea clientOutgoingChatMsg = new TextArea();
|
||||||
|
AnchorPane whereOutTextLives = new AnchorPane();
|
||||||
|
whereOutTextLives.getChildren().add(clientOutgoingChatMsg);
|
||||||
|
|
||||||
|
|
||||||
|
TextArea target = new TextArea();
|
||||||
|
|
||||||
|
|
||||||
|
SplitPane inputOutputSeperation = new SplitPane();
|
||||||
|
SplitPane sendAndToggleSeperation = new SplitPane();
|
||||||
|
HBox buttonAndTextSeperation = new HBox();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
sendAndToggleSeperation.setOrientation(Orientation.HORIZONTAL);
|
||||||
|
sendAndToggleSeperation.getItems().add(whereTheSendFieldLives);
|
||||||
|
sendAndToggleSeperation.getItems().add(whereTheTargetFieldLives);
|
||||||
|
/*
|
||||||
|
buttonAndTextSeperation.a
|
||||||
|
buttonAndTextSeperation.getItems().add(sendAndToggleSeperation);
|
||||||
|
buttonAndTextSeperation.getItems().add()
|
||||||
|
*/
|
||||||
|
|
||||||
|
inputOutputSeperation.setOrientation(Orientation.HORIZONTAL);
|
||||||
|
inputOutputSeperation.getItems().add(sendAndToggleSeperation);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -35,8 +71,8 @@ public class ChatView extends Node implements NodeWithChildren, ChildNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void getChildren() {
|
public Node getChildren() {
|
||||||
//TODO implement
|
//TODO implement
|
||||||
NodeWithChildren.super.getChildren();
|
return NodeWithChildren.super.getChildren();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user