icombolabelprovider.java
来自「利用它可以做出非常漂亮的swt界面,包含的组件有PShelf Plist」· Java 代码 · 共 42 行
JAVA
42 行
package com.swtplus.widgets.combo;
import org.eclipse.swt.graphics.Image;
/**
* IComboLabelProvider maps elements to their visual representation.
*/
public interface IComboLabelProvider {
/**
* Returns the textual representation of the given element.
*
* @param element element for which to provide text
* @return textual representation for the given element
*/
public String getText(Object element);
/**
* Returns an image representation for the given element.
*
* @param element element for which to provide an image
* @return image for given element or null
*/
public Image getImage(Object element);
/**
* Returns a tooltip for the given element.
*
* @param element element for which to provide a tooltip
*
* @return tooltip for the given element
*/
public String getToolTip(Object element);
/**
* Disposes of any resources used by this IComboLabelProvider.
*/
public void dispose();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?