constructor

@param {String}          url       [in] ページ URL
@param {String}          id        [in] ページ ID
@param {BasePageOptions} [options] [in] オプション
556613
function BasePage(url, id, _options) {
                var _this = _super.call(this, url, id, _options = $.extend({
                    baseHeader: UI.BaseHeaderView,
                    backCommandHandler: "onPageBack",
                    backCommandKind: "pageback",
                    domExtensionOptions: {},
                }, _options)) || this;
                _this._options = _options;
                return _this;
            }
280504
function (options) {

            var args = arguments;

            // Initialization
            if (args[0] == 'init') {
                defaults = Pilotfish('extend', {}, defaults, options);
                return Pilotfish;
            }

            settings = Pilotfish('extend', {}, defaults, options || {});

            // Welcome message
            if (args[0] == 'welcome') {
                var welcomeSettings = Pilotfish('extend', {}, settings.welcome);
                // If the second argument is a string, assume it is a welcome message
                if (typeof args[1] == 'string') {
                    welcomeSettings.text = args[1];

                // Otherwise its an object that is to override the default welcome settings
                } else if (jQuery.isPlainObject(args[1])) {
                    welcomeSettings = Pilotfish('extend', {}, settings.welcome, args[1]);
                }

                // Allow a url override that forces a first time user
                var urlOverride = location.search.indexOf('pilotfish_usher_welcome') > -1;

                if (urlOverride || ! Pilotfish('session', welcomeSettings.sessionVariable)) {
                    // Display a welcome messgae
                    jQuery(window).load(function () {
                        window.pilotfishUsherWelcomeCalled = true;
                        window.setTimeout(function usherWelcome() {
                            window.pilotfishTimeoutCalled = true;
                            Pilotfish('speaker', welcomeSettings.text, {confirm: true}, function usherWelcomePrompt() {
                                tour(settings);
                            });
                        }, welcomeSettings.delay);
                    });
                    Pilotfish('session', welcomeSettings.sessionVariable, 1);
                }
                Pilotfish('trigger', 'plugins:usher:welcome', {'msg': welcomeSettings.text, 'settings': settings});
                return Pilotfish;
            }

            // Default, show the tour
            tour(settings);

            return Pilotfish;
        }
1318963
function(element, options) {
        var that = this;
        that.name = NAME;
        that.$ = $(element);

        options = that.options = $.extend({}, Pager.DEFAULTS, this.$.data(), options);

        var lang   = options.lang || $.zui.clientLang();
        that.lang  = $.isPlainObject(lang) ? ($.extend(true, {}, LANG[lang.lang || $.zui.clientLang()], lang)) : LANG[lang];

        that.state = {};

        that.set(options.page, options.recTotal, options.recPerPage, true);

        that.$.on('click', '.pager-goto-btn', function() {
            var $goto = $(this).closest('.pager-goto');
            var page = parseInt($goto.find('.pager-goto-input').val());
            if (page !== NaN) {
                that.set(page);
            }
        }).on('click', '.pager-item', function() {
            var page = $(this).data('page');
            if (typeof page === 'number' && page > 0) {
                that.set(page);
            }
        }).on('click', '.pager-size-menu [data-size]', function() {
            var size = $(this).data('size');
            if (typeof size === 'number' && size > 0) {
                that.set(-1, -1, size);
            }
        });
    }
1203122
function o_destination( $id, $action, $options = '' )
    {
        if ( $action != 'new' )
        {
            $o =& $this->objects[$id];
        }
        switch ( $action )
        {
            case 'new':
                $this->objects[$id] = array( 't' => 'destination', 'info' => array() );
                $tmp = '';
                switch ( $options['type'] )
                {
                case 'XYZ':
                case 'FitR':
                    $tmp =  ' ' . sprintf( '%.3F', $options['p3'] ) . $tmp;
                case 'FitV':
                case 'FitBH':
                case 'FitBV':
                    $tmp =  ' ' . sprintf( '%.3F', $options['p2'] ) . $tmp;
                case 'Fit':
                case 'FitH':
                    $tmp =  ' ' . sprintf( '%.3F', $options['p1'] ) . $tmp;
                case 'FitB':
                    $tmp = $options['type'] . $tmp;
                    $this->objects[$id]['info']['string'] = $tmp;
                    $this->objects[$id]['info']['page'] = $options['page'];
                }break;

            case 'out':
                $tmp = $o['info'];
                $res = "\n" . $id . " 0 obj\n" . '[' . $tmp['page'] . ' 0 R /' . $tmp['string'] . "]\nendobj\n";
                return $res;
                break;
        }
    }
866669
function buildNewOptions (options, newUrl) {

    // Old method
    /*
    var o = createDefaultOptions(newUrl);

    // Copy only options attributes that are in the options used for the previous request
    // Could be more simple ? ;-)

    o =  _.extend(o, _.pick(options, _.without(_.keys(o), "url")));
    */
    var o = _.clone(options);
    o.url = newUrl;


    o.depthLimit = options.depthLimit;
    o.currentRetries = 0;

    if (options.canCrawl) {
      o.canCrawl = options.canCrawl;
    }

    return o;

 }
677061
function createResource(url, params, methods) {
      var resource;

      params = _.defaults({}, params, defaultParams);
      methods = _.defaults({}, methods, defaultMethods);
      resource = $resource(url, params, methods);

      // overwrite $save to automatically call $create or $update
      resource.prototype.$save = function save() {
        if (!this._id) {
          return this.$create();
        }

        return this.$update();
      };

      return resource;
    }
672205
public void setHtmlElementId(String id) {
		htmlElementId = id;
		mapWidget.setHtmlElement(DOM.getElementById(id));
		mapWidget.draw();
	}
473998
function (ID, events) {
        "use strict";
    
        Object.defineProperty(this, 'ID', {
            'get': function () {
                return ID;
            }
        });
    
        var library;
        (function (ID) {
    
            ID = ID.split('/');
            if (ID[0] === 'libraries') {
                library = beyond.libraries.get(ID[1]);
            }
    
        })(ID);
        Object.defineProperty(this, 'library', {
            'get': function () {
                return library;
            }
        });
    
        var path = ID;
        if (library && path === library.path) {
            path = path + '/main';
        }
    
        path = path.split('/');
        if (library) {
            // Remove /libraries/library
            path.splice(0, 2);
        }
        else {
            // Remove /application
            path.splice(0, 1);
        }
    
        path = path.join('/');
    
        Object.defineProperty(this, 'path', {
            'get': function () {
                return path;
            }
        });
    
        var host;
        if (library) {
            host = beyond.hosts.libraries[library.name].js;
        }
        else {
            host = beyond.hosts.application.js;
        }
        host += path;
        Object.defineProperty(this, 'host', {
            'get': function () {
                return host;
            }
        });
    
        var plugins = new Plugins(this);
        Object.defineProperty(this, 'plugins', {
            'get': function () {
                return plugins;
            }
        });
    
        var texts = new Texts(this);
        Object.defineProperty(this, 'texts', {
            'get': function () {
                return texts;
            }
        });
    
        this.react = new ReactRegister(this, events);
    
        this.control = new Control(this);
    
        var dependencies = new Dependencies(this);
        this.dependencies = dependencies;
    
        this.Action = Action(this, events);
    
        this.invalidateCache = function (actionPath, params) {
    
            var request = new Request(this, actionPath, params);
            var cache = new Cache();
    
            return cache.invalidate(request);
    
        };
    
        this.execute = function () {
    
            var args = [].slice.call(arguments);
    
            // options must be after callback
            var actionPath, params, callback, options;
    
            for (var i in args) {
    
                var arg = args[i];
                switch (typeof arg) {
                    case 'string':
                        actionPath = arg;
                        break;
                    case 'function':
                        callback = arg;
                        break;
                    case 'object':
                        if (callback) options = arg;
                        else params = arg;
                }
    
            }
    
            if (typeof params === 'function' && typeof callback === 'undefined') {
                callback = params;
                params = undefined;
            }
    
            var action = new this.Action(actionPath, params);
            action.onResponse = function (response) {
                if (callback) callback(response);
            };
            action.onError = function (error) {
                if (callback) callback(undefined, error);
            };
            action.execute();
    
        };
    
        var styles = new ModuleStyles(this);
        Object.defineProperty(this, 'styles', {
            'get': function () {
                return styles;
            }
        });
    
        Object.defineProperty(this, 'css', {
            'get': function () {
                return styles;
            }
        });
    
        var templates = new ModuleTemplates(this);
        Object.defineProperty(this, 'templates', {
            'get': function () {
                return templates;
            }
        });
    
        this.render = function (path, params) {
            return templates.render(path, params);
        };
    
        Object.defineProperty(this, 'custom', {
            'get': function () {
    
                if (!library) {
                    return;
                }
    
                var custom = 'application/custom/' + library.name + '/' + this.path;
                return custom;
    
            }
        });
    
        this.socket = function (callback) {
    
            if (this.ID.substr(0, 10) === 'libraries/') {
    
                if (!library.socket) {
                    console.error('library does not support server communication', library.name);
                    return;
                }
                library.socket(function (socket) {
                    callback(socket);
                });
    
            }
            else {
    
                beyond.socket(function (socket) {
                    callback(socket);
                });
    
            }
    
        };
    
        var ready;
        Object.defineProperty(this, 'ready', {
            'get': function () {
                return !!ready;
            }
        });
    
        var callbacks = [];
        this.done = function (callback) {
    
            if (ready) {
                callback(dependencies.modules);
                return;
            }
    
            callbacks.push(callback);
    
        };
    
        this.dependencies.done(function () {
    
            ready = true;
    
            for (var i in callbacks) {
                callbacks[i](dependencies.modules);
            }
            callbacks = undefined;
    
        });
    
    }
