本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}