All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gxt-2.1.1-sources.com.extjs.gxt.ui.client.widget.InfoConfig Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Ext GWT - Ext for GWT
 * Copyright(c) 2007-2009, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */
package com.extjs.gxt.ui.client.widget;

import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.util.Params;

/**
 * Configuation settings for {@link Info}.
 */
public class InfoConfig {

  /**
   * The info title (defaults to null).
   */
  public String title;

  /**
   * The info text (defaults to null).
   */
  public String text;

  /**
   * The index or key based substitution values.
   */
  public Params params;

  /**
   * The time in milliseconds to display a message (defaults to 2500).
   */
  public int display = 2500;

  /**
   * The info width (defaults to 225).
   */
  public int width = 225;

  /**
   * The info height (defaults to 75).
   */
  public int height = 75;

  /**
   * Listener to be notified when the info is displayed (defaults to null).
   */
  public Listener listener;

  public InfoConfig(String title, String text) {
    this.title = title;
    this.text = text;
  }

  public InfoConfig(String title, String text, Params params) {
    this.title = title;
    this.text = text;
    this.params = params;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy