Removing borders from input fields
To remove borders from input fields rendered by ZIETrans widgets, you
can override the getControlStyleClass(Class)
method of
your template and return 0 when the specific class is the SWT Text
widget class (org.eclipse.swt.widgets.Text).
To override the
getControlClassStyle()
method, do the
following:
- Click in the Source editor pane.
- Click Select Source > Override/Implement Methods.
- Under RcpTemplate, select the getControlClassStyle checkbox.
- Click Ok.
Add the following code to the
getControlClassStyle()
method:
if (controlClass.equals(org.eclipse.swt.widgets.Text.class)) {
return 0;
} else {
return super.getControlClassStyle(controlClass);
}