|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPaintPropertyEditor
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 |
|---|
org.eclipse.swt.graphics.Image getButtonImage()
boolean onButtonClick()
void paint(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle bounds,
boolean focused)
gc - the graphics contextbounds - the bounds in which editor should paintfocused - that flag that tells if property is selected in table, you can for example use different
background to show this.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||