📄 ipaintpropertyeditor.java
字号:
package com.swtdesigner.api.swt.property.editor;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;
/**
* Property editor that paints property value itself.
*
* @author scheglov_ke
*/
public interface IPaintPropertyEditor extends IPropertyEditor {
/**
* Designer calls this method to paint value of property in property table.
*
* @param gc the graphics context
* @param bounds the bounds in which editor should paint
* @param focused that flag that tells if property is selected in table, you can for example use different backgound to show this.
*/
void paint(GC gc, Rectangle bounds, boolean focused);
/**
* Returns image that should be displayed on button.
*/
Image getButtonImage();
/**
* Designer calls this method when user clicks on button.
* You can show here dialog using Shell returned by property editor site.
*/
boolean onButtonClick();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -