// Generated by CoffeeScript 1.12.7
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

if (ez5.PdfCreator) {
  ez5.ExamplePdfCreatorNode = (function(superClass) {
    extend(ExamplePdfCreatorNode, superClass);

    function ExamplePdfCreatorNode() {
      return ExamplePdfCreatorNode.__super__.constructor.apply(this, arguments);
    }

    ExamplePdfCreatorNode.getName = function() {
      return "an-example-node";
    };

    ExamplePdfCreatorNode.prototype.__renderPdfContent = function(opts) {
      var content, data, object;
      object = opts.object;
      if (!object) {
        return;
      }
      data = this.getData();
      content = new CUI.VerticalLayout({
        top: {
          content: new CUI.Label({
            text: data.title
          })
        },
        center: {
          content: new CUI.MultilineLabel({
            text: CUI.util.dump(object)
          })
        }
      });
      return content;
    };

    ExamplePdfCreatorNode.prototype.__getSettingsFields = function() {
      var fields;
      fields = [
        {
          type: CUI.Input,
          name: "title",
          form: {
            label: $$("pdf-creator.node.an-example-node.settings.title")
          }
        }
      ];
      return fields;
    };

    ExamplePdfCreatorNode.prototype.__getStyleSettings = function() {
      return ["class-name", "background", "color"];
    };

    return ExamplePdfCreatorNode;

  })(ez5.PdfCreator.Node);
  ez5.PdfCreator.plugins.registerPlugin(ez5.ExamplePdfCreatorNode);
}
