blob: 0a6404b2fc4e3fd91b6e8d5f13cbc9fae81757c5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Laurent CARON.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Laurent CARON (laurent.caron@gmail.com) - initial API and implementation
*******************************************************************************/
package org.mihalis.opal.multiChoice;
/**
* Classes which implement this interface provide methods that determine what to show in a MultiChoice control.
*/
public interface MultiChoiceLabelProvider {
/**
* Gets the text.
*
* @param element the element for which to provide the label text
* @return the text string used to label the element, or "" if there is no
* text label for the given object
*/
String getText(Object element);
}