com.gwtextux.client.widgets
Class MultiMonthCalendar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.gwtext.client.widgets.Component
              extended by com.gwtextux.client.widgets.MultiMonthCalendar
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.gwtext.client.widgets.Observable

public class MultiMonthCalendar
extends com.gwtext.client.widgets.Component


Field Summary
 
Fields inherited from class com.gwtext.client.widgets.Component
config, id
 
Constructor Summary
MultiMonthCalendar()
           
 
Method Summary
protected  com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
           
static com.google.gwt.core.client.JavaScriptObject createRE(java.lang.String regexp)
           
protected  java.util.Date getAttributeAsDate(java.lang.String attribute)
           
protected  com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
           
 java.lang.String[] getDayNames()
           
 java.lang.String getDisabledDatesText()
           
 int[] getDisabledDays()
           
 java.lang.String getDisabledDaysText()
           
 java.lang.String getFormat()
           
 java.util.Date getMaxDate()
           
 java.lang.String getMaxText()
           
 java.util.Date getMinDate()
           
 java.lang.String getMinText()
           
 java.lang.String[] getMonthNames()
           
 java.lang.String getNextText()
           
 int getNoOfMonthPerRow()
           
 java.lang.String getPrevText()
           
 int getStartDay()
           
 java.util.Date getValue()
           
 java.lang.String getXType()
           
 boolean isConstrainToViewport()
           
 void setConstrainToViewport(boolean constrainToViewport)
           
 void setDayNames(java.lang.String[] dayNames)
           
 void setDisabledDatesRE(java.lang.String disabledDatesRE)
           
 void setDisabledDatesText(java.lang.String disabledDatesText)
           
 void setDisabledDays(int[] disabledDays)
           
 void setDisabledDaysText(java.lang.String disabledDaysText)
           
 void setEventDates(java.util.Date[] eventDates)
           
 void setFormat(java.lang.String format)
           
 void setMaxDate(java.util.Date date)
           
 void setMaxText(java.lang.String maxText)
           
 void setMinDate(java.util.Date date)
           
 void setMinText(java.lang.String minText)
           
 void setMonthNames(java.lang.String[] monthNames)
           
 void setNextText(java.lang.String nextText)
           
 void setNoOfMonth(int noOfMonth)
           
 void setNoOfMonthPerRow(int noOfMonthPerRow)
           
 void setPrevText(java.lang.String prevText)
           
 void setStartDay(int startDay)
           
 void setValue(java.util.Date value)
           
 
Methods inherited from class com.gwtext.client.widgets.Component
addClass, addClassCreated, addEvent, addEvents, addListener, addListener, addListener, addPlugin, addStyleDependentName, addStyleName, afterRender, beforeDestroy, check, cloneComponent, cloneComponent, cloneConfig, destroy, disable, enable, equals, error, findParentBy, findParentByType, fireEvent, focus, focus, focus, getApplyTo, getAttribute, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAutoShow, getCls, getComponentJS, getConfig, getCtCls, getDisabledClass, getEl, getElement, getElement, getElement, getHideMode, getHideParent, getId, getItemId, getJsObj, getOffsetHeight, getOffsetWidth, getOrCreateJsObj, getOwnerContainer, getRenderTo, getStateEvents, getStateId, getStyleElement, getTitle, getXTypes, hashCode, hide, initComponent, isCreated, isDisabled, isHidden, isRendered, isVisible, isXType, isXType, onDestroy, purgeListeners, removeClass, removeStyleDependentName, removeStyleName, render, render, render, render, render, render, resumeEvents, setApplyTo, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoEl, setAutoEl, setAutoShow, setCls, setCtCls, setDisabled, setDisabledClass, setEl, setEl, setHeight, setHideMode, setHideParent, setId, setRenderTo, setRenderToID, setStateEvents, setStateId, setStyle, setStyle, setStyleName, setStylePrimaryName, setTitle, setVisible, setWidth, show, suspendEvents
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
getAbsoluteLeft, getAbsoluteTop, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiMonthCalendar

public MultiMonthCalendar()
Method Detail

getXType

public java.lang.String getXType()
Overrides:
getXType in class com.gwtext.client.widgets.Component

getConfigPrototype

protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
Specified by:
getConfigPrototype in class com.gwtext.client.widgets.Component

create

protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
Specified by:
create in class com.gwtext.client.widgets.Component

