⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icombolabelprovider.java

📁 利用它可以做出非常漂亮的swt界面,包含的组件有PShelf Plist
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -