Skip to content

Commit f126a9a

Browse files
authored
Add files via upload
1 parent da62186 commit f126a9a

37 files changed

Lines changed: 1292 additions & 0 deletions

pessoa.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{"nome":"Amalyn Biagini","id":7,"url":"https://www.facebook.com/100002079412785"}
2+
{"nome":"Pablo Sarkis","id":9,"url":"https://www.facebook.com/100002376109505"}
3+
{"nome":"Fabíola Borges","id":10,"url":"https://www.facebook.com/100002922095209"}
4+
{"nome":"Clissiane Gonçalves","id":13,"url":"https://www.facebook.com/1459041931"}
5+
{"nome":"Daurimar Mendes","id":14,"url":"https://www.facebook.com/100003044947434"}
6+
{"nome":"Goreti Lima","id":15,"url":"https://www.facebook.com/100004868524557"}
7+
{"nome":"Suzana Carvalho","id":16,"url":"https://www.facebook.com/100001306571177"}
8+
{"nome":"Emanuelle Rankoski","id":17,"url":"https://www.facebook.com/100001420832063"}
9+
{"nome":"Idomar Augusto Cerutti","id":18,"url":"https://www.facebook.com/100002858779518"}
10+
{"nome":"Projeto Pegaí","id":19,"url":"https://www.facebook.com/678148432200487"}
11+
{"nome":"Henrique Lemes","id":20,"url":"https://www.facebook.com/100002653354256"}
12+
{"nome":"Layla Fran","id":21,"url":"https://www.facebook.com/100001907615215"}
13+
{"nome":"Dierone Foltran","id":22,"url":"https://www.facebook.com/100002929564160"}

premio.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{"observacao":"Autografado","id":1,"descricao":"Livro O Diario de uma escrava"}
2+
{"observacao":"Autografado","id":2,"descricao":"Livro O Diario de uma escrava"}
3+
{"observacao":"Autografado","id":3,"descricao":"Livro O Diario de uma escrava"}
4+
{"observacao":"Autografado","id":4,"descricao":"Livro O Diario de uma escrava"}
5+
{"observacao":"Autografado","id":5,"descricao":"Livro O Diario de uma escrava"}
6+
{"observacao":"Autografado","id":6,"descricao":"Livro O Diario de uma escrava"}
7+
{"observacao":"Autografado","id":7,"descricao":"Livro O Diario de uma escrava"}
8+
{"observacao":"Autografado","id":8,"descricao":"Livro O Diario de uma escrava"}
9+
{"observacao":"Autografado","id":9,"descricao":"Livro O Diario de uma escrava"}
10+
{"observacao":"Azul Marinho","id":10,"descricao":"Camiseta Liberte seu livro"}
11+
{"observacao":"Azul","id":11,"descricao":"Camiseta Liberte seu livro"}
12+
{"observacao":"Azul","id":12,"descricao":"Camiseta Liberte seu livro"}
13+
{"observacao":"Azul","id":13,"descricao":"Camiseta Liberte seu livro"}
14+
{"observacao":"Preta","id":14,"descricao":"Camiseta O Leitor"}
15+
{"observacao":"Preta","id":15,"descricao":"Camiseta O Leitor"}
16+
{"observacao":"Preta","id":16,"descricao":"Camiseta O Leitor"}
17+
{"observacao":"Preta","id":17,"descricao":"Camiseta O Leitor"}
18+
{"observacao":"Preta","id":18,"descricao":"Camiseta O Leitor"}
19+
{"observacao":"Material Bambu","id":19,"descricao":"Marcador de Página"}

sorteioHash/nbactions.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<actions>
3+
<action>
4+
<actionName>run</actionName>
5+
<packagings>
6+
<packaging>jar</packaging>
7+
</packagings>
8+
<goals>
9+
<goal>process-classes</goal>
10+
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
11+
</goals>
12+
<properties>
13+
<exec.args>-classpath %classpath application.MainApp</exec.args>
14+
<exec.executable>java</exec.executable>
15+
</properties>
16+
</action>
17+
</actions>

sorteioHash/pom.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>br.uepg</groupId>
6+
<artifactId>sorteioHash</artifactId>
7+
<version>1.0</version>
8+
<packaging>jar</packaging>
9+
10+
<name>sorteioHash</name>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<mainClass>application.MainApp</mainClass>
15+
<maven.compiler.source>1.8</maven.compiler.source>
16+
<maven.compiler.target>1.8</maven.compiler.target>
17+
</properties>
18+
19+
<organization>
20+
<!-- Used as the 'Vendor' for JNLP generation -->
21+
<name>Your Organisation</name>
22+
</organization>
23+
24+
<build>
25+
<plugins>
26+
<plugin>
27+
<artifactId>maven-assembly-plugin</artifactId>
28+
<version>2.5.3</version>
29+
<configuration>
30+
<descriptorRefs>
31+
<descriptorRef>jar-with-dependencies</descriptorRef>
32+
</descriptorRefs>
33+
<archive>
34+
<manifest>
35+
<mainClass>${mainClass}</mainClass>
36+
</manifest>
37+
</archive>
38+
</configuration>
39+
<executions>
40+
<execution>
41+
<id>make-assembly</id>
42+
<phase>package</phase>
43+
<goals>
44+
<goal>single</goal>
45+
</goals>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
50+
51+
</plugins>
52+
</build>
53+
<dependencies>
54+
<dependency>
55+
<groupId>de.jensd</groupId>
56+
<artifactId>fontawesomefx</artifactId>
57+
<version>8.6</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.json</groupId>
61+
<artifactId>json</artifactId>
62+
<version>20141113</version>
63+
<type>jar</type>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.controlsfx</groupId>
67+
<artifactId>controlsfx</artifactId>
68+
<version>8.40.12</version>
69+
<type>jar</type>
70+
</dependency>
71+
72+
73+
</dependencies>
74+
75+
</project>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package application;
2+
3+
import javafx.application.Application;
4+
import static javafx.application.Application.launch;
5+
import javafx.fxml.FXMLLoader;
6+
import javafx.scene.Parent;
7+
import javafx.scene.Scene;
8+
import javafx.stage.Stage;
9+
10+
11+
public class MainApp extends Application {
12+
13+
@Override
14+
public void start(Stage stage) throws Exception {
15+
Parent root = FXMLLoader.load(getClass().getResource("/fxml/Principal.fxml"));
16+
17+
Scene scene = new Scene(root);
18+
scene.getStylesheets().add("/styles/Styles.css");
19+
20+
stage.setTitle("Sorteio Hash");
21+
stage.setScene(scene);
22+
stage.show();
23+
}
24+
25+
/**
26+
* The main() method is ignored in correctly deployed JavaFX application.
27+
* main() serves only as fallback in case the application can not be
28+
* launched through deployment artifacts, e.g., in IDEs with limited FX
29+
* support. NetBeans ignores main().
30+
*
31+
* @param args the command line arguments
32+
*/
33+
public static void main(String[] args) {
34+
launch(args);
35+
}
36+
37+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package config;
7+
8+
import java.util.ResourceBundle;
9+
10+
/**
11+
*
12+
* @author idomar
13+
*/
14+
public class Config {
15+
16+
public static final ResourceBundle i18n
17+
= ResourceBundle.getBundle(
18+
String.format("i18n.Bundle_%s", "pt_BR"));
19+
20+
public static final char INCLUIR = 'I';
21+
public static final char ALTERAR = 'A';
22+
public static final char EXCLUIR = 'E';
23+
24+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package model;
7+
8+
import java.util.Objects;
9+
10+
/**
11+
*
12+
* @author idomar
13+
*/
14+
public class Pessoa {
15+
private int id;
16+
private String nome;
17+
private String url;
18+
private Premio premio;
19+
20+
public Pessoa() {
21+
}
22+
23+
public Pessoa(int id, String nome, String url) {
24+
this.id = id;
25+
this.nome = nome;
26+
this.url = url;
27+
}
28+
29+
public int getId() {
30+
return id;
31+
}
32+
33+
public void setId(int id) {
34+
this.id = id;
35+
}
36+
37+
public String getNome() {
38+
return nome;
39+
}
40+
41+
public void setNome(String nome) {
42+
this.nome = nome;
43+
}
44+
45+
public String getUrl() {
46+
return url;
47+
}
48+
49+
public void setUrl(String url) {
50+
this.url = url;
51+
}
52+
53+
public Premio getPremio() {
54+
return premio;
55+
}
56+
57+
public void setPremio(Premio premio) {
58+
this.premio = premio;
59+
}
60+
61+
@Override
62+
public String toString() {
63+
return nome;
64+
}
65+
66+
@Override
67+
public int hashCode() {
68+
int hash = 3;
69+
hash = 89 * hash + Objects.hashCode(this.url);
70+
return hash;
71+
}
72+
73+
@Override
74+
public boolean equals(Object obj) {
75+
if (this == obj) {
76+
return true;
77+
}
78+
if (obj == null) {
79+
return false;
80+
}
81+
if (getClass() != obj.getClass()) {
82+
return false;
83+
}
84+
final Pessoa other = (Pessoa) obj;
85+
if (!Objects.equals(this.url, other.url)) {
86+
return false;
87+
}
88+
return true;
89+
}
90+
91+
92+
93+
94+
95+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package model;
7+
8+
/**
9+
*
10+
* @author idomar
11+
*/
12+
public class Premio {
13+
private int id;
14+
private String descricao;
15+
private String observacao;
16+
17+
public Premio() {
18+
}
19+
20+
public Premio(int id, String descricao, String observacao) {
21+
this.id = id;
22+
this.descricao = descricao;
23+
this.observacao = observacao;
24+
}
25+
26+
public int getId() {
27+
return id;
28+
}
29+
30+
public void setId(int id) {
31+
this.id = id;
32+
}
33+
34+
public String getDescricao() {
35+
return descricao;
36+
}
37+
38+
public void setDescricao(String descricao) {
39+
this.descricao = descricao;
40+
}
41+
42+
public String getObservacao() {
43+
return observacao;
44+
}
45+
46+
public void setObservacao(String observacao) {
47+
this.observacao = observacao;
48+
}
49+
50+
@Override
51+
public String toString() {
52+
return descricao + " - " + observacao;
53+
}
54+
55+
@Override
56+
public int hashCode() {
57+
int hash = 3;
58+
hash = 47 * hash + this.id;
59+
return hash;
60+
}
61+
62+
@Override
63+
public boolean equals(Object obj) {
64+
if (this == obj) {
65+
return true;
66+
}
67+
if (obj == null) {
68+
return false;
69+
}
70+
if (getClass() != obj.getClass()) {
71+
return false;
72+
}
73+
final Premio other = (Premio) obj;
74+
if (this.id != other.id) {
75+
return false;
76+
}
77+
return true;
78+
}
79+
80+
81+
82+
83+
}

0 commit comments

Comments
 (0)