cancel
Showing results for 
Search instead for 
Did you mean: 

Using the method setIcon of IWDConfirmationDialog

Former Member
0 Kudos

Hello all,

I created a confirmation dialog with IWDConfirmationDialog and I wanted to add an icon with the method setIcon:

dialog.setIcon("@1B@")

For some reason, the icon can't be seen.

Has anyone here used this method ?

Thanks so much.

Ruthie.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
  /**
   * Method setIcon - this method sets an icon to the confirmation dialog. Only absolute urls are expected @see com.sap.tc.webdynpro.services.sal.url.api.IWDURLGenerator for details. 
   * @param icon - the absolute url for the icon
   */
  public void setIcon(String icon);

The shortcuts like "@1B@" are not supported in Web Dynpro Java. If you want to use a SAP icon, have a look at the following method in IWDURLGenerator:


  /**
   * @see com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator#getSAPIconWebResourcePath(String)
   */  
  public String getSAPIconWebResourcePath(String iconName);

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Armin,

The method getSAPIconWebResourcePath of IWDURLGenerator

is used as:

public java.lang.String getSAPIconsWebResourcePath()

so how do I use if for a specific icon ?

Thanks so much.

Ruthie.