p

Util.Universal

package Universal

Universal values establish some concept

Universal values are available at root name space, and can be globally accessed without imports

Application classes and traits can have implicit conversions from Universal value types to local definitions

Using universal instead of local values can reduce and clarify code

val d: Day = NOW               // vs. val d: Day = Day.now

val t: Time = NOW              // vs. val t: Time = Time.now

t.round(1.Second, UP)          // vs. t.round(1.Second, Custom.Rounding.Up)

t.round(1.Minute, DOWN)        // vs. t.round(1.Minute, Custom.Rounding.Down)

val switch: Boolean = OFF      // vs. val switch: Boolean = false

new Fx.Label("XYZ") {
   alignment = RIGHT           // vs. alignment = Fx.Pos.CenterRight
}

new Fx.Pane.Split{
   orientation = VERTICAL      // vs. orientation = Fx.Orientation.Vertical
}

new Fx.Menu {
   items += SEPARATOR          // vs. items += Fx.Menu.Item.getNewSeparator
}
Ordering
  1. Alphabetic
Inherited
  1. Universal
  2. scala.AnyRef
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All
Linear Supertypes
AnyRef, Any
Source: package.scala