|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
see <w:PopupMenu/>
Bindings | |||
---|---|---|---|
menuId
*
|
The menuId is used to associate the current PopupMenuLink and its corresponding PopupMenu. You must avoid name collisions with other menus (especially menus you import into your application via reusable components). One way to do this is to get an elementId from the requestContext and use this for both the PopupMenuLink and the PopupMenu. Note that a single PopupMenu may be shared by many PopupMenuLinks -- all those links will have the same id as their shared PopupMenu. |
String (get) |
|
index
|
If you are generating PopupMenu/Links in a repetition, each iteration will require a different menuId. The index binding makes this easy as you can provide a static menuId and pass the index from the repetition and let PopupMenu/Link do the concatenation for you (in a more efficient way, as well). |
int (get) |
|
actionSetup
|
When a PopupMenu is shared by many PopupMenuLinks, the actions of the PopupMenuItems may be ambiguous -- you need to know which link was clicked in order to know what to do. When you click a PopupMenuLink, its id is passed into the server (along with the id of the PopupMenuItem) and this binding will be evaluated in your component. So you should bind a method that returns null to this bindings and, in that method, stash away some state information (such as the current object in a repetition) which can be used by the PopupMenuItem's action. Note that, if this binding is being employed, you MUST place the PopupMenu after all occurrences of the corresponding PopupMenuLinks. This is because actionSetup must occur before the action itself fires, and the action is always bound to a PopupMeuItem within the PopupMenu. |
void (get) |
|
title
|
The tooltip for this PopupMenuLink; displays when you hover over the link itself. |
String (get) |
|
omitTags
|
If you need to disable the link, pass true to omitTags. The content of the link (ie text or images) will still display, but will not be (or appear to be) clickable. |
boolean (get) |
|
tagName
|
A PopupMenuLink can be any kind of container tag. By default,
it is a |
String (get) |
|
containerStyle
|
Note: This is ignored at the present time. Former usage: The container tag for the PopupMenuLink has no "class" assigned to it, but you can provide style attributes for this container via this binding. |
String (get) |
|
style
|
The style for the |
String (get) |
|
class
|
Although you cannot provide a "class" for the container, you can provide
one for the |
String (get) |
|
onMouseOver
|
By default, this component does no mouseOver behavior. You can add this via these bindings. [Please refrain from using these as we will probably want to usurp them in the future.] |
String (get) |
|
onMouseOut
|
see onMouseOver (above) |
String (get) |
|
position
|
Tells the menu link where to position the PopupMenu itself. By default, the PopupMenu appears under the cursor at its upper left. To simulate a Windows ComboBox control, we allow you to specify an html element under which the PopupMenu will appear. If so, the upper-left corner fo the PopupMenu will be positioned at the lower left corner of the element in question. If you want to align the PopupMenu right, specify 'right' as position. |
String (get) |
|
shouldOpen
|
Tells weather the popup menu has to be open by default when displayed. |
boolean (get) |
|
behavior
|
Override the default behavior (opening the popup menu). |
String (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.widgets.PopupMenuLink
public final class PopupMenuLink
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
PopupMenuLink()
|
Method Summary | |
---|---|
boolean |
isSender()
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preserved with the page/session (i.e. |
AWEncodedString |
menuId()
|
boolean |
omitTags()
|
java.lang.String |
onClickString()
|
java.lang.String |
onKeyDownString()
|
java.lang.String |
position()
|
java.lang.String[] |
supportedBindingNames()
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public AWEncodedString _elementId
public AWBinding _menuIdBinding
public AWBinding _indexBinding
public AWBinding _positionBinding
public AWBinding _actionSetupBinding
public AWBinding _classBinding
public AWBinding _styleBinding
public AWBinding _onMouseOverBinding
public AWBinding _onMouseOutBinding
public AWBinding _omitTagsBinding
public AWBinding _titleBinding
Constructor Detail |
---|
public PopupMenuLink()
Method Detail |
---|
public java.lang.String[] supportedBindingNames()
supportedBindingNames
in class AWComponent
public boolean isStateless()
AWComponent
isStateless
in class AWComponent
public java.lang.String onClickString()
public java.lang.String onKeyDownString()
public AWEncodedString menuId()
public java.lang.String position()
public boolean isSender()
public boolean omitTags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |