Package org.apache.wicket.markup.html.resources

Examples of org.apache.wicket.markup.html.resources.CompressedResourceReference


    // try to get the reference from our default mapping
    // first try the language and country
    String ref = (String)localeToLanguageReference.get(currentLocale.toString());
    if (ref != null)
    {
      return new CompressedResourceReference(DatePickerSettings.class, ref);
    }
    // now try only the language
    ref = (String)localeToLanguageReference.get(currentLocale.getLanguage());
    if (ref != null)
    {
      return new CompressedResourceReference(DatePickerSettings.class, ref);
    }

    // we didn't find a mapping; just return English
    return new CompressedResourceReference(DatePickerSettings.class, "lang/calendar-en.js");
  }
View Full Code Here


   *
   * @return a button icon.
   */
  public final ResourceReference newButtonIconBlue()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "calendar_icon_3.gif");
  }
View Full Code Here

   *
   * @return a button icon.
   */
  public final ResourceReference newButtonIconPlain()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "calendar_icon_2.gif");
  }
View Full Code Here

   *
   * @return a button icon.
   */
  public final ResourceReference newButtonIconRed()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "calendar_icon_1.gif");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleAqua()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "style/aqua/theme.css");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleBlue()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "style/calendar-blue2.css");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleGreen()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "style/calendar-green.css");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleSummer()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "style/calendar-brown.css");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleSystem()
  {
    return new CompressedResourceReference(DatePickerSettings.class,
        "style/calendar-system.css");
  }
View Full Code Here

   *
   * @return a style
   */
  public final ResourceReference newStyleTas()
  {
    return new CompressedResourceReference(DatePickerSettings.class, "style/calendar-tas.css");
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.resources.CompressedResourceReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.