public abstract class PTWindowEditor extends PTChooserEditor
| Constructor and Description |
|---|
PTWindowEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addVerifyListeners(org.eclipse.swt.widgets.Text text)
Add a verify listener to a given text that accepts only integers
|
protected abstract void |
createContent(org.eclipse.swt.widgets.Shell shell,
PTProperty property)
Create the content (text widgets)
|
protected abstract void |
fillProperty(org.eclipse.swt.widgets.Item item,
PTProperty property)
Fill property when the ok button is pressed
|
protected org.eclipse.swt.graphics.Color |
getBackgroundColor(PTProperty property)
Get the background color of an item
|
protected int |
getIntValue(org.eclipse.swt.widgets.Text text) |
protected void |
openWindow(PTWidget widget,
org.eclipse.swt.widgets.Item item,
PTProperty property)
Open the window to edit the property
|
getTextFor, renderprotected void openWindow(PTWidget widget, org.eclipse.swt.widgets.Item item, PTProperty property)
PTChooserEditoropenWindow in class PTChooserEditorwidget - parent widgetitem - itemproperty - edited propertyPTChooserEditor.openWindow(org.eclipse.nebula.widgets.opal.propertytable.PTWidget,
org.eclipse.swt.widgets.Item, org.eclipse.nebula.widgets.opal.propertytable.PTProperty)protected abstract void fillProperty(org.eclipse.swt.widgets.Item item,
PTProperty property)
item - item in which the string representation of property's value is
displayproperty - associated propertyprotected abstract void createContent(org.eclipse.swt.widgets.Shell shell,
PTProperty property)
shell - associated shellproperty - associated propertyprotected org.eclipse.swt.graphics.Color getBackgroundColor(PTProperty property)
PTChooserEditorgetBackgroundColor in class PTChooserEditorproperty - propertyPTChooserEditor.getBackgroundColor(org.eclipse.nebula.widgets.opal.propertytable.PTProperty)protected int getIntValue(org.eclipse.swt.widgets.Text text)
text - text widgetprotected void addVerifyListeners(org.eclipse.swt.widgets.Text text)
text - text widget