Class: Dill::FieldGroup::TextField

Inherits:
Field show all
Defined in:
lib/dill/field_group.rb

Overview

A text field.

Instance Attribute Summary

Attributes inherited from Widget

#root

Instance Method Summary collapse

Methods inherited from Field

find_in, present_in?

Methods inherited from Widget

#!=, #!~, #<, #<=, #==, #=~, #>, #>=, action, #click, #diff, find_in, #has_action?, #initialize, #inspect, #match, present_in?, #reload, root, selector, #text, #to_cell, #to_f, #to_i, widget, widget_delegator

Methods included from WidgetContainer

#has_widget?, #widget

Constructor Details

This class inherits a constructor from Dill::Widget

Instance Method Details

#getObject

Returns The text field value.

Returns:

  • The text field value.



317
# File 'lib/dill/field_group.rb', line 317

def_delegator :root, :value, :get

#set(value) ⇒ Object

Sets the text field value.

Parameters:

  • value (String)

    the value to set.



323
# File 'lib/dill/field_group.rb', line 323

def_delegator :root, :set

#to_sObject

Returns the text field value, or the empty string if the field is empty.

Returns:

  • the text field value, or the empty string if the field is empty.



328
# File 'lib/dill/field_group.rb', line 328

def_delegator :get, :to_s