com.sapportals.htmlb

Class PopupTrigger

java.lang.Object
  extended bycom.sapportals.htmlb.Component
      extended bycom.sapportals.htmlb.PopupTrigger

public class PopupTrigger
extends Component


Field Summary
static String UI_ID
           
 
Constructor Summary
PopupTrigger(String id, HoverMenu menu)
          Construct object of class PopupTrigger.
PopupTrigger(String id, String tooltip, Component content, HoverMenu menu)
          Construct object of class PopupTrigger.
 
Method Summary
 Component getContent()
          returns the contained component of the popup trigger
 HoverMenu getMenu()
          returns the menu used for the popup trigger
 String getTooltip()
          returns the tooltip for the popup trigger
 String getUI()
          get a identification String for the renderer that is unique across all supported components.
 boolean isInteractive()
          returns if the popup trigger is interactive.
 void setContent(Component content)
          assigns a component to the popup trigger
 void setInteractive(boolean interactive)
          determins if the popuptrigger is interactive.Is the popuptrigger interactive, the icon besides the popuptrigger is displayed whenever the mouse moves over the popup trigger.
 void setMenu(HoverMenu menu)
          sets the menu for the popup trigger
 void setTooltip(String tooltip)
          sets the tooltip for the popup trigger
 
Methods inherited from class com.sapportals.htmlb.Component
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_ID

public static final String UI_ID
See Also:
Constant Field Values
Constructor Detail

PopupTrigger

public PopupTrigger(String id,
                    HoverMenu menu)
Construct object of class PopupTrigger.

Parameters:
id - the id of the popup trigger
menu - the menu used in the popuptrigger

PopupTrigger

public PopupTrigger(String id,
                    String tooltip,
                    Component content,
                    HoverMenu menu)
Construct object of class PopupTrigger.

Parameters:
id - the id of the popup trigger
tooltip - the tooltip for the popup trigger
content - the component contained in the popuptrigger
menu - the menu used in the popuptrigger
Method Detail

getUI

public String getUI()
Description copied from class: Component
get a identification String for the renderer that is unique across all supported components. E.g. you could simply return the class name of the component class. The reason for using a separate method and not some internal reflection method is that you can more easily extend the functionality or your Component class without having to rewrite the view class.

Specified by:
getUI in class Component
Returns:
a unique identification string for this Component

getTooltip

public String getTooltip()
returns the tooltip for the popup trigger


setTooltip

public void setTooltip(String tooltip)
sets the tooltip for the popup trigger


getContent

public Component getContent()
returns the contained component of the popup trigger


setContent

public void setContent(Component content)
assigns a component to the popup trigger


getMenu

public HoverMenu getMenu()
returns the menu used for the popup trigger


setMenu

public void setMenu(HoverMenu menu)
sets the menu for the popup trigger


isInteractive

public boolean isInteractive()
returns if the popup trigger is interactive. Is the popuptrigger interactive, the icon besides the popuptrigger is displayed whenever the mouse moves over the popup trigger. Otherwise the icon is visible contantly


setInteractive

public void setInteractive(boolean interactive)
determins if the popuptrigger is interactive.Is the popuptrigger interactive, the icon besides the popuptrigger is displayed whenever the mouse moves over the popup trigger. Otherwise the icon is visible contantly



Copyright 2006 SAP AG Complete Copyright Notice