Class ShortcutDefault

  • All Implemented Interfaces:
    GuiElement, ShortcutElement
    Direct Known Subclasses:
    ShortcutPickerOption

    public class ShortcutDefault
    extends AbstractShortcut
    This class renders a default shortcut, that is when no type has been specified. It uses the following:

    If imgage and link have been specified:

     <a><img src  ...attributes... /></a>
     
    If no link has been defined but we have image:
     <img  title=text ...attributes... />
     
    If link is available but no imgage and no extended attributes:
     <a>text</a>
     
    If link and extended attributes are available, but no image:
     <a><span ...attributes... >text</span></a>
     
    When no link, image or attributes are available:
     <a>text</a>
     
    Since:
    MicroStrategy Web 8.0.0
    • Constructor Detail

      • ShortcutDefault

        public ShortcutDefault()
    • Method Detail

      • renderElement

        public boolean renderElement​(MarkupOutput out)
        Render the instance according to the information provided on its configuration.
        Specified by:
        renderElement in interface GuiElement
        Overrides:
        renderElement in class AbstractGuiElement
        Parameters:
        out - MarkupOutput instance where the HTML information to display to the user is to be saved.
        Returns:
        MarkupOutput instance initialized with the HTML information to display to the user.