dojox/atom/widget/FeedEntryViewer.js

  • Provides:

    • dojox.atom.widget.FeedEntryViewer
  • Requires:

    • dojo.fx in common in project dojo
    • dijit._Widget in common in project dijit
    • dijit._Templated in common in project dijit
    • dijit._Container in common in project dijit
    • dijit.layout.ContentPane in common in project dijit
    • dojox.atom.io.Connection in common
  • dojox.atom.widget.FeedEntryViewer

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
      • dijit._Templated: (call)
      • dijit._Container: (call)
    • mixins:
      • dijit._Templated.prototype: (prototype)
      • dijit._Container.prototype: (prototype)
    • summary
      An ATOM feed entry editor for publishing updated ATOM entries, or viewing non-editable entries.
    • description
      An ATOM feed entry editor for publishing updated ATOM entries, or viewing non-editable entries.
  • dojox.atom.widget.FeedEntryViewer.entrySelectionTopic

    • summary
  • dojox.atom.widget.FeedEntryViewer._validEntryFields

    • type
      Object
    • summary
  • dojox.atom.widget.FeedEntryViewer.displayEntrySections

    • summary
  • dojox.atom.widget.FeedEntryViewer._displayEntrySections

    • summary
  • dojox.atom.widget.FeedEntryViewer.enableMenu

    • summary
  • dojox.atom.widget.FeedEntryViewer.enableMenuFade

    • summary
  • dojox.atom.widget.FeedEntryViewer._optionButtonDisplayed

    • summary
  • dojox.atom.widget.FeedEntryViewer.templateString

    • summary
  • dojox.atom.widget.FeedEntryViewer._entry

    • summary
  • dojox.atom.widget.FeedEntryViewer._feed

    • summary
  • dojox.atom.widget.FeedEntryViewer._editMode

    • summary
  • dojox.atom.widget.FeedEntryViewer.postCreate

    • type
      Function
    • source: [view]
        if(this.entrySelectionTopic !== ""){
         this._subscriptions = [dojo.subscribe(this.entrySelectionTopic, this, "_handleEvent")];
        }
        var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
        this.displayOptions.innerHTML = _nlsResources.displayOptions;
        this.feedEntryCheckBoxLabelTitle.innerHTML = _nlsResources.title;
        this.feedEntryCheckBoxLabelAuthors.innerHTML = _nlsResources.authors;
        this.feedEntryCheckBoxLabelContributors.innerHTML = _nlsResources.contributors;
        this.feedEntryCheckBoxLabelId.innerHTML = _nlsResources.id;
        this.close.innerHTML = _nlsResources.close;
        this.feedEntryCheckBoxLabelUpdated.innerHTML = _nlsResources.updated;
        this.feedEntryCheckBoxLabelSummary.innerHTML = _nlsResources.summary;
        this.feedEntryCheckBoxLabelContent.innerHTML = _nlsResources.content;
    • summary
  • dojox.atom.widget.FeedEntryViewer.startup

    • type
      Function
    • source: [view]
        if(this.displayEntrySections === ""){
         this._displayEntrySections = ["title","authors","contributors","summary","content","id","updated"];
        }else{
         this._displayEntrySections = this.displayEntrySections.split(",");
        }
        this._setDisplaySectionsCheckboxes();


        if(this.enableMenu){
         dojo.style(this.feedEntryViewerMenu, 'display', '');
         if(this.entryCheckBoxRow && this.entryCheckBoxRow2){
          if(this.enableMenuFade){
           dojo.fadeOut({node: this.entryCheckBoxRow,duration: 250}).play();
           dojo.fadeOut({node: this.entryCheckBoxRow2,duration: 250}).play();
          }
         }
        }
    • summary
  • dojox.atom.widget.FeedEntryViewer.clear

    • type
      Function
    • source: [view]
        this.destroyDescendants();
        this._entry=null;
        this._feed=null;
        this.clearNodes();
    • summary
      Function to clear the state of the widget.
    • description
      Function to clear the state of the widget.
  • dojox.atom.widget.FeedEntryViewer.clearNodes

    • type
      Function
    • source: [view]
        dojo.forEach([
         "entryTitleRow", "entryAuthorRow", "entryContributorRow", "entrySummaryRow", "entryContentRow",
         "entryIdRow", "entryUpdatedRow"
         ], function(node){
          dojo.style(this[node], "display", "none");
         }, this);


        dojo.forEach([
         "entryTitleNode", "entryTitleHeader", "entryAuthorHeader", "entryContributorHeader",
         "entryContributorNode", "entrySummaryHeader", "entrySummaryNode", "entryContentHeader",
         "entryContentNode", "entryIdNode", "entryIdHeader", "entryUpdatedHeader", "entryUpdatedNode"
         ], function(part){
          while(this[part].firstChild){
           dojo.destroy(this[part].firstChild);
          }
         }
        ,this);
    • summary
      Function to clear all the display nodes for the ATOM entry from the viewer.
    • description
      Function to clear all the display nodes for the ATOM entry from the viewer.
  • dojox.atom.widget.FeedEntryViewer.setEntry

    • type
      Function
    • parameters:
      • entry: (typeof object)
        Instance of dojox.atom.io.model.Entry to display for reading/editing.
      • feed: (typeof object)
      • leaveMenuState: (typeof boolean)
    • source: [view]
        this.clear();
        this._validEntryFields = {};
        this._entry = entry;
        this._feed = feed;


        if(entry !== null){
         // Handle the title.
         if(this.entryTitleHeader){
          this.setTitleHeader(this.entryTitleHeader, entry);
         }

         
         if(this.entryTitleNode){
          this.setTitle(this.entryTitleNode, this._editMode, entry);
         }


         if(this.entryAuthorHeader){
          this.setAuthorsHeader(this.entryAuthorHeader, entry);
         }


         if(this.entryAuthorNode){
          this.setAuthors(this.entryAuthorNode, this._editMode, entry);
         }

         
         if(this.entryContributorHeader){
          this.setContributorsHeader(this.entryContributorHeader, entry);
         }


         if(this.entryContributorNode){
          this.setContributors(this.entryContributorNode, this._editMode, entry);
         }


         if(this.entryIdHeader){
          this.setIdHeader(this.entryIdHeader, entry);
         }


         if(this.entryIdNode){
          this.setId(this.entryIdNode, this._editMode, entry);
         }


         if(this.entryUpdatedHeader){
          this.setUpdatedHeader(this.entryUpdatedHeader, entry);
         }


         if(this.entryUpdatedNode){
          this.setUpdated(this.entryUpdatedNode, this._editMode, entry);
         }


         if(this.entrySummaryHeader){
          this.setSummaryHeader(this.entrySummaryHeader, entry);
         }


         if(this.entrySummaryNode){
          this.setSummary(this.entrySummaryNode, this._editMode, entry);
         }


         if(this.entryContentHeader){
          this.setContentHeader(this.entryContentHeader, entry);
         }


         if(this.entryContentNode){
          this.setContent(this.entryContentNode, this._editMode, entry);
         }
        }
        this._displaySections();
    • summary
      Function to set the current entry that is being edited.
    • description
      Function to set the current entry that is being edited.
  • dojox.atom.widget.FeedEntryViewer.setTitleHeader

    • type
      Function
    • parameters:
      • titleHeaderNode: (typeof DOM node)
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.title && entry.title.value && entry.title.value !== null){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var titleHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.title});
         titleHeaderNode.appendChild(titleHeader.domNode);
        }
    • summary
      Function to set the contents of the title header node in the template to some value.
    • description
      Function to set the contents of the title header node in the template to some value.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
      
      titleAchorNode:
      The DOM node to attach the title data to.
      editMode:
      Boolean to indicate if the display should be in edit mode or not.
  • dojox.atom.widget.FeedEntryViewer.setTitle

    • type
      Function
    • parameters:
      • titleAnchorNode: (typeof )
      • editMode: (typeof Boolean)
        to indicate if the display should be in edit mode or not.
      • entry: (typeof The)
        Feed Entry to work with.
    • source: [view]
        if(entry.title && entry.title.value && entry.title.value !== null){
         if(entry.title.type == "text"){
          var titleNode = document.createTextNode(entry.title.value);
          titleAnchorNode.appendChild(titleNode);
         }else{
          var titleViewNode = document.createElement("span");
          var titleView = new dijit.layout.ContentPane({refreshOnShow: true, executeScripts: false}, titleViewNode);
          titleView.attr('content', entry.title.value);
          titleAnchorNode.appendChild(titleView.domNode);
         }
         this.setFieldValidity("title", true);
        }
    • summary
      Function to set the contents of the title node in the template to some value from the entry.
    • description
      Function to set the contents of the title node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
      
      titleAchorNode:
      The DOM node to attach the title data to.
  • dojox.atom.widget.FeedEntryViewer.setAuthorsHeader

    • type
      Function
    • parameters:
      • authorHeaderNode: (typeof DOM node)
        The DOM node to attach the author section header data to.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.authors && entry.authors.length > 0){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var authorHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.authors});
         authorHeaderNode.appendChild(authorHeader.domNode);
        }
    • summary
      Function to set the title format for the authors section of the author row in the template to some value from the entry.
    • description
      Function to set the title format for the authors section of the author row in the template to some value from the entry.
      This exists specifically so users can over-ride how the author data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setAuthors

    • type
      Function
    • parameters:
      • authorsAnchorNode: (typeof DOM node)
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        authorsAnchorNode.innerHTML = "";
        if(entry.authors && entry.authors.length > 0){
         for(var i in entry.authors){
          if(entry.authors[i].name){
           var anchor = authorsAnchorNode;
           if(entry.authors[i].uri){
            var link = document.createElement("a");
            anchor.appendChild(link);
            link.href = entry.authors[i].uri;
            anchor = link;
           }
           var name = entry.authors[i].name;
           if(entry.authors[i].email){
            name = name + " (" + entry.authors[i].email + ")";
           }
           var authorNode = document.createTextNode(name);
           anchor.appendChild(authorNode);
           var breakNode = document.createElement("br");
           authorsAnchorNode.appendChild(breakNode);
           this.setFieldValidity("authors", true);
          }
         }
        }
    • summary
      Function to set the contents of the author node in the template to some value from the entry.
    • description
      Function to set the contents of the author node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
      
      authorsAchorNode:
      The DOM node to attach the author data to.
  • dojox.atom.widget.FeedEntryViewer.setContributorsHeader

    • type
      Function
    • parameters:
      • contributorsHeaderNode: (typeof DOM node)
        The DOM node to attach the contributor title to.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.contributors && entry.contributors.length > 0){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var contributorHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.contributors});
         contributorsHeaderNode.appendChild(contributorHeader.domNode);
        }
    • summary
      Function to set the contents of the contributor header node in the template to some value from the entry.
    • description
      Function to set the contents of the contributor header node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setContributors

    • type
      Function
    • parameters:
      • contributorsAnchorNode: (typeof DOM node)
        The DOM node to attach the contributor data to.
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.contributors && entry.contributors.length > 0){
         for(var i in entry.contributors){
          var contributorNode = document.createTextNode(entry.contributors[i].name);
          contributorsAnchorNode.appendChild(contributorNode);
          var breakNode = document.createElement("br");
          contributorsAnchorNode.appendChild(breakNode);
          this.setFieldValidity("contributors", true);
         }
        }
    • summary
      Function to set the contents of the contributor node in the template to some value from the entry.
    • description
      Function to set the contents of the contributor node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setIdHeader

    • type
      Function
    • parameters:
      • idHeaderNode: (typeof DOM node)
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.id && entry.id !== null){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var idHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.id});
         idHeaderNode.appendChild(idHeader.domNode);
        }
    • summary
      Function to set the contents of the ID  node in the template to some value from the entry.
    • description
      Function to set the contents of the ID node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
      
      idAnchorNode:
      The DOM node to attach the ID data to.
  • dojox.atom.widget.FeedEntryViewer.setId

    • type
      Function
    • parameters:
      • idAnchorNode: (typeof DOM node)
        The DOM node to attach the ID data to.
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.id && entry.id !== null){
         var idNode = document.createTextNode(entry.id);
         idAnchorNode.appendChild(idNode);
         this.setFieldValidity("id", true);
        }
    • summary
      Function to set the contents of the ID  node in the template to some value from the entry.
    • description
      Function to set the contents of the ID node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setUpdatedHeader

    • type
      Function
    • parameters:
      • updatedHeaderNode: (typeof DOM node)
        The DOM node to attach the updated header data to.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.updated && entry.updated !== null){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var updatedHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.updated});
         updatedHeaderNode.appendChild(updatedHeader.domNode);
        }
    • summary
      Function to set the contents of the updated header node in the template to some value from the entry.
    • description
      Function to set the contents of the updated header node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setUpdated

    • type
      Function
    • parameters:
      • updatedAnchorNode: (typeof DOM node)
        The DOM node to attach the udpated data to.
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.updated && entry.updated !== null){
         var updatedNode = document.createTextNode(entry.updated);
         updatedAnchorNode.appendChild(updatedNode);
         this.setFieldValidity("updated", true);
        }
    • summary
      Function to set the contents of the updated  node in the template to some value from the entry.
    • description
      Function to set the contents of the updated node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setSummaryHeader

    • type
      Function
    • parameters:
      • summaryHeaderNode: (typeof DOM node)
        The DOM node to attach the summary title to.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.summary && entry.summary.value && entry.summary.value !== null){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var summaryHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.summary});
         summaryHeaderNode.appendChild(summaryHeader.domNode);
        }
    • summary
      Function to set the contents of the summary  node in the template to some value from the entry.
    • description
      Function to set the contents of the summary node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setSummary

    • type
      Function
    • parameters:
      • summaryAnchorNode: (typeof DOM node)
        The DOM node to attach the summary data to.
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.summary && entry.summary.value && entry.summary.value !== null){
         var summaryViewNode = document.createElement("span");
         var summaryView = new dijit.layout.ContentPane({refreshOnShow: true, executeScripts: false}, summaryViewNode);
         summaryView.attr('content', entry.summary.value);
         summaryAnchorNode.appendChild(summaryView.domNode);
         this.setFieldValidity("summary", true);
        }
    • summary
      Function to set the contents of the summary  node in the template to some value from the entry.
    • description
      Function to set the contents of the summary node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setContentHeader

    • type
      Function
    • parameters:
      • contentHeaderNode: (typeof DOM node)
        The DOM node to attach the content data to.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.content && entry.content.value && entry.content.value !== null){
         var _nlsResources = dojo.i18n.getLocalization("dojox.atom.widget", "FeedEntryViewer");
         var contentHeader = new dojox.atom.widget.EntryHeader({title: _nlsResources.content});
         contentHeaderNode.appendChild(contentHeader.domNode);
        }
    • summary
      Function to set the contents of the content node in the template to some value from the entry.
    • description
      Function to set the contents of the content node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer.setContent

    • type
      Function
    • parameters:
      • contentAnchorNode: (typeof DOM node)
        The DOM node to attach the content data to.
      • editMode: (typeof boolean)
        Boolean to indicate if the display should be in edit mode or not.
      • entry: (typeof object)
        The Feed Entry to work with.
    • source: [view]
        if(entry.content && entry.content.value && entry.content.value !== null){
         var contentViewNode = document.createElement("span");
         var contentView = new dijit.layout.ContentPane({refreshOnShow: true, executeScripts: false},contentViewNode);
         contentView.attr('content', entry.content.value);
         contentAnchorNode.appendChild(contentView.domNode);
         this.setFieldValidity("content", true);
        }
    • summary
      Function to set the contents of the content node in the template to some value from the entry.
    • description
      Function to set the contents of the content node in the template to some value from the entry.
      This exists specifically so users can over-ride how the title data is filled out from an entry.
  • dojox.atom.widget.FeedEntryViewer._displaySections

    • type
      Function
    • source: [view]
        dojo.style(this.entryTitleRow, 'display', 'none');
        dojo.style(this.entryAuthorRow, 'display', 'none');
        dojo.style(this.entryContributorRow, 'display', 'none');
        dojo.style(this.entrySummaryRow, 'display', 'none');
        dojo.style(this.entryContentRow, 'display', 'none');
        dojo.style(this.entryIdRow, 'display', 'none');
        dojo.style(this.entryUpdatedRow, 'display', 'none');


        for(var i in this._displayEntrySections){
         var section = this._displayEntrySections[i].toLowerCase();
         if(section === "title" && this.isFieldValid("title")){
          dojo.style(this.entryTitleRow, 'display', '');
         }
         if(section === "authors" && this.isFieldValid("authors")){
          dojo.style(this.entryAuthorRow, 'display', '');
         }
         if(section === "contributors" && this.isFieldValid("contributors")){
          dojo.style(this.entryContributorRow, 'display', '');
         }
         if(section === "summary" && this.isFieldValid("summary")){
          dojo.style(this.entrySummaryRow, 'display', '');
         }
         if(section === "content" && this.isFieldValid("content")){
          dojo.style(this.entryContentRow, 'display', '');
         }
         if(section === "id" && this.isFieldValid("id")){
          dojo.style(this.entryIdRow, 'display', '');
         }
         if(section === "updated" && this.isFieldValid("updated")){
          dojo.style(this.entryUpdatedRow, 'display', '');
         }


        }
    • summary
      Internal function for determining which sections of the view to actually display.
    • description
      Internal function for determining which sections of the view to actually display.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer.setDisplaySections

    • type
      Function
    • parameters:
      • sectionsArray: (typeof array)
        Array of string names that indicate which sections to display.
    • source: [view]
        if(sectionsArray !== null){
         this._displayEntrySections = sectionsArray;
         this._displaySections();
        }else{
         this._displayEntrySections = ["title","authors","contributors","summary","content","id","updated"];
        }
    • summary
      Function for setting which sections of the entry should be displayed.
    • description
      Function for setting which sections of the entry should be displayed.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer._setDisplaySectionsCheckboxes

    • type
      Function
    • source: [view]
        var items = ["title","authors","contributors","summary","content","id","updated"];
        for(var i in items){
         if(dojo.indexOf(this._displayEntrySections, items[i]) == -1){
          dojo.style(this["feedEntryCell"+items[i]], 'display', 'none');
         }else{
          this["feedEntryCheckBox"+items[i].substring(0,1).toUpperCase()+items[i].substring(1)].checked=true;
         }
        }
    • summary
      Internal function for setting which checkboxes on the display are selected.
    • description
      Internal function for setting which checkboxes on the display are selected.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer._readDisplaySections

    • type
      Function
    • source: [view]
        var checkedList = [];


        if(this.feedEntryCheckBoxTitle.checked){
         checkedList.push("title");
        }
        if(this.feedEntryCheckBoxAuthors.checked){
         checkedList.push("authors");
        }
        if(this.feedEntryCheckBoxContributors.checked){
         checkedList.push("contributors");
        }
        if(this.feedEntryCheckBoxSummary.checked){
         checkedList.push("summary");
        }
        if(this.feedEntryCheckBoxContent.checked){
         checkedList.push("content");
        }
        if(this.feedEntryCheckBoxId.checked){
         checkedList.push("id");
        }
        if(this.feedEntryCheckBoxUpdated.checked){
         checkedList.push("updated");
        }
        this._displayEntrySections = checkedList;
    • summary
      Internal function for reading what is currently checked for display and generating the display list from it.
    • description
      Internal function for reading what is currently checked for display and generating the display list from it.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer._toggleCheckbox

    • type
      Function
    • parameters:
      • checkBox: (typeof object)
        The checkbox object to toggle the selection on.
    • source: [view]
        if(checkBox.checked){
         checkBox.checked=false;
        }else{
         checkBox.checked=true;
        }
        this._readDisplaySections();
        this._displaySections();
    • summary
      Internal function for determining of a particular entry is editable.
    • description
      Internal function for determining of a particular entry is editable.
      This is used for determining if the delete action should be displayed or not.
    • return_summary
      Nothing
  • dojox.atom.widget.FeedEntryViewer._toggleOptions

    • type
      Function
    • parameters:
      • checkBox: (typeof object)
        The checkbox object to toggle the selection on.
    • source: [view]
        if(this.enableMenu){
         var fade = null;
         var anim;
         var anim2;
         if(this._optionButtonDisplayed){
          if(this.enableMenuFade){
           anim = dojo.fadeOut({node: this.entryCheckBoxDisplayOptions,duration: 250});
           dojo.connect(anim, "onEnd", this, function(){
            dojo.style(this.entryCheckBoxDisplayOptions, 'display', 'none');
            dojo.style(this.entryCheckBoxRow, 'display', '');
            dojo.style(this.entryCheckBoxRow2, 'display', '');
            dojo.fadeIn({node: this.entryCheckBoxRow, duration: 250}).play();
            dojo.fadeIn({node: this.entryCheckBoxRow2, duration: 250}).play();
           });
           anim.play();
          }else{
           dojo.style(this.entryCheckBoxDisplayOptions, 'display', 'none');
           dojo.style(this.entryCheckBoxRow, 'display', '');
           dojo.style(this.entryCheckBoxRow2, 'display', '');
          }
          this._optionButtonDisplayed=false;
         }else{
          if(this.enableMenuFade){
           anim = dojo.fadeOut({node: this.entryCheckBoxRow,duration: 250});
           anim2 = dojo.fadeOut({node: this.entryCheckBoxRow2,duration: 250});
           dojo.connect(anim, "onEnd", this, function(){
            dojo.style(this.entryCheckBoxRow, 'display', 'none');
            dojo.style(this.entryCheckBoxRow2, 'display', 'none');
            dojo.style(this.entryCheckBoxDisplayOptions, 'display', '');
            dojo.fadeIn({node: this.entryCheckBoxDisplayOptions, duration: 250}).play();
           });
           anim.play();
           anim2.play();
          }else{
           dojo.style(this.entryCheckBoxRow, 'display', 'none');
           dojo.style(this.entryCheckBoxRow2, 'display', 'none');
           dojo.style(this.entryCheckBoxDisplayOptions, 'display', '');
          }
          this._optionButtonDisplayed=true;
         }
        }
    • summary
      Internal function for determining of a particular entry is editable.
    • description
      Internal function for determining of a particular entry is editable.
      This is used for determining if the delete action should be displayed or not.
    • return_summary
      Nothing
  • dojox.atom.widget.FeedEntryViewer._handleEvent

    • type
      Function
    • parameters:
      • entrySelectionEvent: (typeof object)
        The topic message containing the entry that was selected for view.
    • source: [view]
        if(entrySelectionEvent.source != this){
         if(entrySelectionEvent.action == "set" && entrySelectionEvent.entry){
          this.setEntry(entrySelectionEvent.entry, entrySelectionEvent.feed);
         }else if(entrySelectionEvent.action == "delete" && entrySelectionEvent.entry && entrySelectionEvent.entry == this._entry){
          this.clear();
         }
        }
    • summary
      Internal function for listening to a topic that will handle entry notification.
    • description
      Internal function for listening to a topic that will handle entry notification.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer.setFieldValidity

    • type
      Function
    • parameters:
      • field: (typeof string)
        The field name to set the valid parameter on.  Such as 'content', 'id', etc.
      • isValid: (typeof boolean)
        Flag denoting if the field is valid or not.
    • source: [view]
        if(field){
         var lowerField = field.toLowerCase();
         this._validEntryFields[field] = isValid;
        }
    • summary
      Function to set whether a field in the view is valid and displayable.
    • description
      Function to set whether a field in the view is valid and displayable.
      This is needed for over-riding of the set* functions and customization of how data is displayed in the attach point.
      So if custom implementations use their own display logic, they can still enable the field.
    • return_summary
      Nothing.
  • dojox.atom.widget.FeedEntryViewer.isFieldValid

    • type
      Function
    • parameters:
      • field: (typeof string)
        The field name to get the valid parameter of.  Such as 'content', 'id', etc.
    • source: [view]
        return this._validEntryFields[field.toLowerCase()];
    • summary
      Function to return if a displayable field is valid or not
    • description
      Function to return if a displayable field is valid or not
    • return_summary
      boolean denoting if the field is valid and set.
  • dojox.atom.widget.FeedEntryViewer.getEntry

    • type
      Function
    • source: [view]
        return this._entry;
    • summary
  • dojox.atom.widget.FeedEntryViewer.getFeed

    • type
      Function
    • source: [view]
         return this._feed;
    • summary
  • dojox.atom.widget.FeedEntryViewer.destroy

    • type
      Function
    • source: [view]
        this.clear();
        dojo.forEach(this._subscriptions, dojo.unsubscribe);
    • summary
  • dojox.atom.widget.FeedEntryViewer._subscriptions

    • summary
  • dojox.atom.widget.FeedEntryViewer.displayOptions.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelTitle.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelAuthors.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelContributors.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelId.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.close.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelUpdated.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelSummary.innerHTML

    • summary
  • dojox.atom.widget.FeedEntryViewer.feedEntryCheckBoxLabelContent.innerHTML

    • summary
  • dojox.atom.widget.EntryHeader

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
      • dijit._Templated: (call)
      • dijit._Container: (call)
    • mixins:
      • dijit._Templated.prototype: (prototype)
      • dijit._Container.prototype: (prototype)
    • summary
      Widget representing a header in a FeedEntryViewer/Editor
    • description
      Widget representing a header in a FeedEntryViewer/Editor
  • dojox.atom.widget.EntryHeader.title

    • summary
  • dojox.atom.widget.EntryHeader.templateString

    • summary
  • dojox.atom.widget.EntryHeader.postCreate

    • type
      Function
    • source: [view]
        this.setListHeader();
    • summary
  • dojox.atom.widget.EntryHeader.setListHeader

    • type
      Function
    • parameters:
      • title: (typeof string)
    • source: [view]
        this.clear();
        if(title){
         this.title = title;
        }
        var textNode = document.createTextNode(this.title);
        this.entryHeaderNode.appendChild(textNode);
    • summary
  • dojox.atom.widget.EntryHeader.clear

    • type
      Function
    • source: [view]
        this.destroyDescendants();
         if(this.entryHeaderNode){
          for(var i = 0; i < this.entryHeaderNode.childNodes.length; i++){
           this.entryHeaderNode.removeChild(this.entryHeaderNode.childNodes[i]);
          }
         }
    • summary
  • dojox.atom.widget.EntryHeader.destroy

    • type
      Function
    • source: [view]
        this.clear();
    • summary
  • dojox.atom.widget

    • type
      Object
    • summary
  • dojox.atom

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary