Package straightway.odo.api.v0.ui

Types

Button
Link copied to clipboard
interface Button : TextHolder
A user interface push button.
CloseAction
Link copied to clipboard
enum CloseAction : Enum<CloseAction>
Enumeration of ways to close a window.
ContactChooser
Link copied to clipboard
interface ContactChooser
UI element which lets the user choose one of the contacts, which are accessible to the app.
Dialog
Link copied to clipboard
interface Dialog<T> : UiElementContainer
A dialog window which is displayed to the user.
FixedString
Link copied to clipboard
data class FixedString(currentValue: String) : UiString
A fixed UI string with the given value.
Font
Link copied to clipboard
interface Font
A font definition.
Grid
Link copied to clipboard
interface Grid : UiElementContainer, UiElement
A grid UI element.
HorizontalAlignment
Link copied to clipboard
enum HorizontalAlignment : Enum<HorizontalAlignment>
Horizontal alignments.
ListUi
Link copied to clipboard
interface ListUi<T> : UiElement
A list UI displaying a number of items.
SizePolicy
Link copied to clipboard
enum SizePolicy : Enum<SizePolicy>
A size policy for UI layout.
Spacer
Link copied to clipboard
interface Spacer : UiElement
Use spare space in the UI displaying nothing.
TextHolder
Link copied to clipboard
interface TextHolder : UiElement
Base interface for all UI elements having a text as their dominating element (e.g.
TextInput
Link copied to clipboard
interface TextInput : UiElement
A UI element accepting a text input from the user.
TextLabel
Link copied to clipboard
interface TextLabel : UiElement
A text label within a UI.
Ui
Link copied to clipboard
interface Ui
User interface API.
UiComponentBase
Link copied to clipboard
abstract class UiComponentBase(api: APIv0)
Base class for UI components, with convenience access to the ODO API and the main view.
UiElement
Link copied to clipboard
interface UiElement
Base interface for all UI elements.
UiElementContainer
Link copied to clipboard
interface UiElementContainer
Base interface for items containing UI elements.
UiString
Link copied to clipboard
interface UiString
A string within a user interface.

Functions

horizontalSpace
Link copied to clipboard
fun UiElementContainer.Initializer.horizontalSpace(): Spacer
Add a new spacer which dominates the width of the parent ui element.
orientationHorizontal
Link copied to clipboard
fun Grid.Initializer.orientationHorizontal(isLeftToRight: Boolean = true)
Set the item step of a grid so that new items are always positioned in the next column (respecting isLeftToRight argument).
orientationVertical
Link copied to clipboard
fun Grid.Initializer.orientationVertical(isTopToBottom: Boolean = true)
Set the item step of a grid so that new items are always positioned in the next row (respecting isTopToBottom argument).
verticalSpace
Link copied to clipboard
fun UiElementContainer.Initializer.verticalSpace(): Spacer
Add a new spacer which dominates the height of the parent ui element.

Properties

fixedText
Link copied to clipboard
var TextHolder.Initializer.fixedText: String
Set a fixed UI text for a text holder.