Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Allanx2000 #1

Merged
merged 14 commits into from
Feb 28, 2017
Merged

Allanx2000 #1

merged 14 commits into from
Feb 28, 2017

Conversation

allanx2000
Copy link

Start prototyping the post control and needed assets

@codecov-io
Copy link

codecov-io commented Feb 23, 2017

Codecov Report

Merging #1 into develop will decrease coverage by -5.31%.
The diff coverage is 1.49%.

@@             Coverage Diff              @@
##             develop      #1      +/-   ##
============================================
- Coverage       12.5%   7.19%   -5.31%     
  Complexity         4       4              
============================================
  Files              5       7       +2     
  Lines             72     139      +67     
  Branches           0       3       +3     
============================================
+ Hits               9      10       +1     
- Misses            63     129      +66
Impacted Files Coverage Δ Complexity Δ
src/main/java/controllers/VoteControl.java 0% <0%> (ø) 0 <0> (?)
src/main/java/controllers/PostControl.java 0% <0%> (ø) 0 <0> (?)
src/main/java/Main.java 6.89% <8.33%> (+1.01%) 0 <0> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc7b1da...98a547a. Read the comment docs.

@@ -26,6 +40,26 @@ public void start(Stage primaryStage) throws Exception{
tt.setAutoReverse(true);
tt.setCycleCount(99);
//tt.play();

api.getRants(Sort.ALGO, 10, 0).thenAcceptAsync(results -> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the place to get the rants. In a controller maybe? Also, you should use thenAccept()

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK for supply and then accept confused, thought then accept her to be async as well.

This was just for testing the PostControl and highlight the issue I'm having with the image

/**
* Created by Tahnik Mustasin on 19/02/2017.
*/
public class PostControl extends BorderPane{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class looks like a model, not a controller. Also, why is extending borderpane? You should use an FXML instead and modify that via controllers.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.oracle.com/javase/8/javafx/fxml-tutorial/custom_control.htm

I followed this to make it a reuseable control

@tahnik tahnik merged commit 1fedc11 into develop Feb 28, 2017
tahnik pushed a commit that referenced this pull request Aug 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants