GUI model#
- class besser.BUML.metamodel.gui.graphical_ui.Application(name: str, package: str, versionCode: str, versionName: str, modules: set[Module], description: str, screenCompatibility: bool = False)[source]#
Bases:
Model
- It is a subclass of the NamedElement class and encapsulates the properties and behavior of an application, including its name,
package, version code, version name, modules, description, and screen compatibility.
- Parameters:
name (str) – The name of the application.
package (str) – The package of the application.
versionCode (str) – The version code of the application.
versionName (str) – The version name of the application.
modules (set[Module]) – The set of modules contained in the application.
description (str) – The description of the application.
screenCompatibility (bool) – Indicates whether the application has screen compatibility.
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.Button(name: str, description: str, Label: str)[source]#
Bases:
ViewComponent
Represents a button component and encapsulates specific properties of a button, such as its name and label.
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.Collection(name: str, type: CollectionSourceType)[source]#
Bases:
DataSource
Represents a data source that is a collection.
- Parameters:
name (str) – The name of the collection data source.
type (CollectionSourceType) – The type of the collection data source.
- type#
The type of the collection data source.
- Type:
- property type: CollectionSourceType#
Get the type of the collection data source.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.CollectionSourceType(name: str, type: str)[source]#
Bases:
object
Represents the type of a collection source.
- Parameters:
- type#
The type of the collection source, such as ‘List’, ‘Table’, ‘Tree’, ‘Grid’, ‘Array’, or ‘Stack’.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.DataSource(name: str)[source]#
Bases:
object
Represents a data source.
- Parameters:
name (str) – The name of the data source.
- class besser.BUML.metamodel.gui.graphical_ui.File(name: str, type: FileSourceType)[source]#
Bases:
DataSource
Represents a data source that is a file.
- Parameters:
name (str) – The name of the file data source.
type (FileSourceType) – The type of the file data source.
- type#
The type of the file data source.
- Type:
- property type: FileSourceType#
Get the type of the file data source.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.FileSourceType(name: str, type: str)[source]#
Bases:
object
Represents the type of a file source.
- Parameters:
- type#
The type of the file source, such as ‘FileSystem’, ‘LocalStorage’, or ‘DatabaseFileSystem’.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.Form(name: str, description: str, inputFields: set[InputField])[source]#
Bases:
ViewComponent
Represents a form component and encapsulates the specific properties of a form, such as its name.
- Parameters:
name (str) – The name of the form.
description (str) – The description of the form.
inputFields (set[InputField]) – The set of input fields contained in the form.
- inputFields#
The set of input fields contained in the form.
- Type:
- _abc_impl = <_abc._abc_data object>#
- property inputFields: set[InputField]#
Get the set of input Fields contained in the form.
- class besser.BUML.metamodel.gui.graphical_ui.Image(name: str, description: str)[source]#
Bases:
ViewComponent
Represents an image component and encapsulates the specific properties of a image, such as its name.
- Parameters:
name (str) – The name of the image.
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.InputField(name: str, description: str, fieldType: str, validationRules: str)[source]#
Bases:
ViewComponent
Represents an input field component and encapsulates specific properties of an input field, such as its type and validation rules.
- Args:
name (str): The name of the input field. description (str): The description of the input field. fieldType (str): The type of the input field. validationRules (str): The validation rules for the input field.
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.List(name: str, description: str, list_sources: set[DataSource])[source]#
Bases:
ViewComponent
Represents a list component that encapsulates properties unique to lists, such as list sources.
- Parameters:
name (str) – The name of the list.
list_sources (set[DataSource]) – The set of data sources associated with the list.
- list_sources#
The set of data sources associated with the list.
- Type:
- _abc_impl = <_abc._abc_data object>#
- property list_sources: set[DataSource]#
Get the set of data sources associated with the list.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.Menu(name: str, description: str, menuItems: set[MenuItem])[source]#
Bases:
ViewComponent
Represents a menu component and encapsulates the specific properties of a menu, such as its name.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.MenuItem(label: str)[source]#
Bases:
object
Represents an item of a menu.
- Parameters:
label (str) – The label of the menu item.
- class besser.BUML.metamodel.gui.graphical_ui.ModelElement(name: str, dataSourceClass: Class, fields: set[Property])[source]#
Bases:
DataSource
Represents a data source associated with a model element.
- Parameters:
- fields#
set[Property]: The fields representing the attributes of the model element.
- class besser.BUML.metamodel.gui.graphical_ui.Module(name: str, screens: set[Screen], visibility: str = 'public')[source]#
Bases:
NamedElement
Represents a module.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.Screen(name: str, description: str, components: set[ViewComponent], x_dpi: str, y_dpi: str, size: str)[source]#
Bases:
ViewContainer
Represents a screen.
- Parameters:
- components#
The set of view components on the screen.
- Type:
- _abc_impl = <_abc._abc_data object>#
- property components: set[ViewComponent]#
Get the set of view components on the screen.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.ViewComponent(name: str, description: str)[source]#
Bases:
ViewElement
Represents a view component.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.ViewContainer(name: str, description: str)[source]#
Bases:
ViewElement
Represents a view container.
- Parameters:
- _abc_impl = <_abc._abc_data object>#