/** * Whether alternating weeks should be drawn in alternating styles. If enabled, the cell style for alternate rows will have * {@link com.smartgwt.client.widgets.DateChooser#getAlternateStyleSuffix alternateStyleSuffix} appended to it. * * * @return Boolean */ public Boolean getAlternateWeekStyles() { return getAttributeAsBoolean("alternateWeekStyles"); }
/** * Width of the icon for the next month button * * * @return int */ public int getNextMonthIconWidth() { return getAttributeAsInt("nextMonthIconWidth"); }
/** * CSS style to apply to navigation buttons and date display at the top of the component. If null, the CSS style specified * in {@link com.smartgwt.client.widgets.DateChooser#getBaseButtonStyle baseButtonStyle} is used. * * * @return String */ public String getBaseNavButtonStyle() { return getAttributeAsString("baseNavButtonStyle"); }
/** * CSS style to apply to the buttons at the bottom of the DateChooser ("Today" and "Cancel"). If null, the CSS style * specified in {@link com.smartgwt.client.widgets.DateChooser#getBaseButtonStyle baseButtonStyle} is used. * * @param baseBottomButtonStyle baseBottomButtonStyle Default value is null */ public void setBaseBottomButtonStyle(String baseBottomButtonStyle) { setAttribute("baseBottomButtonStyle", baseBottomButtonStyle, true); }
/** * Add a dataChanged handler. * <p> * Method to override or observe in order to be notified when a user picks a date value. <P> Has no default behavior (so no * need to call Super). <P> Use {@link com.smartgwt.client.widgets.DateChooser#getData DateChooser.getData} to get the * current date value. * * @param handler the dataChanged handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addDataChangedHandler(com.smartgwt.client.widgets.events.DataChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.events.DataChangedEvent.getType()) == 0) setupDataChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.events.DataChangedEvent.getType()); }
public static DateChooser getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (DateChooser) obj; } else { return new DateChooser(jsObj); } }
/** * Base css style applied to weekdays. Will have "Over", "Selected" and "Down" suffix appended as the user interacts with * buttons. Defaults to {@link com.smartgwt.client.widgets.DateChooser#getBaseButtonStyle baseButtonStyle}. * * @param baseWeekdayStyle baseWeekdayStyle Default value is null */ public void setBaseWeekdayStyle(String baseWeekdayStyle) { setAttribute("baseWeekdayStyle", baseWeekdayStyle, true); }
/** * Last year that may be selected. * * @param endYear endYear Default value is 2015 * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setEndYear(int endYear) throws IllegalStateException { setAttribute("endYear", endYear, false); }
/** * CSS style applied to the day-of-week headers. By default this applies to all days of the week. To apply a separate * style to weekend headers, set {@link com.smartgwt.client.widgets.DateChooser#getWeekendHeaderStyle weekendHeaderStyle} * * * @return String */ public String getHeaderStyle() { return getAttributeAsString("headerStyle"); }
/** * Width of the icon for the previous month button * * * @return int */ public int getPrevMonthIconWidth() { return getAttributeAsInt("prevMonthIconWidth"); }
/** * Whether it should be valid to pick a weekend day. If set to true, weekend days appear in disabled style and cannot be * picked. <P> Which days are considered weekends is controlled by weekendDays. * * * @return Boolean */ public Boolean getDisableWeekends() { return getAttributeAsBoolean("disableWeekends"); }
/** * Determines whether the "Cancel" button will be displayed. * * @param showCancelButton showCancelButton Default value is false */ public void setShowCancelButton(Boolean showCancelButton) { setAttribute("showCancelButton", showCancelButton, true); }
/** * Icon for the previous year button * * * @return String * @see com.smartgwt.client.widgets.DateChooser#getShowDoubleYearIcon */ public String getPrevYearIcon() { return getAttributeAsString("prevYearIcon"); }
/** * Earliest year that may be selected. * * * @return int */ public int getStartYear() { return getAttributeAsInt("startYear"); }
/** * Determines whether the "Cancel" button will be displayed. * * * @return Boolean */ public Boolean getShowCancelButton() { return getAttributeAsBoolean("showCancelButton"); }
/** * Whether weekend days should be shown. Which days are considered weekends is controlled by weekendDays. * * @param showWeekends showWeekends Default value is true * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowWeekends(Boolean showWeekends) throws IllegalStateException { setAttribute("showWeekends", showWeekends, false); }
/** * Optional CSS style applied to the day-of-week headers for weekend days. If unset {@link * com.smartgwt.client.widgets.DateChooser#getHeaderStyle headerStyle} will be applied to both weekdays and weekend days. * * * @return String */ public String getWeekendHeaderStyle() { return getAttributeAsString("weekendHeaderStyle"); }
/** * Height of the icon for the previous year button * * * @return int */ public int getPrevYearIconHeight() { return getAttributeAsInt("prevYearIconHeight"); }
/** * Whether weekend days should be shown. Which days are considered weekends is controlled by weekendDays. * * * @return Boolean */ public Boolean getShowWeekends() { return getAttributeAsBoolean("showWeekends"); }
/** * Whether alternating weeks should be drawn in alternating styles. If enabled, the cell style for alternate rows will have * {@link com.smartgwt.client.widgets.DateChooser#getAlternateStyleSuffix alternateStyleSuffix} appended to it. * * @param alternateWeekStyles alternateWeekStyles Default value is null */ public void setAlternateWeekStyles(Boolean alternateWeekStyles) { setAttribute("alternateWeekStyles", alternateWeekStyles, true); }