Skip to contents

An R6 class and a constructor function for the creation of widgets that can be used to manipulate integer numbers that are bounded within an interval.

Usage

BoundedIntWidget(value, min, max, ...)

BoundedIntRangeWidget(value, min, max, ...)

Arguments

value

A pair of integer values

min

The lower bound of the enclosing interval

max

The upper bound of the enclosing interval

...

Other arguments, passed to the superclass initializer

Details

The function BoundedIntWidget creates objects of the R6 Class "BoundedIntWidgetClass", which in turn have the S3 class attribute "BoundedIntWidget".

Super classes

RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedIntWidget

Public fields

value

A Integer traitlet.

min

A Integer traitlet, the minimum allowed value.

max

A Integer traitlet, the maximum allowed value.

Methods

Inherited methods


Method validate_value()

Validate the "value" after assignment.

Usage

BoundedIntWidgetClass$validate_value(value)

Arguments

value

A value, should be an integer number.


Method validate_min()

Validate the "min" field after assignment.

Usage

BoundedIntWidgetClass$validate_min(min)

Arguments

min

A minimum value, should be an integer number.


Method validate_max()

Validate the "max" field after assignment.

Usage

BoundedIntWidgetClass$validate_max(max)

Arguments

max

A maximum value, should be an integer number.


Method new()

Usage

Arguments

...

Arguments passed to the superclass initializer


Method clone()

The objects of this class are cloneable with this method.

Usage

BoundedIntWidgetClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Super classes

RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedIntRangeWidget

Public fields

value

A Integer traitlet.

min

A Integer traitlet, the minimum allowed value.

max

A Integer traitlet, the maximum allowed value.

Methods

Inherited methods


Method validate_value()

Validate the "value" after assignment.

Usage

BoundedIntRangeWidgetClass$validate_value(value)

Arguments

value

A value, should be an integer number.


Method validate_min()

Validate the "min" field after assignment.

Usage

BoundedIntRangeWidgetClass$validate_min(min)

Arguments

min

A minimum value, should be an integer number.


Method validate_max()

Validate the "max" field after assignment.

Usage

BoundedIntRangeWidgetClass$validate_max(max)

Arguments

max

A maximum value, should be an integer number.


Method new()

Arguments

...

Arguments passed to the superclass initializer.


Method clone()

The objects of this class are cloneable with this method.

Usage

BoundedIntRangeWidgetClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.