Category:Framework Classes

From Lianjapedia
Jump to: navigation, search

Lianja includes an extensive array of built-in classes that are cross platform and cross device.

If you are a VFP developer you will recognize some of these as Lianja has a powerful UI framework which is a superset of the VFP 9 base classes.

Bm-noteicon.png

The Lianja UI Framework is client agnostic. Desktop, Web and Mobile.

If you are familiar with the VFP UI classes and you want to develop in JavaScript, TypeScript, Python or PHP you will feel right at home with a minimum learning curve compared to other App platforms.

Bm-noteicon.png
Pro Tip

We recommend you use Lianja UI Layouts to help you build a responsive UI. These can be used in any of the supported scripting languages.

The following Base classes are built into Lianja. These are not specific to the Lianja/VFP scripting language but rather they can be used by all of the supported scripting languages. For case sensitive scripting languages use lowercase names for properties, methods and events.

LianjaScript usage

oCont = createObject("container")
oCont.layout = "Vertical"
oCont.addObject("oLabel", "label")
oLabel.caption = "Hello World!"

JavaScript/TypeScript usage

oCont = createObject("container");
oCont.layout = "Vertical";
oCont.addObject("oLabel", "label");
oLabel.caption = "Hello World!";

Python usage

oCont = Lianja.createObject("container")
oCont.layout = "Vertical"
oCont.addObject("oLabel", "label")
oLabel.caption = "Hello World!"

PHP usage

oCont = Lianja::createObject("container");
oCont->layout = "Vertical";
oCont->addObject("oLabel", "label");
oLabel->caption = "Hello World!";

Classes

Class Type Description
Actionbar Container Toolbar container pre-loaded with action buttons
ActiveX Control Control for embedded ActiveX component (Windows desktop)
Camera Control Control to use the webcam on your machine to capture and store images
Chart Control Chart control with support for Google Charts
Checkbox Control Control for boolean state - True (checked) or False (unchecked)
Collection Non-UI Non-UI container used to group objects
Column Control Column in a Grid
Combobox Control Control combining a TextBox and a ListBox
Commandbutton Control Button control
Commandgroup Container Container used to group buttons
Container Container UI container used to contain other Containers and Controls
Control Container/Control Reference class for container or control within a Container
CursorAdapter Non-UI Connection to a data source
Database Non-UI Connection to a database
DataEnvironment Non-UI Container for the non-UI data objects
Datetextbox Control Control combining a date TextBox and a popup calendar
Datetimetextbox Control Control combining a date/time TextBox and a popup calendar
Editbox Control Editor control
Editor Control Reference class for the Lianja system object's current Editor
Empty Non-UI Empty class
Field Non-UI Reference class for field in a Recordset
Form Container Form container
FormItem Control Reference class for the Lianja system object getElementByID() method
Gadget Container Gadget container
Grid Container Column based container
Header Control Column header in a Grid
HTTPServer Non-UI Embedded custom web server that listens for requests on a port of your choice to expose information by web services. Desktop App only.
Hyperlink Control Hyperlink label control
Image Control Control for displaying images
Imagestrip Container Container for displaying multiple images with navigational controls
Label Control Textual label control
Lcdnumber Control Numeric label control with LCD-like digits
Lianja Non-UI System object
Line Control Line control
Listbox Control Control with a single column list
Menu Container Container for MenuItem controls
MenuBar Container Container for Menu containers
MenuItem Control Control in a Menu
NetworkRequest Non-UI Control supporting http/https/ftp read/write of data
Optionbutton Control Control to select/deselect an option
Optiongroup Container Container used to group OptionButtons
Page Container Tab page container
PageBuilder Container Reference class for the Page Builder
Pageframe Container TabView style container
Popupmenu Container Container for MenuItem controls
Progressbar Control Bar control for minimum, current (%) and maximum numeric values
Recordset Non-UI Connection to a set of data records/rows
Richeditbox Control Rich text editor control
ScrollPanel ScrollPanel Reference class for a scrollable container
Section Container Container in a PageBuilder Page
Separator Control Separator label control
Shape Control Shape label control
SharedMemory Non-UI Connection to a shared memory segment
Slider Control Vertical or horizontal numeric slider with minimum and maximum values
Spinner Control Numeric TextBox control with increment/decrement controls
Splitter Container Container for sub-dividing a parent container
SystemSemaphore Non-UI Connection to a semaphore
SystemTrayIcon Container Container providing an icon for an application in the system tray
Textbox Control Textbox control
Timer Non-UI Control to trigger a timeout after a specified interval
Toolbar Container Container for controls and action buttons
Tree Container Container grid for TreeItems
Treeitem Control Multi-column control in a Tree container
Videoplayer Control Video Player Control (desktop Apps only)
Webview Control Embedded WebKit Control

Subcategories

This category has the following 3 subcategories, out of 3 total.