|
Re: Info-Field inside a form [message #1068024 is a reply to message #1067979] |
Thu, 11 July 2013 13:57  |
Eclipse User |
|
|
|
I use an HtmlField on top of my form. It works nice with Swing (I am not sure of the behaviour with SWT).
Notice that you can also use basic HTML in the LabelField with Swing (this produces multiline text). This do not work with SWT.
@Order(10.0)
public class InfoField extends AbstractLabelField {
@Override
protected int getConfiguredGridW() {
return 2;
}
@Override
protected int getConfiguredGridH() {
return 2;
}
@Override
protected boolean getConfiguredLabelVisible() {
return false;
}
@Override
protected void execInitField() throws ProcessingException {
setValue("<html>Please <b>select</b> one of the questions.<br>And use the context menu.</html>");
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.05483 seconds