com.swtdesigner.api.swt.property.editor
Interface IPaintPropertyEditor

All Superinterfaces:
IPropertyEditor

public interface IPaintPropertyEditor
extends IPropertyEditor

Property editor that paints property value itself.


Method Summary
 org.eclipse.swt.graphics.Image getButtonImage()
          Returns image that should be displayed on button.
 boolean onButtonClick()
          Designer calls this method when user clicks on button.
You can show here dialog using Shell returned by property editor site.
 void paint(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle bounds, boolean focused)
          Designer calls this method to paint value of property in property table.
 
Methods inherited from interface com.swtdesigner.api.swt.property.editor.IPropertyEditor
getJavaSource, getValue, initialize, setValue
 

Method Detail

getButtonImage

org.eclipse.swt.graphics.Image getButtonImage()
Returns image that should be displayed on button.


onButtonClick

boolean onButtonClick()
Designer calls this method when user clicks on button.
You can show here dialog using Shell returned by property editor site.


paint

void paint(org.eclipse.swt.graphics.GC gc,
           org.eclipse.swt.graphics.Rectangle bounds,
           boolean focused)
Designer calls this method to paint value of property in property table.

Parameters:
gc - the graphics context
bounds - the bounds in which editor should paint
focused - that flag that tells if property is selected in table, you can for example use different background to show this.