   ###
   @PAGING_STYLE:
     SIMPLE: 'simple'
-    FULL: 'full'  # default
+    FULL: 'full' # default
+
+  ###*
+    @type {Array}
+  ###
+  @RESULT_CAPTION: ['Items total:', 'Displayed']
+
+  ###*
+    @type {Array}
+  ###
+  @RESULT_NUMBER: ['%d', '%d to %d']
 
   constructor: ->
     super()
     @classes.push 'paginator'
-    @resultPatterns = ['Items total: %d', 'Displayed %d to %d']
     @isPatternSet = [false, false]
     @switcher = null
     @switcherSelect = null


  ###*
    @protected
    @param {string} pattern
    @param {number} i
  ###
  setResultPattern: (pattern, i) ->
    if pattern? and pattern isnt '' and not @isPatternSet[i]
      @resultPatterns[i] = pattern
      @isPatternSet[i] = true

  ###*
    @param {wzk.ui.Component} paginator
    @param {Element} el
  ###
  decorate: (paginator, el) ->
    dom = paginator.getDomHelper()
    C = wzk.ui.grid.PaginatorRenderer.CLASSES

    for resultEl, i in [dom.cls(C.RESULT_TOTAL, el), dom.cls(C.RESULT_DISPLAYED, el)]
      if resultEl?
        @setResultPattern dom.getTextContent(resultEl), i
        @decorateResult paginator, resultEl, @composeResult(paginator, @resultComposers[i])

    @pagingStyle = goog.dom.dataset.get el, wzk.ui.grid.PaginatorRenderer.DATA.PAGING
    pagination = dom.cls(C.PAGINATION, el) ? el

    PREV: 'previous'
    NEXT: 'next'
    RESULT: 'result'
    RESULT_NUMBER: 'result-number'
    RESULT_CAPTION: 'result-caption'
    RESULT_TOTAL: 'result-total'
    RESULT_DISPLAYED: 'result-displayed'
    PAGING: 'paging'
