mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
public class FieldTest {
|
||||
private Object comboBox;
|
||||
|
||||
private class NoSelectionComboItem {
|
||||
public final Object comboBox;
|
||||
|
||||
private NoSelectionComboItem() {
|
||||
comboBox = FieldTest.this.comboBox;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
Object comboItem = comboBox.getSelectedItem();
|
||||
return comboItem == this ? "<Please Select>" : "<Back to overview>";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user