PanelTypeSet

interface PanelTypeSet : Set<KClass<out AnyPanel>>

A set containing types of Panels. This is a helper class used to communicate to Frontends and system UIs which Panel types are available or supported.

Inherited properties

Link copied to clipboard
abstract override val size: Int

Functions

Link copied to clipboard
open fun isPanelTypeIncluded(panelType: KClass<out AnyPanel>): Boolean

Returns whether panelType in included in this set, either by an exact match or because one of the panelType's super classes is included in the set. E.g., if TaskPanel is present in the set, this method will also return true for a CustomTaskPanel that extends TaskPanel.

Link copied to clipboard
abstract operator fun minus(element: KClass<out AnyPanel>): PanelTypeSet

Returns a PanelTypeSet containing all elements of the original set except the given element.

Link copied to clipboard
abstract operator fun plus(other: PanelTypeSet): PanelTypeSet

Returns a PanelTypeSet containing all elements of the original PanelTypeSet with all elements of the other added, if they aren't already in this set.

abstract operator fun plus(element: KClass<out AnyPanel>): PanelTypeSet

Returns a PanelTypeSet containing all elements of the original PanelTypeSet with the given element added if it isn't already in this set.

Inherited functions

Link copied to clipboard
abstract operator override fun contains(element: KClass<out AnyPanel>): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<KClass<out AnyPanel>>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in KClass<out AnyPanel>>)
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<KClass<out AnyPanel>>
Link copied to clipboard
Link copied to clipboard
open override fun spliterator(): Spliterator<KClass<out AnyPanel>>
Link copied to clipboard
open fun stream(): Stream<KClass<out AnyPanel>>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>

Extensions

Link copied to clipboard

Returns whether a panel collection contains any panels that have not been dismissed yet.

Link copied to clipboard

Dismisses all panels in the collection.

Link copied to clipboard

Returns a list of DismissablePanels that is filtered to only contain Panels of type P.

Link copied to clipboard

Returns a list of Panels that is filtered to only contain Panels of type P.

Link copied to clipboard

Returns a list of DismissablePanels of type P that are not being dismissed.

Link copied to clipboard

Converts this to a PanelList with the same contents.

Converts this to a DismissablePanelList with the same contents.