table of contents
wgt(3) | Library Functions Manual | wgt(3) |
NAME¶
wgt - standard widget module
STANDARD WIDGET MODULE¶
The Standard Widget module is a set of comprehensive objects designed to be used as widgets for a particular applications.
The conditional class
The Conditional class 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 set method which accepts one or two operands.
cond:set "==" "x" 2
STANDARD WIDGET REFERENCE¶
Conditional
The Conditional class 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
Inheritance
Constructors
The Uri constructor creates an empty uri object.
The Conditional constructor creates a conditional object by name.
The Conditional constructor creates a conditional object by name and information.
Methods
The set-name method sets the conditional name.
The set-info method sets the conditional information.
The get-info method gets the conditional information.
The set-active method sets the conditional active flag.
The get-active method gets the conditional active flag.
The set method 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.
The get-operator method gets the conditional operator.
The get-lhs method gets the conditional lhs.
The get-rhs method gets the conditional rhs.
AFNIX | AFNIX Module |