Tabnine Logo
org.apache.wicket.extensions.yui.calendar
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.wicket.extensions.yui.calendar

Best Java code snippets using org.apache.wicket.extensions.yui.calendar (Showing top 20 results out of 315)

origin: org.apache.wicket/wicket-datetime

  @Override
  protected void configure(final Map<String, Object> widgetProperties,
    final IHeaderResponse response, final Map<String, Object> initVariables)
  {
    super.configure(widgetProperties, response, initVariables);
    DateTimeField.this.configure(widgetProperties);
  }
};
origin: org.apache.wicket/wicket-datetime

/**
 * Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending
 * on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can
 * call {@link #getJavaScriptWidgetId()}.
 * 
 * @return The javascript id
 * @see #getJavaScriptWidgetId()
 */
public final String getJavaScriptId()
{
  return getMarkupId() + "Js";
}
origin: org.apache.wicket/wicket-datetime

/**
 * The name spaced id of the widget.
 * 
 * @return The widget id
 * @see #getJavaScriptId()
 */
public final String getJavaScriptWidgetId()
{
  return "YAHOO.wicket." + getJavaScriptId();
}
origin: org.apache.wicket/wicket-datetime

@Override
public void convertInput()
{
  Date modelObject = (Date)getDefaultModelObject();
  getDateTextField().setConvertedInput(modelObject != null ? modelObject : newDateInstance());
  super.convertInput();
}
origin: org.apache.wicket/wicket-datetime

/**
 * @return either 12 or 24, depending on the hour format of the current {@link Locale}
 */
private int getMaximumHours()
{
  return getMaximumHours(use12HourFormat());
}
origin: org.apache.wicket/wicket-datetime

/**
 * Check that this behavior can get a date format out of the component it is coupled to. It
 * checks whether {@link #getDatePattern()} produces a non-null value. If that method returns
 * null, and exception will be thrown
 * 
 * @param component
 *            the component this behavior is being coupled to
 * @throws UnableToDetermineFormatException
 *             if this date picker is unable to determine a format.
 */
private void checkComponentProvidesDateFormat(final Component component)
{
  if (getDatePattern() == null)
  {
    throw new UnableToDetermineFormatException();
  }
}
origin: de.alpharogroup/jaulp-wicket-components

/**
 * Factory method for create a new {@link DateTimeField}.
 *
 * @param id
 *            the id
 * @param model
 *            the model
 * @return the {@link DateTimeField}.
 */
public static DateTimeField newDateTimeField(final String id, final IModel<Date> model)
{
  final DateTimeField dateTextField = new DateTimeField(id, model);
  dateTextField.setOutputMarkupId(true);
  return dateTextField;
}
origin: org.apache.wicket/wicket-datetime

/**
 * Gets the id of the icon that triggers the popup.
 * 
 * @return The id of the icon
 */
protected final String getIconId()
{
  return getEscapedComponentMarkupId() + "Icon";
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * Makes a copy of the provided array and for each element copy the substring 0..len to the new
 * array
 *
 * @param array
 *            array to copy from
 * @param len
 *            size of substring for each element to copy
 * @return copy of the array filled with substrings.
 */
protected final String[] substring(final String[] array, final int len)
{
  return substring(array, 0, len);
}
origin: org.apache.wicket/wicket-datetime

/**
 * {@inheritDoc}
 */
@Override
public void bind(final Component component)
{
  this.component = component;
  checkComponentProvidesDateFormat(component);
  component.setOutputMarkupId(true);
}
origin: org.wicketstuff/wicketstuff-datetime-yui

@Override
public void convertInput()
{
  Date modelObject = (Date)getDefaultModelObject();
  getDateTextField().setConvertedInput(modelObject != null ? modelObject : newDateInstance());
  super.convertInput();
}
origin: org.wicketstuff/wicketstuff-datetime-yui

  @Override
  protected void configure(final Map<String, Object> widgetProperties,
    final IHeaderResponse response, final Map<String, Object> initVariables)
  {
    super.configure(widgetProperties, response, initVariables);
    DateTimeField.this.configure(widgetProperties);
  }
};
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * @return either 12 or 24, depending on the hour format of the current {@link Locale}
 */
private int getMaximumHours()
{
  return getMaximumHours(use12HourFormat());
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * Check that this behavior can get a date format out of the component it is coupled to. It
 * checks whether {@link #getDatePattern()} produces a non-null value. If that method returns
 * null, and exception will be thrown
 *
 * @param component
 *            the component this behavior is being coupled to
 * @throws UnableToDetermineFormatException
 *             if this date picker is unable to determine a format.
 */
private void checkComponentProvidesDateFormat(final Component component)
{
  if (getDatePattern() == null)
  {
    throw new UnableToDetermineFormatException();
  }
}
origin: de.alpharogroup/jaulp.wicket.components

/**
 * Factory method for create a new {@link DateTimeField}.
 *
 * @param id
 *            the id
 * @param model
 *            the model
 * @return the {@link DateTimeField}.
 */
public static DateTimeField newDateTimeField(final String id, final IModel<Date> model)
{
  final DateTimeField dateTextField = new DateTimeField(id, model);
  dateTextField.setOutputMarkupId(true);
  return dateTextField;
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending
 * on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can
 * call {@link #getJavaScriptWidgetId()}.
 *
 * @return The javascript id
 * @see #getJavaScriptWidgetId()
 */
public final String getJavaScriptId()
{
  return getMarkupId() + "Js";
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * The name spaced id of the widget.
 *
 * @return The widget id
 * @see #getJavaScriptId()
 */
public final String getJavaScriptWidgetId()
{
  return "YAHOO.wicket." + getJavaScriptId();
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * Gets the id of the icon that triggers the popup.
 *
 * @return The id of the icon
 */
protected final String getIconId()
{
  return getEscapedComponentMarkupId() + "Icon";
}
origin: org.apache.wicket/wicket-datetime

/**
 * Makes a copy of the provided array and for each element copy the substring 0..len to the new
 * array
 * 
 * @param array
 *            array to copy from
 * @param len
 *            size of substring for each element to copy
 * @return copy of the array filled with substrings.
 */
protected final String[] substring(final String[] array, final int len)
{
  return substring(array, 0, len);
}
origin: org.wicketstuff/wicketstuff-datetime-yui

/**
 * {@inheritDoc}
 */
@Override
public void bind(final Component component)
{
  this.component = component;
  checkComponentProvidesDateFormat(component);
  component.setOutputMarkupId(true);
}
org.apache.wicket.extensions.yui.calendar

Most used classes

  • DatePicker
    Pops up a YUI calendar component so that the user can select a date. On selection, the date is set i
  • DateTimeField
    Works on a java.util.Date object. Displays a date field and a DatePicker, a field for hours and a fi
  • AbstractCalendar
    Abstract calendar component based on the YUI (Yahoo User Interface library) javascript widget. Altho
  • DateField
    Works on a java.util.Date object. Displays a DateTextField and a DatePicker. Note: DateField must n
  • DatePicker$UnableToDetermineFormatException
    Exception thrown when the bound component does not produce a format this date picker can work with.
  • TimeField
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now