Skip to content

Commit

Permalink
Updated software
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanashastri committed Jun 8, 2017
1 parent 557ad5c commit 226e5aa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 29 deletions.
12 changes: 7 additions & 5 deletions src/JavaFXGUI/EnterInfoTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ public EnterInfoTab(MenuTabPane par, EnterStudentTab prev, String title,
while(file.hasNext()){

stringData = file.nextLine();
// infoOptionSelect.removeChoiceBox();
System.out.println(stringData);
infoOptionSelect.removeChoiceBox();
if (stringData.equals("+++")){
v ++;
// infoOptionSelect.addChoiceBox(true, infoOptionSelect);
infoOptionSelect.removeChoiceBox();
}
else if (stringData.equals("++")&& version == v){
page++;
Expand All @@ -106,9 +107,10 @@ else if (stringData.equals("++")&& version == v){
else{
infoOptionSelect.addPage(stringData);
}
// infoOptionSelect.addChoiceBox(true, infoOptionSelect);
infoOptionSelect.removeChoiceBox();
}
else if (stringData.equals("++++")){
v++;
stringData=file.nextLine();
if (stringData.contains("Submit Button")){
String[] stringDatas = stringData.split(", ");
Expand All @@ -131,11 +133,11 @@ else if (stringData.equals("++++")){
}
infoOptionSelect.splitScreen(page+1, title1, title2, data1, data2, infoOptionSelect);
}
// infoOptionSelect.addChoiceBox(false, infoOptionSelect);
infoOptionSelect.removeChoiceBox();
}
else if (version == v){
infoOptionSelect.addButton(page, stringData, stringData);
// infoOptionSelect.addChoiceBox(true, infoOptionSelect);
infoOptionSelect.removeChoiceBox();
}
}
file.close();
Expand Down
11 changes: 4 additions & 7 deletions src/JavaFXGUI/OptionSelect.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,14 @@ public void addChoiceBox(boolean rem, OptionSelect o){
if(rem){
removeChoiceBox();
}
System.out.println(buttonVBox.getChildren().contains(hb));
}
public void removeChoiceBox(){
if(buttonVBox.getChildren().contains(optionHBoxArray)){
// if(buttonVBox.getChildren().contains(optionHBoxArray)){
buttonVBox.getChildren().remove(hb);
}
System.out.println("called");
// if(buttonVBox.getChildren().contains(c)){
//// System.out.println(buttonVBox.getChildren().contains(c));
// c.setDisable(true);
// buttonVBox.getChildren().remove(c);
// }
System.out.println("remove: " +buttonVBox.getChildren().contains(hb));
System.out.println("called");
}
/**
* This is called by the ButtonHandler to add information to the Data.
Expand Down
28 changes: 14 additions & 14 deletions src/backend/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public String getReason() {


public void setReason(String reason) {
if(this.reason != null){
this.reason += ", " +reason;
}else{
System.out.println("NULLEDEDED");
// if(this.reason != null){
// this.reason += ", " +reason;
// }else{
// System.out.println("NULLEDEDED");
this.reason=reason;
}
// }
}



public String getNote() {
Expand All @@ -115,12 +115,12 @@ public String getTime(){
}

public void setTime(String t){
if(t != null){
time += ", " + t;
}else{
// if(t != null){
// time += ", " + t;
// }else{
// System.out.println("time: " + this.time);
this.time=t;
}
// }
}

public String getDate(){
Expand All @@ -136,11 +136,11 @@ public void setExcused(String excused) {
this.excused = excused;
}
public void setArrTime(String arrTime) {
if(this.arrTime.equals("None")){
// if(this.arrTime.equals("None")){
this.arrTime = arrTime;
}else{
this.arrTime += ", " + arrTime;
}
// }else{
// this.arrTime += ", " + arrTime;
// }
}
public String getArrTime() {
return arrTime;
Expand Down
2 changes: 1 addition & 1 deletion src/css/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
}

.RadioButton {
-fx-font-size: 15px;
-fx-font-size: 18px;
}
.tab{
-fx-background-color: #FFF;
Expand Down
3 changes: 1 addition & 2 deletions src/data/options.sip
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ Unexcused
Religious Reason
Transportation
College Visit
+++
++++
Submit Button, Enter reason for leaving and who you were excused by:
Submit Button, Enter reason for leaving:
Sick
Doctor/Dentist Appointment
Religious Reason
Expand Down

0 comments on commit 226e5aa

Please sign in to comment.