Learn R Programming

gWidgets2 (version 1.0-9)

[.GDefaultWidget: Return items

Description

Names are used in many different contexts.

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.

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

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.

Usage

# S3 method for GDefaultWidget
[(x, i, j, ...)

# S3 method for GComponent length(x)

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

# S3 method for GComponent dim(x)

# S3 method for GComponent names(x)

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

# S3 method for GComponent dimnames(x)

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

# S3 method for GComponent [(x, i, j, ..., drop = TRUE)

# S3 method for GContainer [(x, i, j, ..., drop = TRUE)

# S3 method for GComponent [ (x, i, j, ...) <- value

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

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

# S3 method for GDf [(x, i, j, ..., drop = TRUE)

# S3 method for GEdit [(x, i, j, ..., drop = TRUE)

# S3 method for 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