Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.1.0)
E17494-02

oracle.alm.connector.data
Class ContextMenuItem

java.lang.Object
  extended by oracle.alm.connector.data.ContextMenuItem

public class ContextMenuItem
extends java.lang.Object

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,

  <contextMenuDef>
      <menuItemDef label="${ctransBean.label}"
                      enabled="${ctransBean.enabled}"
                      listenerRef="ctransBean"/>
    </contextMenuDef>
 
Here 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.

Since:
11.1.1.2.0

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

ATTR_LABEL

public static final java.lang.String ATTR_LABEL
See Also:
Constant Field Values

ATTR_ENABLED

public static final java.lang.String ATTR_ENABLED
See Also:
Constant Field Values

ATTR_VISIBLE

public static final java.lang.String ATTR_VISIBLE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

SEPARATOR

public static final ContextMenuItem SEPARATOR
Constructor Detail

ContextMenuItem

public ContextMenuItem()
Constructor


ContextMenuItem

public ContextMenuItem(java.lang.String name)
Parameters:
name - The name of the context menu item.
Method Detail

setName

public void setName(java.lang.String name)
Set the name of the context menu item.

Parameters:
name - the name of the context menu item.

getName

public java.lang.String getName()
Return the name of the context menu item.

Returns:
the name of the context menu item.

setActionListener

public void setActionListener(java.lang.Object listener)
Set the listener object on the context menu item, it is currently of type java.awt.ActionListener,

Parameters:
listener - The corresponding listener object

getActionListener

public java.lang.Object getActionListener()
Returns:
the action listener object for current context menu item.

getAttributes

public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns:
attribute name/value map set on current context menu item.

Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center
11g Release 2 (11.1.2.1.0)
E17494-02

Copyright © 1998,2011, Oracle. All rights reserved.