com.stringsandints.inventium.khlrooster.layout
Class WeekCalendar

java.lang.Object
  extended by LinearLayout
      extended by com.stringsandints.inventium.khlrooster.layout.WeekCalendar

public class WeekCalendar
extends LinearLayout


Field Summary
private  RelativeLayout hourSelector
           
static int SHOW_FROM_HOUR
           
static int SHOW_TILL_HOUR
           
 java.util.GregorianCalendar showFromDate
           
private  java.util.ArrayList<LinearLayout> vissibleLessons
           
static float WIDTH_HOUR_DP
           
static float WIDTH_HOURMARK_DP
           
 
Constructor Summary
WeekCalendar(Context context)
           
WeekCalendar(Context context, AttributeSet attrs)
           
 
Method Summary
private  void addViewToWeekday(View v, java.util.GregorianCalendar gc)
           
private  boolean dateIsInWeek(java.util.GregorianCalendar gc)
           
 java.util.GregorianCalendar getShowFromDate()
           
private  void insertChildren()
           
private  void prepare()
           
 void setShowFromDate(java.util.GregorianCalendar showFromDate)
           
 void showWeekAfter()
           
 void showWeekBefore()
           
private  void updateDateShown()
           
private  void updateLessons()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH_HOUR_DP

public static final float WIDTH_HOUR_DP
See Also:
Constant Field Values

WIDTH_HOURMARK_DP

public static final float WIDTH_HOURMARK_DP
See Also:
Constant Field Values

SHOW_FROM_HOUR

public static final int SHOW_FROM_HOUR
See Also:
Constant Field Values

SHOW_TILL_HOUR

public static final int SHOW_TILL_HOUR
See Also:
Constant Field Values

showFromDate

public java.util.GregorianCalendar showFromDate

vissibleLessons

private java.util.ArrayList<LinearLayout> vissibleLessons

hourSelector

private RelativeLayout hourSelector
Constructor Detail

WeekCalendar

public WeekCalendar(Context context)

WeekCalendar

public WeekCalendar(Context context,
                    AttributeSet attrs)
Method Detail

prepare

private void prepare()

showWeekBefore

public void showWeekBefore()

showWeekAfter

public void showWeekAfter()

insertChildren

private void insertChildren()

addViewToWeekday

private void addViewToWeekday(View v,
                              java.util.GregorianCalendar gc)

getShowFromDate

public java.util.GregorianCalendar getShowFromDate()

setShowFromDate

public void setShowFromDate(java.util.GregorianCalendar showFromDate)

updateDateShown

private void updateDateShown()

updateLessons

private void updateLessons()

dateIsInWeek

private boolean dateIsInWeek(java.util.GregorianCalendar gc)