Package org.apache.wicket.markup.html.image.resource

Examples of org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource


   * @see org.apache.wicket.protocol.http.WebApplication#init()
   */
  @Override
  protected void init()
  {
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
    // log host name and server time in the browser's status bar
    getRequestCycleSettings().addResponseFilter(new ServerHostNameAndTimeFilter());
  }
View Full Code Here


   * @param label
   *            The button label
   */
  public ImageButton(final String id, final String label)
  {
    this(id, new DefaultButtonImageResource(label));
  }
View Full Code Here

  /**
   * Constructor
   */
  public LinkomaticApplication()
  {
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
  }
View Full Code Here

   * @see org.apache.wicket.examples.WicketExampleApplication#init()
   */
  @Override
  protected void init()
  {
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
  }
View Full Code Here

   * @see org.apache.wicket.protocol.http.WebApplication#init()
   */
  @Override
  protected void init()
  {
    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
    // log host name and server time in the browser's status bar
    getRequestCycleSettings().addResponseFilter(new ServerHostNameAndTimeFilter());
  }
View Full Code Here

  {
    getResourceSettings().setThrowExceptionOnMissingResource(false);

    // Chinese buttons
    Font font = new Font("SimSun", Font.BOLD, 16);
    DefaultButtonImageResource imgSave = new DefaultButtonImageResource("\u4FDD\u5B58");
    imgSave.setFont(font);
    DefaultButtonImageResource imgReset = new DefaultButtonImageResource("\u91CD\u7F6E");
    imgReset.setFont(font);
    SharedResources sharedResources = getSharedResources();
    sharedResources.add("save", Locale.SIMPLIFIED_CHINESE, imgSave);
    sharedResources.add("reset", Locale.SIMPLIFIED_CHINESE, imgReset);

    // Japanese buttons
    Font fontJa = new Font("Serif", Font.BOLD, 16);
    DefaultButtonImageResource imgSaveJa = new DefaultButtonImageResource("\u4fdd\u5b58");
    imgSaveJa.setFont(fontJa);
    DefaultButtonImageResource imgResetJa = new DefaultButtonImageResource(
      "\u30ea\u30bb\u30c3\u30c8");
    imgResetJa.setFont(fontJa);
    sharedResources.add("save", Locale.JAPANESE, imgSaveJa);
    sharedResources.add("reset", Locale.JAPANESE, imgResetJa);

    // Persian buttons
    Font fontFa = new Font("Serif", Font.BOLD, 16);
    Locale farsi = new Locale("fa", "IR");
    DefaultButtonImageResource imgSaveFa = new DefaultButtonImageResource(
      "\u0630\u062e\u064a\u0631\u0647");
    imgSaveFa.setFont(fontFa);
    DefaultButtonImageResource imgResetFa = new DefaultButtonImageResource(
      "\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u064a");
    imgResetFa.setFont(fontFa);
    getSharedResources().add("save", farsi, imgSaveFa);
    getSharedResources().add("reset", farsi, imgResetFa);
  }
View Full Code Here

        (isGuessed() ? "_enabled" : "_disabled"))
    {
      protected Resource newResource()
      {
        // Lazy loading of shared resource
        final DefaultButtonImageResource buttonResource = new DefaultButtonImageResource(
            30, 30, asString());
        if (!isGuessed())
        {
          buttonResource.setColor(Color.GRAY);
        }
        return buttonResource;
      }
    };
  }
View Full Code Here

    getResourceSettings().setThrowExceptionOnMissingResource(false);

    // Chinese buttons
    Font font = new Font("SimSun", Font.BOLD, 16);
    DefaultButtonImageResource imgSave = new DefaultButtonImageResource("\u4FDD\u5B58");
    imgSave.setFont(font);
    DefaultButtonImageResource imgReset = new DefaultButtonImageResource("\u91CD\u7F6E");
    imgReset.setFont(font);
    SharedResources sharedResources = getSharedResources();
    sharedResources.add("save", Locale.SIMPLIFIED_CHINESE, imgSave);
    sharedResources.add("reset", Locale.SIMPLIFIED_CHINESE, imgReset);

    // Japanese buttons
    Font fontJa = new Font("Serif", Font.BOLD, 16);
    DefaultButtonImageResource imgSaveJa = new DefaultButtonImageResource("\u4fdd\u5b58");
    imgSaveJa.setFont(fontJa);
    DefaultButtonImageResource imgResetJa = new DefaultButtonImageResource(
      "\u30ea\u30bb\u30c3\u30c8");
    imgResetJa.setFont(fontJa);
    sharedResources.add("save", Locale.JAPANESE, imgSaveJa);
    sharedResources.add("reset", Locale.JAPANESE, imgResetJa);

    // Persian buttons
    Font fontFa = new Font("Serif", Font.BOLD, 16);
    Locale farsi = new Locale("fa", "IR");
    DefaultButtonImageResource imgSaveFa = new DefaultButtonImageResource(
      "\u0630\u062e\u064a\u0631\u0647");
    imgSaveFa.setFont(fontFa);
    DefaultButtonImageResource imgResetFa = new DefaultButtonImageResource(
      "\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u064a");
    imgResetFa.setFont(fontFa);
    getSharedResources().add("save", farsi, imgSaveFa);
    getSharedResources().add("reset", farsi, imgResetFa);
  }
View Full Code Here

  @Override
  protected void init()
  {
    super.init();

    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
    // log host name and server time in the browser's status bar
    getRequestCycleSettings().addResponseFilter(new ServerHostNameAndTimeFilter());
  }
View Full Code Here

  @Override
  protected void init()
  {
    super.init();

    getSharedResources().add("cancelButton", new DefaultButtonImageResource("Cancel"));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource

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.