|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echoservlet.ui.ButtonRenderer
A utility for rendering buttons and toggle buttons.
| Field Summary | |
private java.lang.String |
id
|
private java.lang.String |
linkStyleName
|
private java.lang.String |
rolloverStyleName
|
private Element |
root
|
private java.lang.String |
scriptAction
|
private java.lang.String |
scriptRolloverEnter
|
private java.lang.String |
scriptRolloverExit
|
private java.lang.String |
styleName
|
private int |
subId
|
private java.lang.String |
toolTipText
|
| Constructor Summary | |
private |
ButtonRenderer(RenderingContext rc,
AbstractButtonUI buttonUI)
Creates a ButtonRenderer for the given Button. |
| Method Summary | |
private static void |
addAlignmentSettings(ComponentStyle style,
int horizontalAlignment,
int verticalAlignment)
Adds alignment (text-align/vertical-align) properties to a ComponentStyle. |
private void |
addRolloverEvents(Element e)
Adds MouseOver and MouseOut events that will trigger enabling/disabling rollover attributes on the element. |
private void |
addRolloverId(Element e)
Adds an Id attribute to the element if a rollover style exists, such that the elements class may be changed to the rollover style when necessary. |
private Element |
createLinkElement()
Creates a hyperlink element with the proper style and action. |
static Element |
getElement(RenderingContext rc,
AbstractButtonUI buttonUI)
Returns an Element containing an HTML representation of the provided button. |
private Element |
getRoot()
Returns the root element of the hierarchy of elements that will visually represent the button. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String id
private java.lang.String rolloverStyleName
private java.lang.String scriptAction
private java.lang.String scriptRolloverEnter
private java.lang.String scriptRolloverExit
private int subId
private java.lang.String styleName
private Element root
private java.lang.String linkStyleName
private java.lang.String toolTipText
| Constructor Detail |
private ButtonRenderer(RenderingContext rc,
AbstractButtonUI buttonUI)
rc - The RenderingContext that is rendering the
button.buttonUI - The peer of the button to be rendered.| Method Detail |
private static void addAlignmentSettings(ComponentStyle style,
int horizontalAlignment,
int verticalAlignment)
style - The style to which the properties are to be added.horizontalAlignment - The horizontal alignment setting desired
for the style, one of the following value:
verticalAlignment - The vertical alignment setting desired
for the style, one of the following value:
public static Element getElement(RenderingContext rc,
AbstractButtonUI buttonUI)
rc - The RenderingContext that is rendering the
button.buttonUI - The peer of the button to be rendered.
private void addRolloverEvents(Element e)
e - The Element to which rollover events will be added.private void addRolloverId(Element e)
e - The Element to which an Id attribute will be added.private Element createLinkElement()
private Element getRoot()
|
NextApp Echo App Container 1.0.5 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||