com.bradrydzewski.gwt.calendar.client
Class Calendar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.bradrydzewski.gwt.calendar.client.InteractiveWidget
                  extended by com.bradrydzewski.gwt.calendar.client.CalendarWidget
                      extended by com.bradrydzewski.gwt.calendar.client.Calendar
All Implemented Interfaces:
HasDateRequestHandlers<Date>, HasDeleteHandlers<Appointment>, HasMouseOverHandlers<Appointment>, HasTimeBlockClickHandlers<Date>, HasUpdateHandlers<Appointment>, HasAppointments, HasLayout, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasOpenHandlers<Appointment>, com.google.gwt.event.logical.shared.HasSelectionHandlers<Appointment>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.ProvidesResize, com.google.gwt.user.client.ui.RequiresResize

public class Calendar
extends CalendarWidget
implements com.google.gwt.user.client.ui.RequiresResize, com.google.gwt.user.client.ui.ProvidesResize


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.bradrydzewski.gwt.calendar.client.InteractiveWidget
rootPanel
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Calendar()
          Constructs a Calendar with the DayView currently displayed.
Calendar(CalendarView view)
          Constructs a Calendar with the a user-defined CalendarView displayed by default.
Calendar(CalendarViews view)
          Constructs a Calendar with the given CalendarView displayed by default.
 
Method Summary
 void onResize()
           
 void setView(CalendarViews view)
          Sets the CalendarView that should be used by the Calendar to display the list of appointments.
 void setView(CalendarViews view, int days)
          Sets the current view of this calendar.
 
Methods inherited from class com.bradrydzewski.gwt.calendar.client.CalendarWidget
addAppointment, addAppointments, addCreateHandler, addDateRequestHandler, addDaysToDate, addDeleteHandler, addMouseOverHandler, addOpenHandler, addSelectionHandler, addTimeBlockClickHandler, addToRootPanel, addUpdateHandler, clearAppointments, doLayout, doSizing, fireCreateEvent, fireDateRequestEvent, fireDateRequestEvent, fireDeleteEvent, fireMouseOverEvent, fireOpenEvent, fireSelectionEvent, fireTimeBlockClickEvent, fireUpdateEvent, getAppointments, getDate, getDays, getSelectedAppointment, getSettings, getView, hasAppointmentSelected, isTheSelectedAppointment, onDeleteKeyPressed, onDoubleClick, onDownArrowKeyPressed, onLeftArrowKeyPressed, onLoad, onMouseDown, onMouseOver, onRightArrowKeyPressed, onUpArrowKeyPressed, refresh, removeAppointment, removeAppointment, removeCurrentlySelectedAppointment, resetSelectedAppointment, resumeLayout, scrollToHour, selectNextAppointment, selectPreviousAppointment, setCommittedAppointment, setDate, setDate, setDays, setRollbackAppointment, setSelectedAppointment, setSelectedAppointment, setSettings, setView, suspendLayout
 
Methods inherited from class com.bradrydzewski.gwt.calendar.client.InteractiveWidget
getRootPanel, keyboardNavigation, onBrowserEvent
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

Calendar

public Calendar()
Constructs a Calendar with the DayView currently displayed.


Calendar

public Calendar(CalendarViews view)
Constructs a Calendar with the given CalendarView displayed by default.


Calendar

public Calendar(CalendarView view)
Constructs a Calendar with the a user-defined CalendarView displayed by default.

Method Detail

setView

public void setView(CalendarViews view)
Sets the CalendarView that should be used by the Calendar to display the list of appointments.

Parameters:
view -

setView

public void setView(CalendarViews view,
                    int days)
Sets the current view of this calendar.

Parameters:
view - The ID of a view used to visualize the appointments managed by the calendar
days - The number of days to display in the view, which can be ignored by some views.

onResize

public void onResize()
Specified by:
onResize in interface com.google.gwt.user.client.ui.RequiresResize


Copyright © 2012. All Rights Reserved.