Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
rebenely committed Mar 23, 2018
1 parent ac6e50c commit fae1554
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,18 @@ public boolean onLongClick(View view) {
return v;
}

/*
* Name: createDivider
* Creation Date: 2/19/18
* Purpose: creates a divider
* Arguments:
* none
* Other Requirements:
* none
* Return Value: View - the divider v
*
* vipul mittal. https://stackoverflow.com/questions/21098618/how-to-make-horizontal-line-in-android-programmatically. Last Accessed: 1/28/18
*/
private View createDivider() {
View v_d = new View(v.getContext());
v_d.setLayoutParams(new LinearLayout.LayoutParams(
Expand All @@ -598,9 +610,6 @@ private View createDivider() {
return v_d;
}

private void onClickMisc(View view) {

}

/*
* Name: setClickEffect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@

import java.util.List;

/**
* {@link RecyclerView.Adapter} that can display a {@link DummyItem} and makes a call to the
* specified {@link OnListFragmentInteractionListener}.
* TODO: Replace the implementation with code for your data type.
*/

public class MySubjectRecyclerViewAdapter extends RecyclerView.Adapter<MySubjectRecyclerViewAdapter.ViewHolder> {

private final List<Subject> mValues; //loaded values
Expand Down
32 changes: 30 additions & 2 deletions Android Studio Files/app/src/main/java/com/cs192/upcc/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,31 @@ public StringBuffer viewSubject(){
}
return buffer;
}

/*
* Name: setStanding
* Creation Date: 3/23/18
* Purpose: updates student standing
* Arguments:
* aStanding
* Other Requirements:
* none
* Return Value: void
*/
public void setStanding(int aStanding){

this.standing = aStanding;

}

/*
* Name: updateStanding
* Creation Date: 3/23/18
* Purpose: updates student standing
* Arguments:
* aStanding
* Other Requirements:
* none
* Return Value: void
*/
public void updateStanding(){
if( totalUnits >= unitsPerYear[1] ){
setStanding(UPCC.STUDENT_SOPHOMORE);
Expand All @@ -498,6 +516,16 @@ public void updateStanding(){
setStanding(UPCC.STUDENT_SENIOR);
}
}
/*
* Name: getStanding
* Creation Date: 3/23/18
* Purpose: gets student standing
* Arguments:
* none
* Other Requirements:
* none
* Return Value: int
*/
public int getStanding(){
return this.standing;
}
Expand Down

0 comments on commit fae1554

Please sign in to comment.