Request

class Request

General Request

Request objects establish some concept

Application classes and traits can have implicit conversions from Request type to local definitions

Using universal instead of local values can reduce and clarify code


   Time().roundTo(1.Second)(using UP)
   // vs.
   Time().roundTo(1.Second)(using Gen.Rounding.Up)

   Time().roundTo(1.Minute)(using DOWN)
   // vs.
   Time().roundTo(1.Minute)(using Gen.Rounding.Down)

   val l: Long = MAX
   // vs.
   val l: Long = Long.max

   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.separator
   }

By far the most common request is \/, which is request for void object

var s: ~[Int]       = \/     // Assigning empty stream of Ints
var o: Opt[String]  = \/     // Assigning empty optional value of String
var i: Long.Idx     = \/     // Assigning empty indexed collection of Long
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any
class ALL
object ALL
class BOTTOM
object BOTTOM
class CENTER
object CENTER
class CURRENT
object CURRENT
class DEFAULT
object DEFAULT
class DOWN
object DOWN
class EMPTY
object EMPTY
object HORIZONTAL
class LEFT
object LEFT
class MAX
object MAX
class MIN
object MIN
class NEW
object NEW
class RIGHT
object RIGHT
class SEPARATOR
object SEPARATOR
class TOP
object TOP
class UP
object UP
class VERTICAL
object VERTICAL
class \/
object \/