Creates a fully configured check button with the given text.

@param parent
the parent composite
@param text
the label of the returned check button
@return a fully configured check button
966222
protected Button createCheckButton(Composite parent, String text)
	{
		return SWTFactory.createCheckButton(parent, text, null, false, 1);
	}
556590
public void typeText(final EditText editText, final String text){
		if(editText != null){
			inst.runOnMainSync(new Runnable()
			{
				public void run()
				{
					editText.setInputType(InputType.TYPE_NULL);
				}
			});
			clicker.clickOnScreen(editText, false, 0);
			dialogUtils.hideSoftKeyboard(editText, true, true);

			boolean successfull = false;
			int retry = 0;

			while(!successfull && retry < 10) {

				try{
					inst.sendStringSync(text);
					successfull = true;
				}catch(SecurityException e){
					dialogUtils.hideSoftKeyboard(editText, true, true);
					retry++;
				}
			}
			if(!successfull) {
				Assert.fail("Text can not be typed!");
			}
		}
	}
693026
public static void setText(View parentView, int field, String text) {
        View view = parentView.findViewById(field);
        if (view instanceof TextView) {
            ((TextView) view).setText(text);
        } else {
            Log.e("Caffeine", "ViewUtils.setText() given a field that is not a TextView");
        }
    }
408572
@Override @DefinedBy(Api.COMPILER_TREE)
    public Void visitText(TextTree tree, Void ignore) {
        if (hasNonWhitespace(tree)) {
            checkAllowsText(tree);
            markEnclosingTag(Flag.HAS_TEXT);
        }
        return null;
    }
764237
protected void createLaunchOptionEditor(Composite parent, String text) {
		final Group group = SWTFactory.createGroup(parent, text, 1, 1, GridData.FILL_HORIZONTAL);
		this.enableAssertionsInRunModeButton = createCheckButton(group, Messages.SARLMainLaunchConfigurationTab_2);
		this.enableAssertionsInRunModeButton.addSelectionListener(this.defaultListener);
		this.enableAssertionsInDebugModeButton = createCheckButton(group, Messages.SARLMainLaunchConfigurationTab_1);
		this.enableAssertionsInDebugModeButton.addSelectionListener(this.defaultListener);
		this.runInEclipseButton = createCheckButton(group, Messages.SARLMainLaunchConfigurationTab_0);
		this.runInEclipseButton.addSelectionListener(this.defaultListener);
	}
121210
private Button createConfCheckButton(SelectionListener listener,
      Composite parent, ConfProp prop, String text) {

    Button button = new Button(parent, SWT.CHECK);
    button.setText(text);
    button.setData("hProp", prop);
    button.setSelection(location.getConfProp(prop).equalsIgnoreCase("yes"));
    button.addSelectionListener(listener);

    return button;
  }
1064245
public Element text(String text) {
        Validate.notNull(text);

        empty();
        TextNode textNode = new TextNode(text);
        appendChild(textNode);

        return this;
    }
1215428
protected void createSREArgsBlock(Composite parent, Font font) {
		// Create the block for the SRE
		final Group group = new Group(parent, SWT.NONE);
		group.setFont(font);
		final GridLayout layout = new GridLayout();
		group.setLayout(layout);
		group.setLayoutData(new GridData(GridData.FILL_BOTH));
		// Move the SRE argument block before the JVM argument block
		group.moveAbove(this.fVMArgumentsBlock.getControl());

		group.setText(Messages.SARLArgumentsTab_1);

		createSREArgsText(group, font);
		createSREArgsVariableButton(group);
	}
1030884
public B condition(String conditionText) {
    Condition condition = createInstance(Condition.class);
    condition.setTextContent(conditionText);
    element.setCondition(condition);
    return myself;
  }
515454
@Override
	public void setText(String text)
	{
		if (password == null) //called from parent ctor
			return;
		if (filterFunction != null)
			text = filterFunction.apply(text);

		password.setLength(0);
		password.append(text);
		updateText();
		selectingText = false;
		if (focused)
			cursor.jumpToEnd();

	}
427211
public static Button createPushButton(Composite parent, String label,
			Image image)
	{
		Button button = new Button(parent, SWT.PUSH);
		button.setFont(parent.getFont());
		if (image != null)
		{
			button.setImage(image);
		}
		if (label != null)
		{
			button.setText(label);
		}
		GridData gd = new GridData();
		button.setLayoutData(gd);

		return button;
	}
451251
public EditText getEditText(String text)
	{
		if(config.commandLogging){
		Log.d(config.commandLoggingTag, "getEditText(\""+text+"\")");
	}
	
		return getter.getView(EditText.class, text, false);
	}
337146
private WButton makeImageButton(final String text, final Boolean asLink) {
		return makeImageButtonWithPosition(text, null, asLink);
	}
475920
public Element prependText(String text) {
        Validate.notNull(text);
        TextNode node = new TextNode(text);
        prependChild(node);
        return this;
    }
13738
public final void setText(@Nullable final String text) {
        boolean hasDisabledDependents = shouldDisableDependents();
        this.text = text;
        persistString(text);
        boolean isDisablingDependents = shouldDisableDependents();

        if (isDisablingDependents != hasDisabledDependents) {
            notifyDependencyChange(isDisablingDependents);
        }

        notifyChanged();
    }
216603
public void setText(final String TEXT) {
        if (null == text) {
            _text = TEXT;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            text.set(TEXT);
        }
    }
46330
public JQMButton setBackButton(String text) {
        JQMButton button = new JQMButton(text);
        button.withBuiltInIcon(DataIcon.LEFT);
        setBackButton(button);
        return button;
    }