public class EditableSchemesCombo<T extends Scheme>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMBO_WIDTH |
static java.lang.String |
EDITING_HINT |
static java.lang.String |
EMPTY_NAME_MESSAGE |
static java.lang.String |
NAME_ALREADY_EXISTS_MESSAGE |
Constructor and Description |
---|
EditableSchemesCombo(AbstractSchemesPanel<T,?> schemesPanel) |
Modifier and Type | Method and Description |
---|---|
void |
cancelEdit() |
javax.swing.JComponent |
getComponent() |
T |
getSelectedScheme() |
void |
resetSchemes(java.util.Collection<? extends T> schemes) |
void |
selectScheme(T scheme) |
void |
startEdit(java.lang.String initialName,
boolean isProjectScheme,
java.util.function.Consumer<? super java.lang.String> nameConsumer) |
void |
updateSelected() |
public static final java.lang.String EMPTY_NAME_MESSAGE
public static final java.lang.String NAME_ALREADY_EXISTS_MESSAGE
public static final java.lang.String EDITING_HINT
public static final int COMBO_WIDTH
public EditableSchemesCombo(AbstractSchemesPanel<T,?> schemesPanel)
public void updateSelected()
public void cancelEdit()
public void startEdit(java.lang.String initialName, boolean isProjectScheme, java.util.function.Consumer<? super java.lang.String> nameConsumer)
public void resetSchemes(java.util.Collection<? extends T> schemes)
public T getSelectedScheme()
public void selectScheme(T scheme)
public javax.swing.JComponent getComponent()