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

com.sencha.gxt.data.shared.LabelProvider Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
/**
 * Sencha GXT 3.0.0 - Sencha for GWT
 * Copyright(c) 2007-2012, Sencha, Inc.
 * [email protected]
 *
 * http://www.sencha.com/products/gxt/license/
 */
package com.sencha.gxt.data.shared;

/**
 * LabelProvider's are responsible for returning a label for a given object.
 * 
 * @see PropertyAccess
 * @param  the type of the object for which a label will be created
 */
public interface LabelProvider {

  /**
   * Returns a label for the given object. The return value is treated as plain
   * text, and will be escaped before it is drawn.
   * 
   * @param item the object to get a label from
   * @return a string value for the label, to be rendered as plain text.
   */
  String getLabel(T item);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy