Java Code Examples for org.eclipse.swt.widgets.Text.setVisible()

The following are Jave code examples for showing how to use setVisible() of the org.eclipse.swt.widgets.Text class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Hydrograph   File: FilterHelper.java   View Source Code Vote up 6 votes
private void enableAndDisableValue2TextBox(String condition, Text text) {
	if(StringUtils.equalsIgnoreCase(condition,FilterConstants.BETWEEN)
			|| StringUtils.equalsIgnoreCase(condition,FilterConstants.BETWEEN_FIELD)){
		text.setVisible(true);
	} else {
		text.setVisible(false);
	}
}
 
Example 2
Project: Hydrograph   File: FilterConditionsDialog.java   View Source Code Vote up 5 votes
private void enableAndDisableValue2TextBox(final List<Condition> conditionsList, int index, Text text) {
			if(StringUtils.equalsIgnoreCase(conditionsList.get(index).getConditionalOperator(),FilterConstants.BETWEEN)
					|| StringUtils.equalsIgnoreCase(conditionsList.get(index).getConditionalOperator(),FilterConstants.BETWEEN_FIELD)){
		text.setVisible(true);
	} else {
		text.setVisible(false);
	}
}