   ###*
     @type {Array}
   ###
-  @RESULT_CAPTION: ['Items total:', 'Displayed']
-
-  ###*
-    @type {Array}
-  ###
-  @RESULT_NUMBER: ['%d', '%d to %d']
+  @RESULT: [['Items total:', '%d'], ['Displayed', '%d to %d']]
 
   constructor: ->
     super()
     @classes.push 'paginator'
-    @isPatternSet = [false, false]
+    @isPatternSet = [[false, false], [false, false]]
     @switcher = null
     @switcherSelect = null
     @switcherPattern = '%d per page'

    @param {string} cls
    @param {Element} resultEl
    @param {number} i
    @param {Array} results
  ###
  fetchResultText: (dom, cls, resultEl, i, results) ->
    return if @isPatternSet[i]

    el = dom.cls cls, resultEl
    txt = ''
    if el?
      txt = dom.getTextContent el

    results[i] = txt if txt? and txt isnt ''
    @isPatternSet[i] = true

  ###*
    @param {wzk.ui.Component} paginator

    for resultEl, i in [dom.cls(C.RESULT_TOTAL, el), dom.cls(C.RESULT_DISPLAYED, el)]
      if resultEl?

        @fetchResultText dom, C.RESULT_CAPTION, resultEl, i, 0
        @fetchResultText dom, C.RESULT_NUMBER, resultEl, i, 1

        numberEl = dom.cls C.RESULT_NUMBER, resultEl
        if numberEl?
