当前位置: 首页>>代码示例>>Java>>正文


Java AutoCompleteComboBoxAddition.setCaseSensitive方法代码示例

本文整理汇总了Java中com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition.setCaseSensitive方法的典型用法代码示例。如果您正苦于以下问题:Java AutoCompleteComboBoxAddition.setCaseSensitive方法的具体用法?Java AutoCompleteComboBoxAddition.setCaseSensitive怎么用?Java AutoCompleteComboBoxAddition.setCaseSensitive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition的用法示例。


在下文中一共展示了AutoCompleteComboBoxAddition.setCaseSensitive方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DefaultPropertyValueCellEditor

import com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition; //导入方法依赖的package包/类
public DefaultPropertyValueCellEditor(final ParameterTypeStringCategory type) {
	super(new JComboBox(type.getValues()));

	if (type.isEditable()) {
		AutoCompleteComboBoxAddition autoCompleteCBA = new AutoCompleteComboBoxAddition((JComboBox) editorComponent);
		autoCompleteCBA.setCaseSensitive(false);
	}

	final JTextComponent textField = (JTextComponent) ((JComboBox) editorComponent).getEditor().getEditorComponent();

	useEditorAsRenderer = true;
	((JComboBox) editorComponent).removeItemListener(this.delegate);
	((JComboBox) editorComponent).setEditable(type.isEditable());
	this.delegate = new EditorDelegate() {

		private static final long serialVersionUID = -5592150438626222295L;

		@Override
		public void setValue(Object x) {
			if (x == null) {
				super.setValue(null);
				((JComboBox) editorComponent).setSelectedItem(null);
			} else {
				String value = x.toString();
				super.setValue(value);
				((JComboBox) editorComponent).setSelectedItem(value);
				if (value != null) {
					textField.setText(value.toString());
				} else {
					textField.setText("");
				}
			}
		}

		@Override
		public Object getCellEditorValue() {
			if (type.isEditable()) {
				String selected = textField.getText();
				if (selected != null && selected.trim().length() == 0) {
					selected = null;
				}
				return selected;
			} else {
				return ((JComboBox) editorComponent).getSelectedItem();
			}
		}
	};
	editorComponent.setToolTipText(type.getDescription());
	((JComboBox) editorComponent).addItemListener(delegate);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:51,代码来源:DefaultPropertyValueCellEditor.java

示例2: DefaultPropertyValueCellEditor

import com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition; //导入方法依赖的package包/类
public DefaultPropertyValueCellEditor(final ParameterTypeStringCategory type) {
	super(new JComboBox<>(type.getValues()));

	if (type.isEditable()) {
		AutoCompleteComboBoxAddition autoCompleteCBA = new AutoCompleteComboBoxAddition((JComboBox<?>) editorComponent);
		autoCompleteCBA.setCaseSensitive(false);
	}

	final JTextComponent textField = (JTextComponent) ((JComboBox<?>) editorComponent).getEditor().getEditorComponent();

	useEditorAsRenderer = true;
	((JComboBox<?>) editorComponent).removeItemListener(this.delegate);
	((JComboBox<?>) editorComponent).setEditable(type.isEditable());
	this.delegate = new EditorDelegate() {

		private static final long serialVersionUID = -5592150438626222295L;

		@Override
		public void setValue(Object x) {
			if (x == null) {
				super.setValue(null);
				((JComboBox<?>) editorComponent).setSelectedItem(null);
			} else {
				String value = x.toString();
				super.setValue(value);
				((JComboBox<?>) editorComponent).setSelectedItem(value);
				if (value != null) {
					textField.setText(value.toString());
				} else {
					textField.setText("");
				}
			}
		}

		@Override
		public Object getCellEditorValue() {
			if (type.isEditable()) {
				String selected = textField.getText();
				if (selected != null && selected.trim().length() == 0) {
					selected = null;
				}
				return selected;
			} else {
				return ((JComboBox<?>) editorComponent).getSelectedItem();
			}
		}
	};
	editorComponent.setToolTipText(type.getDescription());
	((JComboBox<?>) editorComponent).addItemListener(delegate);
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:51,代码来源:DefaultPropertyValueCellEditor.java

示例3: AttributeComboBox

import com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition; //导入方法依赖的package包/类
public AttributeComboBox(ParameterTypeAttribute type) {
	super(new AttributeComboBoxModel(type));
	model = (AttributeComboBoxModel) getModel();
	AutoCompleteComboBoxAddition autoCompleteCBA = new AutoCompleteComboBoxAddition(this);
	autoCompleteCBA.setCaseSensitive(false);
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:7,代码来源:AttributeComboBox.java

示例4: DefaultPropertyValueCellEditor

import com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition; //导入方法依赖的package包/类
public DefaultPropertyValueCellEditor(final ParameterTypeStringCategory type) {
	super(new JComboBox(type.getValues()));

	if (type.isEditable()) {
		AutoCompleteComboBoxAddition autoCompleteCBA = new AutoCompleteComboBoxAddition((JComboBox) editorComponent);
		autoCompleteCBA.setCaseSensitive(false);
	}

	final JTextComponent textField = (JTextComponent) ((JComboBox) editorComponent).getEditor().getEditorComponent();

	useEditorAsRenderer = true;
	((JComboBox) editorComponent).removeItemListener(this.delegate);
	((JComboBox) editorComponent).setEditable(type.isEditable());
	this.delegate = new EditorDelegate() {

		private static final long serialVersionUID = -5592150438626222295L;

		@Override
		public void setValue(Object x) {
			if (x == null) {
				super.setValue(null);
				((JComboBox) editorComponent).setSelectedItem(null);
			} else {
				String value = x.toString();
				super.setValue(value);
				((JComboBox) editorComponent).setSelectedItem(value);
				if (value != null) {
					textField.setText(value.toString());
				} else {
					textField.setText("");
				}
			}
		}

		@Override
		public Object getCellEditorValue() {
			if (type.isEditable()) {
				String selected = textField.getText();
				if ((selected != null) && (selected.trim().length() == 0)) {
					selected = null;
				}
				return selected;
			} else {
				return ((JComboBox) editorComponent).getSelectedItem();
			}
		}
	};
	editorComponent.setToolTipText(type.getDescription());
	((JComboBox) editorComponent).addItemListener(delegate);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:51,代码来源:DefaultPropertyValueCellEditor.java

示例5: AttributeComboBox

import com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition; //导入方法依赖的package包/类
public AttributeComboBox(ParameterTypeAttribute type) {
	super(new AttributeComboBoxModel(type));
	model = (AttributeComboBoxModel) getModel();
	AutoCompleteComboBoxAddition autoCompleteCBA = new AutoCompleteComboBoxAddition(this);
	autoCompleteCBA.setCaseSensitive(true);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:AttributeComboBox.java


注:本文中的com.rapidminer.gui.tools.autocomplete.AutoCompleteComboBoxAddition.setCaseSensitive方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。