576131
function constructor(attributes, options) {
      var hooks = []
        , local = {};

      options = options || {};

      //
      // Set the database name and/or urlRoot if provided in the options.
      //
      if (options.database) this.database = options.database;
      if (options.urlRoot) this.urlRoot = options.urlRoot;

      //
      // Copy attributes to a new object and provide a MongoDB OfbjectID.
      //
      attributes = attributes || {};
      for (var key in attributes) local[key] = attributes[key];

      //
      // If the provided `_id` is an ObjectID assume the model is stored.
      // If it is not an ObjectID, remove it from the provided data.
      // MongoDB will provide an ObjectID by default.
      //
      if ('_id' in local) try {
        local._id = new ObjectID(local._id);
      } catch (error) { delete local._id; }

      //
      // Define restricted non-enumerated properties.
      //
      predefine(this, fossa);

      //
      // Check for presence of before/after hooks and setup.
      //
      if (this.before) hooks.push('before');
      if (this.after) hooks.push('after');
      this.setup(hooks);

      //
      // Call original Backbone Model constructor.
      //
      backbone.Model.call(this, local, options);
    }
1304052
function o_pages( $id, $action, $options = '' )
    {
        if ($action!='new')
        {
            $o =& $this->objects[$id];
        }
        switch ( $action )
        {
        case 'new':
            $this->objects[$id] = array( 't' => 'pages', 'info' => array() );
            $this->o_catalog( $this->catalogId, 'pages', $id );
            break;
        case 'page':
            if ( !is_array( $options ) )
            {
                // then it will just be the id of the new page
                $o['info']['pages'][] = $options;
            }
            else
            {
                // then it should be an array having 'id','rid','pos', where rid=the page to which this one will be placed relative
                // and pos is either 'before' or 'after', saying where this page will fit.
                if ( isset( $options['id'] ) && isset( $options['rid'] ) && isset( $options['pos'] ) )
                {
                    $i = array_search( $options['rid'], $o['info']['pages'] );
                    if ( isset( $o['info']['pages'][$i] ) && $o['info']['pages'][$i] == $options['rid'])
                    {
                        // then there is a match
                        // make a space
                        switch ( $options['pos'] )
                        {
                        case 'before':
                            $k = $i;
                            break;
                        case 'after':
                            $k = $i + 1;
                            break;
                        default:
                            $k = -1;
                            break;
                        }
                        if ( $k >= 0 )
                        {
                            for ( $j = count( $o['info']['pages'] ) - 1; $j >= $k; $j-- )
                            {
                                $o['info']['pages'][$j+1] = $o['info']['pages'][$j];
                            }
                            $o['info']['pages'][$k] = $options['id'];
                        }
                    }
                }
            }break;

        case 'procset':
            $o['info']['procset'] = $options;
            break;
        case 'mediaBox':
            $o['info']['mediaBox'] = $options; // which should be an array of 4 numbers
            break;
        case 'font':
            $o['info']['fonts'][] = array( 'objNum' => $options['objNum'], 'fontNum' => $options['fontNum'] );
            break;
        case 'shading':
            $o['info']['shading'][] = array( 'objNum' => $options['objNum'], 'label' => $options['label'] );
            break;
        case 'xObject':
            $o['info']['xObjects'][] = array( 'objNum' => $options['objNum'], 'label' => $options['label'] );
            break;
        case 'out':
            if ( count( $o['info']['pages'] ) )
            {
                $res = "\n" . $id . " 0 obj\n<< /Type /Pages\n/Kids [";
                foreach ( $o['info']['pages'] as $k => $v )
                {
                    $res .= $v . " 0 R\n";
                }
                $res .= "]\n/Count " . count( $this->objects[$id]['info']['pages'] );
                if ( ( isset( $o['info']['fonts'] ) && count( $o['info']['fonts'] ) ) || isset( $o['info']['procset'] ) )
                {
                    $res .= "\n/Resources <<";
                    if ( isset( $o['info']['procset'] ) )
                    {
                        $res .= "\n/ProcSet " . $o['info']['procset'] . " 0 R";
                    }
                    if ( isset( $o['info']['fonts'] ) && count( $o['info']['fonts'] ) )
                    {
                        $res .= "\n/Font << ";
                        foreach ( $o['info']['fonts'] as $finfo )
                        {
                            $res .= "\n/F" . $finfo['fontNum'] . " " . $finfo['objNum'] . " 0 R";
                        }
                        $res .= " >>";
                    }

                    if ( isset( $o['info']['shading'] ) && count( $o['info']['shading'] ) )
                    {
                        $res .= "\n/Shading <<";
                        foreach ( $o['info']['shading'] as $finfo )
                        {
                            $res .= "\n/" . $finfo['label'] . " " . $finfo['objNum'] . " 0 R";
                        }
                        $res .= " >>";
                    }

                    if ( isset( $o['info']['xObjects'] ) && count( $o['info']['xObjects'] ) )
                    {
                        $res .= "\n/XObject << ";
                        foreach ( $o['info']['xObjects'] as $finfo )
                        {
                            $res .= "\n/" . $finfo['label'] . " " . $finfo['objNum'] . " 0 R";
                        }
                        $res .= " >>";
                    }
                    $res .= "\n>>";
                    if ( isset( $o['info']['mediaBox'] ) )
                    {
                        $tmp = $o['info']['mediaBox'];
                        $res .= "\n/MediaBox [" . sprintf( '%.3F', $tmp[0] ) . ' ' . sprintf( '%.3F', $tmp[1] ) . ' ' . sprintf( '%.3F', $tmp[2] ) . ' ' . sprintf( '%.3F', $tmp[3] ) . ']';
                    }
                }
                $res.="\n >>\nendobj";
            }
            else
            {
                $res = "\n" . $id . " 0 obj\n<< /Type /Pages\n/Count 0\n>>\nendobj";
            }
            return $res;
            break;
        }
    }
758623
protected function  o_page($id, $action, $options = '') {
    if  ($action !== 'new') {
      $o = & $this->objects[$id];
    }

    switch  ($action) {
    case  'new':
      $this->numPages++;
      $this->objects[$id] = array('t'=>'page', 'info'=>array('parent'=>$this->currentNode, 'pageNum'=>$this->numPages));

      if  (is_array($options)) {
        // then this must be a page insertion, array should contain 'rid','pos'=[before|after]
        $options['id'] = $id;
        $this->o_pages($this->currentNode, 'page', $options);
      } else {
        $this->o_pages($this->currentNode, 'page', $id);
      }

      $this->currentPage = $id;
      //make a contents object to go with this page
      $this->numObj++;
      $this->o_contents($this->numObj, 'new', $id);
      $this->currentContents = $this->numObj;
      $this->objects[$id]['info']['contents'] = array();
      $this->objects[$id]['info']['contents'][] = $this->numObj;

      $match =  ($this->numPages%2 ?  'odd' :  'even');
      foreach($this->addLooseObjects as  $oId=>$target) {
        if  ($target === 'all' || $match === $target) {
          $this->objects[$id]['info']['contents'][] = $oId;
        }
      }
      break;

    case  'content':
      $o['info']['contents'][] = $options;
      break;

    case  'annot':
      // add an annotation to this page
      if  (!isset($o['info']['annot'])) {
        $o['info']['annot'] = array();
      }

      // $options should contain the id of the annotation dictionary
      $o['info']['annot'][] = $options;
      break;

    case  'out':
      $res = "\n$id 0 obj\n<< /Type /Page";
      $res.= "\n/Parent ".$o['info']['parent']." 0 R";

      if  (isset($o['info']['annot'])) {
        $res.= "\n/Annots [";
        foreach($o['info']['annot'] as  $aId) {
          $res.= " $aId 0 R";
        }
        $res.= " ]";
      }

      $count =  count($o['info']['contents']);
      if  ($count == 1) {
        $res.= "\n/Contents ".$o['info']['contents'][0]." 0 R";
      } else  if  ($count>1) {
        $res.= "\n/Contents [\n";

        // reverse the page contents so added objects are below normal content
        //foreach (array_reverse($o['info']['contents']) as  $cId) {
        // Back to normal now that I've got transparency working --Benj
        foreach ($o['info']['contents'] as  $cId) {
          $res.= "$cId 0 R\n";
        }
        $res.= "]";
      }

      $res.= "\n>>\nendobj";
      return  $res;
    }
  }
581424
function constructor(options, error, name) {
    Pagelet.prototype.constructor.call(this, options);

    if (name) this.name = name;
    this.data = error instanceof Error ? error : {};
  }
308564
function(nodes, options) {
        for(var i=0, len=nodes.length; i<len; i++) {
            var style = this.parseStyle(nodes[i]);
            if(style) {
                var styleName = (options.styleBaseUrl || "") + "#" + style.id;
                
                this.styles[styleName] = style;
            }
        }
    }
526555
function PageExpandableListView(url, id, options) {
                var _this = _super.call(this, url, id, options) || this;
                _this._expandManager = null;
                _this._expandManager = new UI.ExpandManager(_this);
                return _this;
            }
976587
function (id_base) {
        var p     = this.paginator,
            c     = p.get('nextPageLinkClass'),
            label = p.get('nextPageLinkLabel'),
            last  = p.getTotalPages();

        this.link     = document.createElement('a');
        this.span     = document.createElement('span');

        this.link.id        = id_base + '-next-link';
        this.link.href      = '#';
        this.link.className = c;
        this.link.innerHTML = label;
        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);

        this.span.id        = id_base + '-next-span';
        this.span.className = c;
        this.span.innerHTML = label;

        this.current = p.getCurrentPage() === last ? this.span : this.link;

        return this.current;
    }
773015
function create(pageIndex) {
      var debug = document.createElement('div');
      debug.id = 'stepper' + pageIndex;
      debug.setAttribute('hidden', true);
      debug.className = 'stepper';
      stepperDiv.appendChild(debug);
      var b = document.createElement('option');
      b.textContent = 'Page ' + (pageIndex + 1);
      b.value = pageIndex;
      stepperChooser.appendChild(b);
      var initBreakPoints = breakPoints[pageIndex] || [];
      var stepper = new Stepper(debug, pageIndex, initBreakPoints);
      steppers.push(stepper);
      if (steppers.length === 1) {
        this.selectStepper(pageIndex, false);
      }
      return stepper;
    }
39182
function fillBaseUrl(url, baseUrl) {
  if (url.indexOf('//') > -1) {
    return url;
  }
  baseUrl = baseUrl || apiConf.baseUrl;

  return `${baseUrl}${url}`;
}