Provided by: afnix_2.9.2-2build1_amd64 

NAME
wgt - standard widget module
STANDARD WIDGET MODULE
The Standard Widgetmodule is a set of comprehensive objects designed to be used as widgets for a
particular applications.
The conditional class
The Conditionalclass is a widget class that provides a mechanism for conditional expression evaluation. A
conditional object, if active, is valuated by evaluating the operator and the associated left and right
operands. A conditional can also be defined by name and info.
const cond (afnix:wgt:Conditional "test" "test example")
The conditional is defined with the setmethod which accepts one or two operands.
cond:set "==" "x" 2
STANDARD WIDGET REFERENCE
Conditional
The Conditionalclass is a widget class which represents a selectable condition. A condition is defined by
a string operator and one or two literal arguments. If the condition is active, it can be valuated by an
expressable interface.
Predicate
conditional-p
Inheritance
NameableSerial
Constructors
Conditional (none)
The Uriconstructor creates an empty uri object.
Conditional (String)
The Conditionalconstructor creates a conditional object by name.
Conditional (String String)
The Conditionalconstructor creates a conditional object by name and information.
Methods
set-name -> none (String)
The set-namemethod sets the conditional name.
set-info -> none (String)
The set-infomethod sets the conditional information.
get-info -> String (none)
The get-infomethod gets the conditional information.
set-active -> none (Boolean)
The set-activemethod sets the conditional active flag.
get-active -> Boolean (none)
The get-activemethod gets the conditional active flag.
set -> none (String Literal | String Literal Literal)
The setmethod set the conditional expression. In the first form, the operator is set with a unique
lhs. In the second form, the operator is set with a lhs and a rhs.
get-operator -> String (none)
The get-operatormethod gets the conditional operator.
get-lhs -> Literal (none)
The get-lhsmethod gets the conditional lhs.
get-rhs -> Literal (none)
The get-rhsmethod gets the conditional rhs.
AFNIX 2020-03-22 wgt(3)