Class AbstractAppWidgetTransform

    • Constructor Detail

      • AbstractAppWidgetTransform

        public AbstractAppWidgetTransform()
    • Method Detail

      • renderShell

        public void renderShell​(MarkupOutput out)
        Overrides the default "shell" created when the transform is invoked. Ideally, it would be better if we could initialize this transform with a field that indicates whether the HTML shell is created or not. In this way, subclasses can merely override this property (perhaps in their constructor) and affect how the renderShell method is invoked. Alternatively, the renderShell can be structured as a Template method to allow subclasses to easily override those methods that they do not want called.
        renderShell in class AbstractAppTransform
        out - The MarkupOutput representing the generated content.
      • getChildWidget

        public Block getChildWidget​(WebBean bean,
                                    java.lang.String styleName)
      • getChildWidget

        public Block getChildWidget​(java.lang.String styleName)
      • getSelf

        public java.lang.Object getSelf​(java.lang.Object obj)
        Returns the input argument as return value. This method is used in layout when one base value needs to assign to another base value. For example, we have base "obj", then when the type of "obj" is a certain value, we would like base "obj2" equals to "obj". Then in layout we can have . After this, obj2 points to the same object as "obj" points to.
        obj - object to return
        Returns the input argument.
      • isNull

        public boolean isNull​(java.lang.Object obj)
        Returns whether the input argument is null.
        obj - The object to check again null
        true if the input is null, otherwise false is returned.
      • getCssName

        public java.lang.String getCssName​(WebObjectInfo object)
        Utility method that helps giving the CSS class to use based on the the object type of the WebObjectInfo instance.
        object - The WebObjectInfo for which it's image name is required.
        a String with the name of the CSS class that should be associated with the WebObjectInfo information to display. If the type specified does not match the predefined list of styles, then it returns an empty string.
      • includeOwnerInfo

        public boolean includeOwnerInfo()
      • includeTimeInfo

        public boolean includeTimeInfo()
      • isShowObjectTags

        public boolean isShowObjectTags()
      • includeAncestorInfo

        public boolean includeAncestorInfo()
      • includeFolderInfo

        public boolean includeFolderInfo()
      • inTreeStructure

        public boolean inTreeStructure()
      • getPreferenceValueReplaceNull

        public java.lang.String getPreferenceValueReplaceNull​(java.lang.String prefName,
                                                              java.lang.String nullReplace)
      • renderTest

        public void renderTest​(java.lang.String msg)
      • buildFlattenedExpression

        protected java.util.List<FlattenedTreeNode> buildFlattenedExpression​(WebExpression exp)
        get the answer expression tree and flatten it into a list
      • insertChildren

        protected void insertChildren​(MutableTreeNode treeNode)
      • getObjectInfoCssName

        public java.lang.String getObjectInfoCssName​(WebObjectInfo object)