mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 00:40:28 +07:00
16 lines
427 B
Java
16 lines
427 B
Java
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>";
|
|
}
|
|
}
|
|
} |