Class PTFontEditor
java.lang.Object
org.eclipse.nebula.widgets.opal.propertytable.editor.PTEditor
org.eclipse.nebula.widgets.opal.propertytable.editor.PTChooserEditor
org.eclipse.nebula.widgets.opal.propertytable.editor.PTFontEditor
public class PTFontEditor extends PTChooserEditor
This editor is a font editor
-
Constructor Summary
Constructors Constructor Description PTFontEditor()
-
Method Summary
Modifier and Type Method Description protected org.eclipse.swt.graphics.Color
getBackgroundColor(PTProperty property)
Get the background color of an itemprotected java.lang.String
getTextFor(PTProperty property)
protected void
openWindow(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
Open the window to edit the propertyMethods inherited from class org.eclipse.nebula.widgets.opal.propertytable.editor.PTChooserEditor
render
-
Constructor Details
-
PTFontEditor
public PTFontEditor()
-
-
Method Details
-
openWindow
Description copied from class:PTChooserEditor
Open the window to edit the property- Specified by:
openWindow
in classPTChooserEditor
- Parameters:
widget
- parent widgetitem
- itemproperty
- edited property- See Also:
PTChooserEditor.openWindow(org.eclipse.nebula.widgets.opal.propertytable.PTWidget, org.eclipse.swt.widgets.Item, org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
getTextFor
- Specified by:
getTextFor
in classPTChooserEditor
- Parameters:
property
- property- Returns:
- the string representation of the value stored in the property
- See Also:
PTChooserEditor.getTextFor(org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-
getBackgroundColor
Description copied from class:PTChooserEditor
Get the background color of an item- Specified by:
getBackgroundColor
in classPTChooserEditor
- Parameters:
property
- property- Returns:
- a background color (for the PTColorEditor) or null (for other editors).
- See Also:
PTChooserEditor.getBackgroundColor(org.eclipse.nebula.widgets.opal.propertytable.PTProperty)
-