|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 11g Release 2 (11.1.2.1.0) E17494-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.alm.connector.data.ContextMenuItem
public class ContextMenuItem
The ContextMenuItem
defines a context menu item shown in the context menu of the query
result table. ContextMenuItem can be defined declaratively in the tpc-config.xml in the connector
as follows,
Here<contextMenuDef> <menuItemDef label="${ctransBean.label}" enabled="${ctransBean.enabled}" listenerRef="ctransBean"/> </contextMenuDef>
ctransBean
is a managed bean defined and implemented in the connector and
registered in the tpc-config.xml.
For more detail, please see the tpc conenctor development guideline.
Field Summary | |
---|---|
static java.lang.String |
ATTR_ENABLED
|
static java.lang.String |
ATTR_LABEL
|
static java.lang.String |
ATTR_VISIBLE
|
static java.lang.String |
NAME
|
static ContextMenuItem |
SEPARATOR
|
Constructor Summary | |
---|---|
ContextMenuItem()
Constructor |
|
ContextMenuItem(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.Object |
getActionListener()
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
|
java.lang.String |
getName()
Return the name of the context menu item. |
void |
setActionListener(java.lang.Object listener)
Set the listener object on the context menu item, it is currently of type java.awt.ActionListener , |
void |
setName(java.lang.String name)
Set the name of the context menu item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTR_LABEL
public static final java.lang.String ATTR_ENABLED
public static final java.lang.String ATTR_VISIBLE
public static final java.lang.String NAME
public static final ContextMenuItem SEPARATOR
Constructor Detail |
---|
public ContextMenuItem()
public ContextMenuItem(java.lang.String name)
name
- The name of the context menu item.Method Detail |
---|
public void setName(java.lang.String name)
name
- the name of the context menu item.public java.lang.String getName()
public void setActionListener(java.lang.Object listener)
java.awt.ActionListener
,
listener
- The corresponding listener objectpublic java.lang.Object getActionListener()
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 11g Release 2 (11.1.2.1.0) E17494-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |