Skip to content
Snippets Groups Projects
Commit e5e7400e authored by vincent.steinman's avatar vincent.steinman
Browse files

unit test + fix btn

parent e488cca6
Branches
No related tags found
No related merge requests found
...@@ -28,10 +28,10 @@ public class Contact implements Comparable<Contact>{ ...@@ -28,10 +28,10 @@ public class Contact implements Comparable<Contact>{
} }
//Getter //Getter
public String get_type() { return type;} public String getType() { return type;}
public String getLast_name() { return last_name;} public String getLastName() { return last_name;}
public List<String> getFirst_name() { return first_name; } public List<String> getFirstName() { return first_name; }
public String getAddr() { public String getAddr() {
return addr; return addr;
} }
...@@ -57,9 +57,9 @@ public class Contact implements Comparable<Contact>{ ...@@ -57,9 +57,9 @@ public class Contact implements Comparable<Contact>{
//Test //Test
//Setter //Setter
public void set_type(String type){this.type = type;} public void setType(String type){this.type = type;}
public void setFirst_name(List<String> first_name){this.first_name = first_name;} public void setFirstName(List<String> first_name){this.first_name = first_name;}
public void setLast_name(String last_name){this.last_name = last_name;} public void setLastName(String last_name){this.last_name = last_name;}
public void setAddr(String addr) { public void setAddr(String addr) {
this.addr = addr; this.addr = addr;
} }
...@@ -85,26 +85,26 @@ public class Contact implements Comparable<Contact>{ ...@@ -85,26 +85,26 @@ public class Contact implements Comparable<Contact>{
//Methodes //Methodes
//Type cannot be edited //Type cannot be edited
public void EditFirstName(List<String> newFirstName){ public void editFirstName(List<String> new_first_name){
this.first_name = newFirstName; this.first_name = new_first_name;
} }
public void EditLastName(String newLastName){ public void editLastName(String new_last_name){
this.last_name = newLastName; this.last_name = new_last_name;
} }
public void EditAddress(String newAddrr){ public void editAddress(String new_addrr){
this.addr = newAddrr; this.addr = new_addrr;
} }
public void EditPhone(List<String> newPhone){ public void editPhone(List<String> new_phone){
this.phone = newPhone; this.phone = new_phone;
} }
public void EditEmail(List<String> newEmail){ public void editEmail(List<String> new_email){
this.email = newEmail; this.email = new_email;
} }
public void EditSocial(List<String> newSocial){ public void editSocial(List<String> new_social){
this.social = newSocial; this.social = new_social;
} }
public void EditJob(String newJob){ public void editJob(String new_job){
this.job = newJob; this.job = new_job;
} }
@Override @Override
public String toString(){ public String toString(){
......
...@@ -12,8 +12,8 @@ public class Family extends Contact{ ...@@ -12,8 +12,8 @@ public class Family extends Contact{
return relation; return relation;
} }
public void EditRelation(String newRelation){ public void editRelation(String new_relation){
this.relation = newRelation; this.relation = new_relation;
} }
@Override @Override
...@@ -36,7 +36,7 @@ public class Family extends Contact{ ...@@ -36,7 +36,7 @@ public class Family extends Contact{
w_social += elem + " "; w_social += elem + " ";
} }
return String.valueOf(id) + " - " + w_names + "- " + this.last_name + " - " + this.addr + " - " + w_phone return id + " - " + w_names + "- " + this.last_name + " - " + this.addr + " - " + w_phone
+ "- " + w_email + "- " + w_social + "- " + this.job + " - " + this.relation; + "- " + w_email + "- " + w_social + "- " + this.job + " - " + this.relation;
} }
} }
...@@ -14,8 +14,9 @@ import java.util.regex.Pattern; ...@@ -14,8 +14,9 @@ import java.util.regex.Pattern;
public class HelloController { public class HelloController {
static ArrayList<Contact> contactArray = new ArrayList<Contact>(); static ArrayList<Contact> contactArray = new ArrayList<Contact>();
int selectedID = 0; int selectedID = 0;
boolean imported = false; boolean imported = false; //Used to know whenever we should enable or disable button save/edit
ObservableList<String> ctType = FXCollections.observableArrayList("Friend", "Family", "Professional"); ObservableList<String> ctType = FXCollections.observableArrayList("Friend", "Family", "Professional");
//Fx fields
@FXML @FXML
private TextField txtFirst; private TextField txtFirst;
@FXML @FXML
...@@ -54,6 +55,10 @@ public class HelloController { ...@@ -54,6 +55,10 @@ public class HelloController {
private ListView LstCt; private ListView LstCt;
@FXML @FXML
private ComboBox cbxType; private ComboBox cbxType;
//Fx functions
//Form start Up - base contact type is friend
//Hide unwanted fields
@FXML @FXML
protected void initialize() { protected void initialize() {
cbxType.setValue("Friend"); cbxType.setValue("Friend");
...@@ -64,9 +69,10 @@ public class HelloController { ...@@ -64,9 +69,10 @@ public class HelloController {
btnDelete.setDisable(true); btnDelete.setDisable(true);
btnAdd.setDisable(true); btnAdd.setDisable(true);
} }
//Add button click
@FXML @FXML
protected void AddCt() { protected void AddCt() {
switch (cbxType.getValue().toString()){ switch (cbxType.getValue().toString()){ //Use the combo box value
case "Friend": case "Friend":
AddPal(); AddPal();
break; break;
...@@ -78,6 +84,7 @@ public class HelloController { ...@@ -78,6 +84,7 @@ public class HelloController {
break; break;
} }
} }
//Relation ComboBox Text Value edit
@FXML @FXML
protected void ChangeType(){ protected void ChangeType(){
switch (cbxType.getValue().toString()){ switch (cbxType.getValue().toString()){
...@@ -92,11 +99,12 @@ public class HelloController { ...@@ -92,11 +99,12 @@ public class HelloController {
break; break;
case "Professional": case "Professional":
lblOther.setVisible(true); lblOther.setVisible(true);
lblOther.setText("Job"); lblOther.setText("Work");
txtOther.setVisible(true); txtOther.setVisible(true);
break; break;
} }
} }
//Btn Load Click
@FXML @FXML
protected void ImportCt() { protected void ImportCt() {
LstCt.getItems().clear(); LstCt.getItems().clear();
...@@ -108,7 +116,7 @@ public class HelloController { ...@@ -108,7 +116,7 @@ public class HelloController {
while((line = reader.readLine()) != null){ while((line = reader.readLine()) != null){
switch (line){ switch (line){
case "Friend": case "Friend":
checker = 1; checker = 1; //checker is used to know which type of contact it is to it to the list
break; break;
case "Family": case "Family":
checker = 2; checker = 2;
...@@ -128,13 +136,14 @@ public class HelloController { ...@@ -128,13 +136,14 @@ public class HelloController {
e.printStackTrace(); e.printStackTrace();
} }
} }
//Btn Save CLick
@FXML @FXML
protected void ExportCt() { protected void ExportCt() {
try{ try{
BufferedWriter writer = new BufferedWriter(new FileWriter("contact_save.csv")); BufferedWriter writer = new BufferedWriter(new FileWriter("contact_save.csv"));
for (Contact c: contactArray){ for (Contact c: contactArray){
List<String> str_array = SplitLine(c.toString(), " - "); List<String> str_array = SplitLine(c.toString(), " - ");
writer.write(c.get_type() + "\n"); writer.write(c.getType() + "\n"); //First line is contact type (for easier usage during import)
writer.write(str_array.get(0) + "/"); writer.write(str_array.get(0) + "/");
writer.write(str_array.get(1) + "/"); writer.write(str_array.get(1) + "/");
writer.write(str_array.get(2) + "/"); writer.write(str_array.get(2) + "/");
...@@ -143,7 +152,7 @@ public class HelloController { ...@@ -143,7 +152,7 @@ public class HelloController {
writer.write(str_array.get(5) + "/"); writer.write(str_array.get(5) + "/");
writer.write(str_array.get(6) + "/"); writer.write(str_array.get(6) + "/");
writer.write(str_array.get(7)); writer.write(str_array.get(7));
if(c.get_type().equals("Family") || c.get_type().equals("Professional")){ if(c instanceof Family || c instanceof Professional){
writer.write("/" + str_array.get(8) + "\n"); writer.write("/" + str_array.get(8) + "\n");
} else{ } else{
writer.write("/" + "\n"); writer.write("/" + "\n");
...@@ -154,12 +163,13 @@ public class HelloController { ...@@ -154,12 +163,13 @@ public class HelloController {
e.printStackTrace(); e.printStackTrace();
} }
} }
//Btn Search Click
@FXML @FXML
protected void Search() { protected void Search() {
Pattern pat = Pattern.compile(txtSearch.getText()); Pattern pat = Pattern.compile(txtSearch.getText());
LstCt.getItems().clear(); LstCt.getItems().clear();
for(Contact c: contactArray){ for(Contact c: contactArray){
for(String n: c.getFirst_name()){ for(String n: c.getFirstName()){
Matcher match = pat.matcher(n); Matcher match = pat.matcher(n);
if(match.find()){ if(match.find()){
LstCt.getItems().add(c); LstCt.getItems().add(c);
...@@ -167,6 +177,7 @@ public class HelloController { ...@@ -167,6 +177,7 @@ public class HelloController {
} }
} }
} }
//Select Line in ListView
@FXML @FXML
protected void Selected() { protected void Selected() {
lblOther.setVisible(true); lblOther.setVisible(true);
...@@ -187,14 +198,14 @@ public class HelloController { ...@@ -187,14 +198,14 @@ public class HelloController {
if(data.size() > 8){ if(data.size() > 8){
txtOther.setVisible(true); txtOther.setVisible(true);
lblOther.setVisible(true); lblOther.setVisible(true);
txtOther.setText(data.get(7)); txtOther.setText(data.get(8));
if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).get_type().equals("Family")){ if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()) instanceof Family){
//contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditRelation(other); //contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditRelation(other);
lblOther.setVisible(true); lblOther.setVisible(true);
lblOther.setText("Relation"); lblOther.setText("Relation");
txtOther.setVisible(true); txtOther.setVisible(true);
cbxType.setValue("Family"); cbxType.setValue("Family");
} else if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).get_type().equals("Professional")){ } else if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()) instanceof Professional){
lblOther.setVisible(true); lblOther.setVisible(true);
lblOther.setText("Work"); lblOther.setText("Work");
txtOther.setVisible(true); txtOther.setVisible(true);
...@@ -209,11 +220,13 @@ public class HelloController { ...@@ -209,11 +220,13 @@ public class HelloController {
imported = true; imported = true;
TestFields(); TestFields();
} }
//Btn Delete Click
@FXML @FXML
protected void Delete() { protected void Delete() {
contactArray.remove(selectedID); contactArray.remove(selectedID);
ShowAll(); ShowAll();
} }
//Btn edit Click
@FXML @FXML
protected void Edit() { protected void Edit() {
List<String> firstName = SplitLine(txtFirst.getText(), " "); List<String> firstName = SplitLine(txtFirst.getText(), " ");
...@@ -225,41 +238,48 @@ public class HelloController { ...@@ -225,41 +238,48 @@ public class HelloController {
String job = txtJob.getText(); String job = txtJob.getText();
String other = txtOther.getText(); String other = txtOther.getText();
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditFirstName(firstName); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editFirstName(firstName);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditLastName(lastName); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editLastName(lastName);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditAddress(address); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editAddress(address);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditPhone(phone); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editPhone(phone);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditEmail(emails); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editEmail(emails);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditSocial(social); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editSocial(social);
contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditJob(job); contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editJob(job);
if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).get_type().equals("Family")){ if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).getType().equals("Family")){
//contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).EditRelation(other); //contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).editRelation(other);
} else if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).get_type().equals("Professional")){ Family fam = (Family)contactArray.get(LstCt.getSelectionModel().getSelectedIndex());
} else if(contactArray.get(LstCt.getSelectionModel().getSelectedIndex()).getType().equals("Professional")){
} }
ShowAll(); ShowAll();
} }
//edit text in TextBox for First Name, Last Name and Email
@FXML @FXML
public void TestFields(){ public void TestFields(){
Pattern pat = Pattern.compile(txtEmail.getText()); Pattern pat = Pattern.compile("^(.+)@(.+)\\.(.+)$", Pattern.CASE_INSENSITIVE);
Matcher match = pat.matcher("^(.+)@(.+)$*"); Matcher match = pat.matcher(txtEmail.getText());
if(txtFirst.getText() != "" && txtLast.getText() != "" && match.find()){ if(txtFirst.getText() != "" && txtLast.getText() != "" && match.find()){
if(imported){ if(imported){ //Selected from list, can both save and edit
btnEdit.setDisable(false); btnEdit.setDisable(false);
btnAdd.setDisable(false); btnAdd.setDisable(true);
} else{ } else{ //New contact, can't edit
btnEdit.setDisable(true); btnEdit.setDisable(true);
btnAdd.setDisable(false); btnAdd.setDisable(false);
} }
} else { } else { //No contact, can't save nor edit
btnEdit.setDisable(true); btnEdit.setDisable(true);
btnAdd.setDisable(true); btnAdd.setDisable(true);
} }
} }
//Btn All Click
//Also used for form reset
@FXML @FXML
protected void ShowAll() { protected void ShowAll() {
int cpt = 0; int cpt = 0;
imported = false;
btnEdit.setDisable(true);
btnAdd.setDisable(true);
for(Contact cont: contactArray){ for(Contact cont: contactArray){
cont.setId(cpt); cont.setId(cpt);
cpt++; cpt++;
...@@ -277,8 +297,8 @@ public class HelloController { ...@@ -277,8 +297,8 @@ public class HelloController {
txtJob.setText(""); txtJob.setText("");
txtOther.setText(""); txtOther.setText("");
cbxType.setDisable(false); cbxType.setDisable(false);
imported = false;
} }
//Add a friend
public void AddPal(){ public void AddPal(){
String firstName = txtFirst.getText(); String firstName = txtFirst.getText();
String lastName = txtLast.getText(); String lastName = txtLast.getText();
...@@ -296,6 +316,7 @@ public class HelloController { ...@@ -296,6 +316,7 @@ public class HelloController {
Friend pal = new Friend(first_name_list, lastName, address, phoneList, emailList, socialList, job); Friend pal = new Friend(first_name_list, lastName, address, phoneList, emailList, socialList, job);
Add(pal); Add(pal);
} }
//Add a family member
public void AddFam(){ public void AddFam(){
String firstName = txtFirst.getText(); String firstName = txtFirst.getText();
String lastName = txtLast.getText(); String lastName = txtLast.getText();
...@@ -314,6 +335,7 @@ public class HelloController { ...@@ -314,6 +335,7 @@ public class HelloController {
Family fam = new Family(first_name_list, lastName, address, phoneList, emailList, socialList, job, relation); Family fam = new Family(first_name_list, lastName, address, phoneList, emailList, socialList, job, relation);
Add(fam); Add(fam);
} }
//Add a professional
public void AddPro(){ public void AddPro(){
String firstName = txtFirst.getText(); String firstName = txtFirst.getText();
String lastName = txtLast.getText(); String lastName = txtLast.getText();
...@@ -332,52 +354,57 @@ public class HelloController { ...@@ -332,52 +354,57 @@ public class HelloController {
Professional pro = new Professional(first_name_list, lastName, address, phoneList, emailList, socialList, job, wp); Professional pro = new Professional(first_name_list, lastName, address, phoneList, emailList, socialList, job, wp);
Add(pro); Add(pro);
} }
//Add a contact
public void Add(Contact c){ public void Add(Contact c){
contactArray.add(c); contactArray.add(c);
Collections.sort(contactArray); Collections.sort(contactArray);
ShowAll(); ShowAll();
} }
//Import a friend
public void ImportFriend(List<String> str_array){ public void ImportFriend(List<String> str_array){
Friend f = new Friend( Friend f = new Friend(
SplitArray(str_array.get(1)), SplitLine(str_array.get(1), " "),
str_array.get(2), str_array.get(2),
str_array.get(3), str_array.get(3),
SplitArray(str_array.get(4)), SplitLine(str_array.get(4), " "),
SplitArray(str_array.get(5)), SplitLine(str_array.get(5), " "),
SplitArray(str_array.get(6)), SplitLine(str_array.get(6), " "),
str_array.get(7) str_array.get(7)
); );
f.setId(Integer.parseInt(str_array.get(0))); f.setId(Integer.parseInt(str_array.get(0)));
Add(f); Add(f);
} }
//Import a family member
public void ImportFamily(List<String> str_array){ public void ImportFamily(List<String> str_array){
Family f = new Family( Family f = new Family(
SplitArray(str_array.get(1)), SplitLine(str_array.get(1), " "),
str_array.get(2), str_array.get(2),
str_array.get(3), str_array.get(3),
SplitArray(str_array.get(4)), SplitLine(str_array.get(4), " "),
SplitArray(str_array.get(5)), SplitLine(str_array.get(5), " "),
SplitArray(str_array.get(6)), SplitLine(str_array.get(6), " "),
str_array.get(7), str_array.get(7),
str_array.get(8) str_array.get(8)
); );
f.setId(Integer.parseInt(str_array.get(0))); f.setId(Integer.parseInt(str_array.get(0)));
Add(f); Add(f);
} }
//Import a Professional
public void ImportProfessional(List<String> str_array){ public void ImportProfessional(List<String> str_array){
Professional f = new Professional( Professional f = new Professional(
SplitArray(str_array.get(1)), SplitLine(str_array.get(1), " "),
str_array.get(2), str_array.get(2),
str_array.get(3), str_array.get(3),
SplitArray(str_array.get(4)), SplitLine(str_array.get(4), " "),
SplitArray(str_array.get(5)), SplitLine(str_array.get(5), " "),
SplitArray(str_array.get(6)), SplitLine(str_array.get(6), " "),
str_array.get(7), str_array.get(7),
str_array.get(8) str_array.get(8)
); );
f.setId(Integer.parseInt(str_array.get(0))); f.setId(Integer.parseInt(str_array.get(0)));
Add(f); Add(f);
} }
//Add a contact (any type) to the list
public void AddContactToList(List<String> str_array, int checker){ public void AddContactToList(List<String> str_array, int checker){
switch (checker){ switch (checker){
case 1: case 1:
...@@ -394,29 +421,22 @@ public class HelloController { ...@@ -394,29 +421,22 @@ public class HelloController {
break; break;
} }
} }
//Split a String into String array
//@param str: list to split, splitter: string used as separator
public List<String> SplitLine(String str, String splitter){ public List<String> SplitLine(String str, String splitter){
List<String> data = Arrays.asList(str.split(splitter)); List<String> data = Arrays.asList(str.split(splitter));
return data; return data;
} }
public List<String> SplitArray(String str){
String new_str = "";
for(char c: str.toCharArray()){
if(c !='[' && c !=']'){
new_str += c;
}
}
List<String> names = Arrays.asList(new_str.split(" "));
return names;
}
//TODO //TODO
/* /*
Add comments Unit Test,
edit relation/job?
Test contact exist Test contact exist
Unit Test Label warning
Edit relation/job?
*/ */
} }
\ No newline at end of file
...@@ -7,12 +7,12 @@ public class Professional extends Contact{ ...@@ -7,12 +7,12 @@ public class Professional extends Contact{
super("Professional", first_name, last_name, addr, phone, email, social, job); super("Professional", first_name, last_name, addr, phone, email, social, job);
this.work_place = work_place; this.work_place = work_place;
} }
public String getWork_place() { public String getWorkPlace() {
return work_place; return work_place;
} }
public void EditWork(String newWork){ public void editWork(String new_work){
this.work_place = newWork; this.work_place = new_work;
} }
@Override @Override
public String toString(){ public String toString(){
...@@ -34,7 +34,7 @@ public class Professional extends Contact{ ...@@ -34,7 +34,7 @@ public class Professional extends Contact{
w_social += elem + " "; w_social += elem + " ";
} }
return String.valueOf(id) + " - " + w_names + "- " + last_name + " - " + this.addr + " - " + w_phone + "- " return id + " - " + w_names + "- " + last_name + " - " + this.addr + " - " + w_phone + "- "
+ w_email + "- " + w_social + "- " + this.job + " - " + this.work_place; + w_email + "- " + w_social + "- " + this.job + " - " + this.work_place;
} }
} }
...@@ -46,22 +46,22 @@ ...@@ -46,22 +46,22 @@
<children> <children>
<ListView fx:id="LstCt" layoutX="427.0" layoutY="38.0" onMouseClicked="#Selected" prefHeight="489.0" prefWidth="412.0" /> <ListView fx:id="LstCt" layoutX="427.0" layoutY="38.0" onMouseClicked="#Selected" prefHeight="489.0" prefWidth="412.0" />
<Button fx:id="btnAdd" layoutX="229.0" layoutY="51.0" mnemonicParsing="false" onAction="#AddCt" prefHeight="24.0" prefWidth="62.0" text="Add" /> <Button fx:id="btnAdd" layoutX="229.0" layoutY="51.0" mnemonicParsing="false" onAction="#AddCt" prefHeight="24.0" prefWidth="62.0" text="Add" />
<TextField fx:id="txtFirst" layoutX="32.0" layoutY="52.0" onInputMethodTextChanged="#TestFields" onKeyReleased="#TestFields" /> <TextField fx:id="txtFirst" layoutX="32.0" layoutY="52.0" onAction="#TestFields" onInputMethodTextChanged="#TestFields" onKeyPressed="#TestFields" onKeyReleased="#TestFields" onKeyTyped="#TestFields" />
<Label layoutX="230.0" layoutY="300.0" text="First Name" /> <Label layoutX="230.0" layoutY="300.0" text="First Name" />
<TextField fx:id="txtLast" layoutX="32.0" layoutY="107.0" onInputMethodTextChanged="#TestFields" onKeyReleased="#TestFields" /> <TextField fx:id="txtLast" layoutX="32.0" layoutY="107.0" onAction="#TestFields" onInputMethodTextChanged="#TestFields" onKeyPressed="#TestFields" onKeyReleased="#TestFields" onKeyTyped="#TestFields" />
<Label layoutX="32.0" layoutY="85.0" text="Last Name" /> <Label layoutX="32.0" layoutY="85.0" text="Last Name" />
<TextField fx:id="txtAdd" layoutX="32.0" layoutY="162.0" /> <TextField fx:id="txtAdd" layoutX="32.0" layoutY="162.0" />
<Label layoutX="32.0" layoutY="140.0" text="Address" /> <Label layoutX="32.0" layoutY="140.0" text="Address" />
<TextField fx:id="txtPhone" layoutX="32.0" layoutY="216.0" /> <TextField fx:id="txtPhone" layoutX="32.0" layoutY="216.0" />
<Label layoutX="32.0" layoutY="194.0" text="Phones" /> <Label layoutX="32.0" layoutY="194.0" text="Phones" />
<TextField fx:id="txtEmail" layoutX="32.0" layoutY="270.0" onInputMethodTextChanged="#TestFields" onKeyReleased="#TestFields" /> <TextField fx:id="txtEmail" layoutX="32.0" layoutY="270.0" onAction="#TestFields" onInputMethodTextChanged="#TestFields" onKeyPressed="#TestFields" onKeyReleased="#TestFields" onKeyTyped="#TestFields" />
<Label layoutX="32.0" layoutY="248.0" text="Emails" /> <Label layoutX="32.0" layoutY="248.0" text="Emails" />
<TextField fx:id="txtSocial" layoutX="32.0" layoutY="322.0" /> <TextField fx:id="txtSocial" layoutX="32.0" layoutY="322.0" />
<Label layoutX="32.0" layoutY="300.0" text="Socials" /> <Label layoutX="32.0" layoutY="300.0" text="Socials" />
<TextField fx:id="txtJob" layoutX="32.0" layoutY="374.0" /> <TextField fx:id="txtJob" layoutX="32.0" layoutY="374.0" />
<Label layoutX="32.0" layoutY="352.0" text="Job" /> <Label layoutX="32.0" layoutY="352.0" text="Job" />
<TextField fx:id="txtOther" layoutX="32.0" layoutY="491.0" /> <TextField fx:id="txtOther" layoutX="32.0" layoutY="491.0" />
<Label fx:id="lblOther" layoutX="32.0" layoutY="467.0" prefHeight="16.0" prefWidth="78.0" text="Depends" /> <Label fx:id="lblOther" layoutX="32.0" layoutY="467.0" prefHeight="16.0" prefWidth="171.0" text="Depends" />
<Label layoutX="37.0" layoutY="412.0" text="Type" /> <Label layoutX="37.0" layoutY="412.0" text="Type" />
<Button fx:id="btnSave" layoutX="229.0" layoutY="88.0" mnemonicParsing="false" onAction="#ExportCt" prefHeight="24.0" prefWidth="62.0" text="Save" /> <Button fx:id="btnSave" layoutX="229.0" layoutY="88.0" mnemonicParsing="false" onAction="#ExportCt" prefHeight="24.0" prefWidth="62.0" text="Save" />
<Button fx:id="btnLoad" layoutX="229.0" layoutY="127.0" mnemonicParsing="false" onAction="#ImportCt" prefHeight="24.0" prefWidth="62.0" text="Load" /> <Button fx:id="btnLoad" layoutX="229.0" layoutY="127.0" mnemonicParsing="false" onAction="#ImportCt" prefHeight="24.0" prefWidth="62.0" text="Load" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment