gWidgets2-S3methods: Return items

Description Usage Arguments Value

Description

Return items

Length of object

set length of object

dimension of object

Names are used in many different contexts.

set names of object

Get dimnames of object

Set dimnames of object

We use the extraction operator, [, typically to refer to the underlying items from which a selection can be made. As well, we overload this to containers to refer to the child components.

Return children of a parent container

Set object's items

The update method will ca use a widget to recompute itself, if it is necessary.

str method for widgets

The current items for a gdf object are both the visible and non-visible items. To retrieve just the currently visible items, use the idiom obj[visible(obj), ].

The underlying widget may allow autocompletion, if this is the case then this method is used to set the list of candidates.

set names for frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## S3 method for class 'GDefaultWidget'
x[i, j, ...]

## S3 method for class 'GComponent'
length(x)

## S3 replacement method for class 'GComponent'
 length(x) <- value

## S3 method for class 'GComponent'
dim(x)

## S3 method for class 'GComponent'
names(x)

## S3 replacement method for class 'GComponent'
 names(x) <- value

## S3 method for class 'GComponent'
dimnames(x)

## S3 replacement method for class 'GComponent'
 dimnames(x) <- value

## S3 method for class 'GComponent'
x[i, j, ..., drop = TRUE]

## S3 method for class 'GContainer'
x[i, j, ..., drop = TRUE]

## S3 replacement method for class 'GComponent'
 x[i, j, ...] <- value

## S3 method for class 'GComponent'
update(object, ...)

## S3 method for class 'GComponent'
str(object, ...)

## S3 method for class 'GDf'
x[i, j, ..., drop = TRUE]

## S3 method for class 'GEdit'
x[i, j, ..., drop = TRUE]

## S3 replacement method for class 'GFrame'
 names(x) <- value

Arguments

x

component

i

index or row index if applicable

j

column index if applicable

...

dots argument

value

value to assign

drop

logical. Does return value get "dropped" down to something easier?

object

object to update

Value

length of object


jverzani/gWidgets2 documentation built on May 20, 2019, 5:17 a.m.