class Umbra::LabeledField

A widget that has an entry +Field+ and an associated +String+.

This stores a String and prints it before the Field. This label is gauranteed to print to the left of the Field. This label prints on lrow and lcol if supplied, else it will print on the left of the field at col minus the width of the label.

It is initialized exactly like a Field, with the addition of `:label` (and optionally label_color_pair,

label_attr, and lcol, lrow)

Attributes

mnemonic[RW]

Public Class Methods

new(config={}) click to toggle source
Calls superclass method Umbra::Field::new
# File lib/umbra/labeledfield.rb, line 54
def initialize config={}, &block
  @related_widget = self
  super
end