GUI model#
- class besser.BUML.metamodel.gui.graphical_ui.Button(name: str, description: str, label: str, buttonType: ButtonType, actionType: ButtonActionType, targetScreen: Screen = None, visibility: str = 'public')[source]#
Bases:
ViewComponent
- Represents a button component and encapsulates
specific properties of a button, such as its name and label.
- Parameters:
name (str) – The name of the button.
description (str) – The description of the button.
label (str) – The label of the button.
buttonType (ButtonType) – The type of the button.
actionType (ButtonActionType) – The action type of the button.
targetScreen (Screen, optional) – The target Screen associated with the button when the actionType is “Navigate”.
- buttonType#
The type of the button.
- Type:
- actionType#
The action type of the button.
- Type:
- targetScreen#
The target Screen associated with the button when the actionType is “Navigate”
- Type:
Screen, optional
- _abc_impl = <_abc._abc_data object>#
- property actionType: ButtonActionType#
Get the action type of the button.
- Type:
- property buttonType: ButtonType#
Get the type of the button.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.ButtonActionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Represents a button action type.
- About = 'About'#
- Add = 'Add'#
- Back = 'Back'#
- Cancel = 'Cancel'#
- Confirm = 'Confirm'#
- Delete = 'Delete'#
- Exit = 'Exit'#
- Filter = 'Filter'#
- Help = 'Help'#
- Login = 'Login'#
- Logout = 'Sign Out'#
- Next = 'Next'#
- OpenForm = 'Open Form'#
- Save = 'Save'#
- Search = 'Search'#
- Select = 'Select'#
- Send = 'Send'#
- Settings = 'Settings'#
- ShowList = 'Show List'#
- Sort = 'Sort'#
- SubmitForm = 'Submit Form'#
- View = 'View'#
- class besser.BUML.metamodel.gui.graphical_ui.ButtonType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Represents a button type.
- CustomizableButton = 'Customizable Button'#
- DropdownButton = 'Dropdown Button'#
- FloatingActionButton = 'FloatingActionButton'#
- IconButton = 'Icon Button'#
- OutlinedButton = 'Outlined Button'#
- RaisedButton = 'Raised Button'#
- TextButton = 'Text Button'#
- ToggleButtons = 'Toggle Buttons'#
- iOSStyleButton = 'iOS-style Button'#
- 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:
- _abc_impl = <_abc._abc_data object>#
- property type: CollectionSourceType#
Get the type of the collection data source.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.CollectionSourceType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Represents the type of a collection source.
- Array = 'Array'#
- Grid = 'Grid'#
- List = 'List'#
- Stack = 'Stack'#
- Table = 'Table'#
- Tree = 'Tree'#
- class besser.BUML.metamodel.gui.graphical_ui.DataList(name: str, description: str, list_sources: set[DataSource], visibility: str = 'public')[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.DataSource(name: str)[source]#
Bases:
NamedElement
Represents a data source.
- Parameters:
name (str) – The name of the data source.
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.DataSourceElement(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.
- _abc_impl = <_abc._abc_data object>#
- 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:
- _abc_impl = <_abc._abc_data object>#
- property type: FileSourceType#
Get the type of the file data source.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.FileSourceType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Represents the type of a file source.
- DatabaseFileSystem = 'DatabaseFileSystem'#
- FileSystem = 'FileSystem'#
- LocalStorage = 'LocalStorage'#
- class besser.BUML.metamodel.gui.graphical_ui.Form(name: str, description: str, inputFields: set[InputField], visibility: str = 'public')[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.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.GUIModel(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 the GUI part of an application, including its name, package, version code, version name, modules, description, and screen compatibility.
- Parameters:
name (str) – The name of the model.
package (str) – The package of the model.
versionCode (str) – The version code of the model.
versionName (str) – The version name of the model.
modules (set[Module]) – The set of modules contained in the model.
description (str) – The description of the model.
screenCompatibility (bool) – Indicates whether the model has screen compatibility.
- _abc_impl = <_abc._abc_data object>#
- 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, type: InputFieldType, validationRules: str = None, visibility: str = 'public')[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. type (str): The type of the input field. validationRules (str): The validation rules for the input field.
- _abc_impl = <_abc._abc_data object>#
- property type: InputFieldType#
Get the type of the input field.
- Type:
- class besser.BUML.metamodel.gui.graphical_ui.InputFieldType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Represents the type of a Input Field.
- Color = 'Color'#
- Date = 'Date'#
- Email = 'Email'#
- File = 'File'#
- Number = 'Number'#
- Password = 'Password'#
- Range = 'Range'#
- Search = 'Search'#
- Tel = 'Tel'#
- Text = 'Text'#
- Time = 'Time'#
- URL = 'URL'#
- class besser.BUML.metamodel.gui.graphical_ui.Menu(name: str, description: str, menuItems: set[MenuItem], visibility: str = 'public')[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:
Element
Represents an item of a menu.
- _abc_impl = <_abc._abc_data object>#
- 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, view_elements: set[ViewElement], x_dpi: str, y_dpi: str, screen_size: str, is_main_page: bool = False)[source]#
Bases:
ViewContainer
Represents a screen.
- Parameters:
name (str) – The name of the screen.
view_elements (set[ViewElement]) – The set of view elements on the screen.
x_dpi (str) – The X DPI (dots per inch) of the screen.
y_dpi (str) – The Y DPI (dots per inch) of the screen.
screen_size (str) – The size of the screen.
is_main_page (bool) – wether this screen serves as the main page of the model.
- view_elements#
The set of view elements on the screen.
- Type:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.ViewComponent(name: str, description: str, visibility: str = 'public')[source]#
Bases:
ViewElement
Represents a view component that extends a generic ViewElement.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- class besser.BUML.metamodel.gui.graphical_ui.ViewContainer(name: str, description: str, view_elements: set[ViewElement])[source]#
Bases:
ViewElement
Represents a view container.
- Parameters:
- _abc_impl = <_abc._abc_data object>#
- property view_elements: set[ViewElement]#
Get the set of view elements on the screen.
- Type: