Class CmsModelPageTreeItem

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsListItem
org.opencms.gwt.client.ui.tree.CmsTreeItem
org.opencms.ade.sitemap.client.CmsModelPageTreeItem
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, I_CmsDraggable, I_CmsListItem, I_CmsTruncable

public class CmsModelPageTreeItem extends CmsTreeItem
Tree item for the model page editor mode.

  • Constructor Details

    • CmsModelPageTreeItem

      public CmsModelPageTreeItem(boolean isModelGroup, String title, String subTitle)
      Creates the fake model page tree item used as a root for the tree view.

      Parameters:
      isModelGroup - in case of a model group page
      title - the title
      subTitle - the sub title
    • CmsModelPageTreeItem

      public CmsModelPageTreeItem(org.opencms.ade.sitemap.shared.CmsModelPageEntry modelpage, boolean isModelGroup, boolean isParentModel)
      Constructor.

      Parameters:
      modelpage - the model page
      isModelGroup - in case of a model group page
      isParentModel - the parent model flag
  • Method Details

    • createRootItem

      public static CmsModelPageTreeItem createRootItem(boolean isModelGroup, String title, String subTitle)
      Creates the fake model page tree item used as a root for the tree view.

      Parameters:
      isModelGroup - in case of a model group page
      title - the title
      subTitle - the sub title
      Returns:
      the root tree item
    • getEntryId

      public org.opencms.util.CmsUUID getEntryId()
      Returns the folder entry id.

      Returns:
      the folder entry id
    • getSitePath

      public String getSitePath()
      Returns the site path.

      Returns:
      the site path
    • isDisabled

      public boolean isDisabled()
      Returns if the model page entry is disabled.

      Returns:
      true if the model page entry is disabled
    • isModelGroup

      public boolean isModelGroup()
      Returns whether the entry represents a model group page.

      Returns:
      true if the entry represents a model group page
    • isParentModel

      public boolean isParentModel()
      Returns if this model page entry is inherited from the parent configuration.

      Returns:
      true if this model page entry is inherited from the parent configuration
    • setDisabled

      public void setDisabled(boolean disabled)
      Sets the model page entry disabled.

      Parameters:
      disabled - true to disable
    • updateSitePath

      public void updateSitePath(String sitePath)
      Updates the site path info.

      Parameters:
      sitePath - the new site path