本文整理汇总了Java中org.eclipse.ui.forms.widgets.TableWrapData.MIDDLE属性的典型用法代码示例。如果您正苦于以下问题:Java TableWrapData.MIDDLE属性的具体用法?Java TableWrapData.MIDDLE怎么用?Java TableWrapData.MIDDLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.ui.forms.widgets.TableWrapData
的用法示例。
在下文中一共展示了TableWrapData.MIDDLE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FormComboBoxField
public FormComboBoxField(FormToolkit toolkit, Composite sectionClient, String labelText, String[] options) {
label = toolkit.createLabel(sectionClient, labelText, SWT.WRAP);
label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
final TableWrapData layoutData = new TableWrapData();
layoutData.valign = TableWrapData.MIDDLE;
label.setLayoutData(layoutData);
combobox = new Combo(sectionClient, SWT.READ_ONLY);
combobox.setItems(options);
combobox.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
}
示例2: FormCheckBoxField
public FormCheckBoxField(FormToolkit toolkit, Composite sectionClient, String labelText, boolean defaultValue) {
label = toolkit.createLabel(sectionClient, labelText, SWT.WRAP);
label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
final TableWrapData layoutData = new TableWrapData();
layoutData.valign = TableWrapData.MIDDLE;
label.setLayoutData(layoutData);
checkbox = toolkit.createButton(sectionClient, "", SWT.CHECK);
checkbox.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
checkbox.setSelection(defaultValue);
}
示例3: FormTextField
public FormTextField(FormToolkit toolkit, Composite sectionClient, String labelText, String defaultValue, int textStyle) {
label = toolkit.createFormText(sectionClient, true);
label.setText("<form><p>" + labelText + "</p></form>", true, false);
label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
final TableWrapData layoutData = new TableWrapData();
layoutData.valign = TableWrapData.MIDDLE;
label.setLayoutData(layoutData);
text = toolkit.createText(sectionClient, defaultValue, textStyle|SWT.WRAP);
text.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
}
示例4: addConstraint
private void addConstraint(PeriodicTemporalConstraint bound, boolean selected) {
Button button = buildDeleteButton(bound, constraintsComposite);
button.setLayoutData(new TableWrapData(TableWrapData.CENTER, TableWrapData.MIDDLE));
FormText text = buildConstraintText(bound, constraintsComposite, selected);
TableWrapData data = new TableWrapData(TableWrapData.FILL, TableWrapData.MIDDLE);
text.setLayoutData(data);
toolkit.createLabel(constraintsComposite, "");
}
示例5: createControl
public void createControl(Composite parent, FormToolkit toolkit, int colspan) {
messageLabel = toolkit.createLabel(parent,"");
TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
td.valign = TableWrapData.MIDDLE;
td.colspan = colspan;
messageLabel.setLayoutData(td);
red = toolkit.getColors().createColor("MPE_ERROR_FOREGROUND", 250, 20, 20 );
messageLabel.setForeground(red);
}