nl.gx.webmanager.cms.presentation
Interface Button

All Known Subinterfaces:
InternalButton

public interface Button

A Button can be in three states (normal, mouse over and mouse down). Each of these states may have an image associated with it.


Method Summary
 Image getDefaultImage()
          Return button image.
 java.lang.String getHtmlTag()
          Deprecated. generated html tag is not xhtml strict compliant, create tag from presentation JSP. Use the following JSP code to get the same result: ${downloadElement.name}
 java.lang.String getIdentifier()
          Return the name of the button.
 java.lang.String getJavascript()
          Deprecated. initMo statement selects element id with a # and this is not xhtml strict compliant. Create javascript in presentation JSP. See getHtmlTag().
 Image getMouseDownImage()
          Return the image that is used when the button is clicked.
 Image getMouseOverImage()
          Return the image that is used when the mouse hovers over the image.
 

Method Detail

getDefaultImage

Image getDefaultImage()
Return button image.

Returns:
button image.

getMouseOverImage

Image getMouseOverImage()
Return the image that is used when the mouse hovers over the image.

Returns:
the image that is used when the mouse hovers over the image.

getMouseDownImage

Image getMouseDownImage()
Return the image that is used when the button is clicked.

Returns:
the image that is used when the button is clicked.

getIdentifier

java.lang.String getIdentifier()
Return the name of the button.

Returns:
the name of the button.

getHtmlTag

@Deprecated
java.lang.String getHtmlTag()
Deprecated. generated html tag is not xhtml strict compliant, create tag from presentation JSP. Use the following JSP code to get the same result: ${downloadElement.name}

Return the html representation of this button.

Returns:
the html representation of this button.

getJavascript

@Deprecated
java.lang.String getJavascript()
Deprecated. initMo statement selects element id with a # and this is not xhtml strict compliant. Create javascript in presentation JSP. See getHtmlTag().

Return a javascript initMo statement to deal with the mouseovers.

Returns:
a javascript initMo statement to deal with the mouseovers


Copyright © 2007-2011 GX Software BV. All Rights Reserved.