Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The second parameter to Label is the model for the Label, which provides content which replaces any text inside the <span> tag that the Label is attached to. The model being passed to the Label constructor above is apparently a String. But if we look inside the Label constructor, we see that this constructor is merely there for convenience , and that - it wraps its String argument in a Model object like this:

...