Scroll to navigation

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

conditional-p

Inheritance

NameableSerial

Constructors

Conditional (none)
The Uri constructor creates an empty uri object.

Conditional (String)
The Conditional constructor creates a conditional object by name.

Conditional (String String)
The Conditional constructor creates a conditional object by name and information.

Methods

set-name -> none (String)
The set-name method sets the conditional name.

set-info -> none (String)
The set-info method sets the conditional information.

get-info -> String (none)
The get-info method gets the conditional information.

set-active -> none (Boolean)
The set-active method sets the conditional active flag.

get-active -> Boolean (none)
The get-active method gets the conditional active flag.

set -> none (String Literal | String Literal Literal)
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.

get-operator -> String (none)
The get-operator method gets the conditional operator.

get-lhs -> Literal (none)
The get-lhs method gets the conditional lhs.

get-rhs -> Literal (none)
The get-rhs method gets the conditional rhs.
AFNIX AFNIX Module