setNoOfMonth

public void setNoOfMonth(int noOfMonth)

setValue

public void setValue(java.util.Date value)

getValue

public java.util.Date getValue()

setEventDates

public void setEventDates(java.util.Date[] eventDates)

setDisabledDays

public void setDisabledDays(int[] disabledDays)
Parameters:
disabledDays - An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).

getDisabledDays

public int[] getDisabledDays()
Returns:
An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).

setMinDate

public void setMinDate(java.util.Date date)
Parameters:
date - Minimum allowable date (JavaScript date object, defaults to null)

setMaxDate

public void setMaxDate(java.util.Date date)
Parameters:
date - Maximum allowable date (JavaScript date object, defaults to null)

getAttributeAsDate

protected java.util.Date getAttributeAsDate(java.lang.String attribute)

getMinDate

public java.util.Date getMinDate()
Returns:
Minimum allowable date (JavaScript date object, defaults to null)

getMaxDate

public java.util.Date getMaxDate()
Returns:
Maximum allowable date (JavaScript date object, defaults to null)

getMinText

public java.lang.String getMinText()
Returns:
The error text to display if the minDate validation fails (defaults to "This date is before the minimum date")

setMinText

public void setMinText(java.lang.String minText)
Parameters:
minText - The error text to display if the minDate validation fails (defaults to "This date is before the minimum date")

getMaxText

public java.lang.String getMaxText()
Returns:
The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date")

setMaxText

public void setMaxText(java.lang.String maxText)
Parameters:
maxText - The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date")

getFormat

public java.lang.String getFormat()
Returns:
The default date format string which can be overriden for localization support. The format must be valid according to Date#parseDate (defaults to 'm/d/y').

setFormat

public void setFormat(java.lang.String format)
Parameters:
format - The default date format string which can be overriden for localization support. The format must be valid according to Date#parseDate (defaults to 'm/d/y').

getDisabledDaysText

public java.lang.String getDisabledDaysText()
Returns:
The tooltip to display when the date falls on a disabled day (defaults to "")

setDisabledDaysText

public void setDisabledDaysText(java.lang.String disabledDaysText)
Parameters:
disabledDaysText - The tooltip to display when the date falls on a disabled day (defaults to "")

createRE

public static com.google.gwt.core.client.JavaScriptObject createRE(java.lang.String regexp)

setDisabledDatesRE

public void setDisabledDatesRE(java.lang.String disabledDatesRE)
Parameters:
disabledDatesRE - JavaScript regular expression used to disable a pattern of dates (defaults to null)

setDisabledDatesText

public void setDisabledDatesText(java.lang.String disabledDatesText)
Parameters:
disabledDatesText - The tooltip text to display when the date falls on a disabled date (defaults to "")

getDisabledDatesText

public java.lang.String getDisabledDatesText()
Returns:
The tooltip text to display when the date falls on a disabled date (defaults to "")

setConstrainToViewport

public void setConstrainToViewport(boolean constrainToViewport)
Parameters:
constrainToViewport - True to constrain the date picker to the viewport (defaults to true)

isConstrainToViewport

public boolean isConstrainToViewport()
Returns:
True to constrain the date picker to the viewport (defaults to true)

setMonthNames

public void setMonthNames(java.lang.String[] monthNames)
Parameters:
monthNames - An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)

getMonthNames

public java.lang.String[] getMonthNames()
Returns:
An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)

setDayNames

public void setDayNames(java.lang.String[] dayNames)
Parameters:
dayNames - An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)

getDayNames

public java.lang.String[] getDayNames()
Returns:
An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)

setNextText

public void setNextText(java.lang.String nextText)
Parameters:
nextText - The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')

getNextText

public java.lang.String getNextText()
Returns:
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')

setPrevText

public void setPrevText(java.lang.String prevText)
Parameters:
nextText - The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')

getPrevText

public java.lang.String getPrevText()
Returns:
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')

setStartDay

public void setStartDay(int startDay)
Parameters:
startDay - Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)

getStartDay

public int getStartDay()
Returns:
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)

setNoOfMonthPerRow

public void setNoOfMonthPerRow(int noOfMonthPerRow)
Parameters:
noOfMonthPerRow - No. Of Month to be displayed in a row

getNoOfMonthPerRow

public int getNoOfMonthPerRow()
Returns:
No. Of Month to be displayed in a row