abstract class SchemesPanel<T : Scheme<T>> : SimpleSchemesPanel<T>, SchemesModel<T>
A panel to manage schemes with, providing a dropdown box to select schemes from and buttons to remove, rename, etc. schemes.
T
- the type of scheme to manage
interface Listener<T : Scheme<T>>
A listener that listens to events that occur to this panel. |
|
inner class SchemeActions<T : Scheme<T>> : AbstractSchemeActions<T>
The actions that can be performed with this panel. |
SchemesPanel(settings: Settings<*, T>)
A panel to manage schemes with, providing a dropdown box to select schemes from and buttons to remove, rename, etc. schemes. |
val actions: SchemesPanel.SchemeActions<T>
Actions that can be performed with this panel. |
|
val settings: Settings<*, T>
the settings model that backs this panel; changes made through this panel are reflected in the given settings instance |
|
abstract val type: Class<T>
The type of scheme being managed. |
fun addListener(listener: SchemesPanel.Listener<T>): Boolean
Registers a listener that will be informed whenever the scheme selection changed. |
|
open fun canDeleteScheme(scheme: T): Boolean
Returns true if the given scheme can be deleted. |
|
open fun canDuplicateScheme(scheme: T): Boolean
Returns true because all schemes can be duplicated. |
|
open fun canRenameScheme(scheme: T): Boolean
Returns true if the given scheme can be renamed. |
|
open fun canResetScheme(scheme: T): Boolean
Returns true if the given scheme can be reset. |
|
open fun containsScheme(name: String, projectScheme: Boolean): Boolean
Returns true if a scheme with the given name is present in this panel. |
|
abstract fun createDefaultInstances(): List<T>
Returns a list of the default instances. |
|
fun createSchemeActions(): SchemesPanel.SchemeActions<T>
Returns an object with a number of actions that can be performed on this panel. |
|
open fun differsFromDefault(scheme: T): Boolean
Returns true if the given scheme is the default scheme. |
|
open fun getModel(): SchemesPanel<T>
Returns this panel, because this panel also functions as the model. |
|
fun getScheme(name: String): T
Returns the scheme with the given name. |
|
open fun highlightNonDefaultSchemes(): Boolean
Returns true so that non-default schemes are highlighted. |
|
open fun isProjectScheme(scheme: T): Boolean
Returns false because project-specific schemes are not supported. |
|
open fun removeScheme(scheme: T): Unit
Removes the given scheme from the settings. |
|
open fun supportsProjectSchemes(): Boolean
Returns false because project-specific schemes are not supported. |
|
fun updateComboBoxList(): Unit
Forcefully updates the combo box so that its entries and the current selection reflect the |
|
open fun useBoldForNonRemovableSchemes(): Boolean
Returns true so that non-removable schemes are highlighted. |