Package org.pushingpixels.aurora.component.model

Types

Link copied to clipboard
enum ActionFireTrigger : Enum<ActionFireTrigger>
Link copied to clipboard
abstract class BreadcrumbBarContentProvider<T>

Content provider for a breadcrumb bar.

Link copied to clipboard
data class BreadcrumbBarPresentationModel(presentationState: CommandButtonPresentationState, backgroundAppearanceStrategy: BackgroundAppearanceStrategy, iconActiveFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, iconDisabledFilterStrategy: IconFilterStrategy, maxVisibleChoiceCommands: Int) : PresentationModel
Link copied to clipboard
data class ComboBoxContentModel<E>(items: List<E>, selectedItem: E, richTooltip: RichTooltip?, enabled: Boolean, onTriggerItemSelectedChange: (E) -> Unit) : ContentModel
Link copied to clipboard
data class ComboBoxPresentationModel<E>(backgroundAppearanceStrategy: BackgroundAppearanceStrategy, displayConverter: (E) -> String, displayIconConverter: (E) -> Painter?, contentPadding: PaddingValues, horizontalAlignment: HorizontalAlignment, horizontalGapScaleFactor: Float, popupPlacementStrategy: PopupPlacementStrategy, popupMaxVisibleItems: Int, richTooltipPresentationModel: RichTooltipPresentationModel) : PresentationModel
Link copied to clipboard
object ComboBoxSizingConstants
Link copied to clipboard
data class Command(text: String, extraText: String?, icon: Painter?, action: () -> Unit?, actionPreview: CommandActionPreview?, isActionEnabled: Boolean, isActionToggle: Boolean, isActionToggleSelected: Boolean, actionRichTooltip: RichTooltip?, onTriggerActionToggleSelectedChange: (Boolean) -> Unit?, secondaryContentModel: CommandMenuContentModel?, isSecondaryEnabled: Boolean, secondaryRichTooltip: RichTooltip?) : ContentModel
Link copied to clipboard
interface CommandActionPreview
Link copied to clipboard
object CommandButtonInteractionConstants
Link copied to clipboard
enum CommandButtonKind : Enum<CommandButtonKind>

Enumerates the available command button kinds.

Link copied to clipboard
data class CommandButtonPresentationModel(presentationState: CommandButtonPresentationState, backgroundAppearanceStrategy: BackgroundAppearanceStrategy, horizontalAlignment: HorizontalAlignment, iconDimension: Dp?, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, iconActiveFilterStrategy: IconFilterStrategy, forceAllocateSpaceForIcon: Boolean, textStyle: TextStyle?, textOverflow: TextOverflow, popupPlacementStrategy: PopupPlacementStrategy, toDismissPopupsOnActivation: Boolean, autoRepeatAction: Boolean, autoRepeatInitialInterval: Long, autoRepeatSubsequentInterval: Long, actionFireTrigger: ActionFireTrigger, popupMenuPresentationModel: CommandPopupMenuPresentationModel, textClick: TextClick, actionRichTooltipPresentationModel: RichTooltipPresentationModel, popupRichTooltipPresentationModel: RichTooltipPresentationModel, contentPadding: PaddingValues, horizontalGapScaleFactor: Float, verticalGapScaleFactor: Float, minWidth: Dp, isMenu: Boolean, sides: Sides) : PresentationModel
Link copied to clipboard
abstract class CommandButtonPresentationState(displayName: String)

Presentation state for command buttons. This class provides a number of core companion presentation states. In addition, it also allows creating additional custom states by using the constructor and implementing the relevant abstract methods.

Link copied to clipboard
object CommandButtonSizingConstants
Link copied to clipboard
data class CommandGroup(title: String?, commands: List<Command>) : ContentModel
Link copied to clipboard
data class CommandMenuContentModel(groups: List<CommandGroup>, panelContentModel: CommandPanelContentModel?, highlightedCommand: Command?)
Link copied to clipboard
data class CommandPanelContentModel(commandGroups: List<CommandGroup>, commandActionPreview: CommandActionPreview?) : ContentModel
Link copied to clipboard
data class CommandPanelPresentationModel(layoutSpec: PanelLayoutSpec, contentPadding: PaddingValues, contentGap: Dp, showGroupLabels: Boolean, commandPresentationState: CommandButtonPresentationState, commandIconDimension: Dp, commandContentPadding: PaddingValues, commandTextStyle: TextStyle?, commandTextOverflow: TextOverflow, commandHorizontalAlignment: HorizontalAlignment, commandHorizontalGapScaleFactor: Float, commandVerticalGapScaleFactor: Float, backgroundAppearanceStrategy: BackgroundAppearanceStrategy, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, iconActiveFilterStrategy: IconFilterStrategy, popupPlacementStrategy: PopupPlacementStrategy, isMenu: Boolean) : PresentationModel
Link copied to clipboard
object CommandPanelSizingConstants
Link copied to clipboard
data class CommandPopupMenuPanelPresentationModel(layoutSpec: MenuPopupPanelLayoutSpec, contentPadding: PaddingValues, contentGap: Dp, showGroupLabels: Boolean, commandPresentationState: CommandButtonPresentationState, commandIconDimension: Dp, commandContentPadding: PaddingValues, commandTextStyle: TextStyle?, commandTextOverflow: TextOverflow, commandHorizontalAlignment: HorizontalAlignment, commandHorizontalGapScaleFactor: Float, commandVerticalGapScaleFactor: Float, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, iconActiveFilterStrategy: IconFilterStrategy) : PresentationModel
Link copied to clipboard
data class CommandPopupMenuPresentationModel(panelPresentationModel: CommandPopupMenuPanelPresentationModel?, menuPresentationState: CommandButtonPresentationState, menuIconActiveFilterStrategy: IconFilterStrategy, menuIconEnabledFilterStrategy: IconFilterStrategy, menuIconDisabledFilterStrategy: IconFilterStrategy, menuContentPadding: PaddingValues, maxVisibleMenuCommands: Int, popupPlacementStrategy: PopupPlacementStrategy, toDismissOnCommandActivation: Boolean)
Link copied to clipboard
data class CommandStripPresentationModel(orientation: StripOrientation, commandPresentationState: CommandButtonPresentationState, horizontalGapScaleFactor: Float, verticalGapScaleFactor: Float, backgroundAppearanceStrategy: BackgroundAppearanceStrategy, horizontalAlignment: HorizontalAlignment, iconDimension: Dp?, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, iconActiveFilterStrategy: IconFilterStrategy, popupPlacementStrategy: PopupPlacementStrategy, textClick: TextClick, isMenu: Boolean) : PresentationModel
Link copied to clipboard
object CommandStripSizingConstants
Link copied to clipboard
interface ContentModel
Link copied to clipboard
enum HorizontalAlignment : Enum<HorizontalAlignment>
Link copied to clipboard
data class IconContentModel(icon: Painter, enabled: Boolean) : ContentModel
Link copied to clipboard
data class IconPresentationModel(iconDimension: Dp, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, inheritStateFromParent: Boolean) : PresentationModel
Link copied to clipboard
object IconSizingConstants
Link copied to clipboard
data class LabelContentModel(text: String, enabled: Boolean, icon: Painter?) : ContentModel
Link copied to clipboard
data class LabelPresentationModel(contentPadding: PaddingValues, iconDimension: Dp, iconDisabledFilterStrategy: IconFilterStrategy, iconEnabledFilterStrategy: IconFilterStrategy, inheritStateFromParent: Boolean, textStyle: TextStyle?, textOverflow: TextOverflow, textSoftWrap: Boolean, textMaxLines: Int, horizontalAlignment: HorizontalAlignment, horizontalGapScaleFactor: Float) : PresentationModel
Link copied to clipboard
object LabelSizingConstants
Link copied to clipboard
data class MenuPopupPanelLayoutSpec(columnCount: Int, visibleRowCount: Int)
Link copied to clipboard
sealed class PanelColumnFillSpec
Link copied to clipboard
sealed class PanelLayoutSpec
Link copied to clipboard
sealed class PanelRowFillSpec
Link copied to clipboard
interface PresentationModel
Link copied to clipboard
data class ProgressCircularPresentationModel(size: Dp) : PresentationModel
Link copied to clipboard
object ProgressConstants
Link copied to clipboard
data class ProgressDeterminateContentModel(enabled: Boolean, progress: Float) : ContentModel
Link copied to clipboard
data class ProgressIndeterminateContentModel(enabled: Boolean) : ContentModel
Link copied to clipboard
data class ProgressLinearPresentationModel(primarySize: Dp, secondarySize: Dp) : PresentationModel
Link copied to clipboard
data class RichTooltip(title: String, mainIcon: Painter?, descriptionSections: List<String>?, footerIcon: Painter?, footerSections: List<String>?)

Rich tooltip. In its most basic form, the rich tooltip has a title and one (possible multiline) description text:

Link copied to clipboard
data class RichTooltipPresentationModel(mainIconSize: Dp, footerIconSize: Dp) : PresentationModel
Link copied to clipboard
object RichTooltipSizingConstants
Link copied to clipboard
data class SelectorContentModel(text: String, richTooltip: RichTooltip?, enabled: Boolean, selected: Boolean, onTriggerSelectedChange: (Boolean) -> Unit) : ContentModel
Link copied to clipboard
data class SelectorPresentationModel(contentPadding: PaddingValues, markSize: Dp, horizontalAlignment: HorizontalAlignment, horizontalGapScaleFactor: Float, richTooltipPresentationModel: RichTooltipPresentationModel) : PresentationModel
Link copied to clipboard
object SelectorSizingConstants
Link copied to clipboard
data class SeparatorContentModel(enabled: Boolean) : ContentModel
Link copied to clipboard
data class SeparatorPresentationModel(startGradientAmount: Dp, endGradientAmount: Dp) : PresentationModel
Link copied to clipboard
object SeparatorSizingConstants
Link copied to clipboard
data class SliderContentModel(value: Float, valueRange: ClosedFloatingPointRange<Float>, onTriggerValueChange: (Float) -> Unit, onValueChangeEnd: () -> Unit, enabled: Boolean) : ContentModel
Link copied to clipboard
data class SliderPresentationModel(tickSteps: Int, snapToTicks: Boolean, drawTicks: Boolean) : PresentationModel
Link copied to clipboard
object SliderSizingConstants
Link copied to clipboard
enum StripOrientation : Enum<StripOrientation>
Link copied to clipboard
enum TextClick : Enum<TextClick>
Link copied to clipboard
data class TextFieldPresentationModel(keyboardOptions: KeyboardOptions, keyboardActions: KeyboardActions, singleLine: Boolean, showBorder: Boolean, maxLines: Int, visualTransformation: VisualTransformation) : PresentationModel
Link copied to clipboard
object TextFieldSizingConstants
Link copied to clipboard
data class TextFieldStringContentModel(value: String, placeholder: String, enabled: Boolean, readOnly: Boolean, onValueChange: (String) -> Unit) : ContentModel
Link copied to clipboard
data class TextFieldValueContentModel(value: TextFieldValue, placeholder: String, enabled: Boolean, readOnly: Boolean, onValueChange: (TextFieldValue) -> Unit) : ContentModel

Functions

Link copied to clipboard
@Composable
fun <T> BreadcrumbBarContentModel(contentProvider: BreadcrumbBarContentProvider<T>, onItemSelected: (T) -> Unit): SnapshotStateList<Command>
Link copied to clipboard
suspend fun <T> BreadcrumbBarContentProvider<T>.getPathCommand(scope: CoroutineScope, commands: SnapshotStateList<Command>, item: T?, onItemSelected: (T) -> Unit, level: Int): Command

Properties