JDeveloper SCM API

oracle.ide.scm
Class SCMControlItemObject

java.lang.Object
  |
  +--oracle.ide.scm.SCMControlItemObject
All Implemented Interfaces:
SCMControlItem

public class SCMControlItemObject
extends java.lang.Object
implements SCMControlItem

Control item implementation class.


Constructor Summary
SCMControlItemObject()
          Constructs a control item object with default field values.
 
Method Summary
 javax.swing.KeyStroke getAccelerator()
          Gets the keyboard accelerator, which can be a combination of keys, for invoking this control item.
 javax.swing.Icon getIcon()
          Gets the control item's icon.
 char getMnemonic()
          Gets the control item's mnemonic.
 java.lang.String getName()
          Gets the control item's name.
 boolean isContextItem()
          Gets the control item's context inclusion value.
 void setContextItem(boolean context)
          Sets the control item's context inclusion value.
 void setIcon(javax.swing.Icon icon)
          Sets the control item's icon.
 void setMnemonic(char mnemonic)
          Sets the control item's mnemonic.
 void setName(java.lang.String name)
          Sets the control item's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCMControlItemObject

public SCMControlItemObject()
Constructs a control item object with default field values.
Method Detail

getAccelerator

public final javax.swing.KeyStroke getAccelerator()
Deprecated.  

Description copied from interface: SCMControlItem
Gets the keyboard accelerator, which can be a combination of keys, for invoking this control item.
Specified by:
getAccelerator in interface SCMControlItem
Following copied from interface: oracle.ide.scm.SCMControlItem
Returns:
a keystroke representing the accelerator shortcut, or null.

setName

public void setName(java.lang.String name)
Sets the control item's name.
Parameters:
name - the name value.

setMnemonic

public void setMnemonic(char mnemonic)
Sets the control item's mnemonic.
Parameters:
mnemonic - the mnemonic value.

setIcon

public void setIcon(javax.swing.Icon icon)
Sets the control item's icon.
Parameters:
icon - the icon value.

setContextItem

public void setContextItem(boolean context)
Sets the control item's context inclusion value.
Parameters:
context - the context value.

getName

public java.lang.String getName()
Gets the control item's name.
Specified by:
getName in interface SCMControlItem
Returns:
the name value (by default a zero-length string, "").

getMnemonic

public char getMnemonic()
Gets the control item's mnemonic.
Specified by:
getMnemonic in interface SCMControlItem
Returns:
the mnemonic value (by default a null value character, '\0').

getIcon

public javax.swing.Icon getIcon()
Gets the control item's icon.
Specified by:
getIcon in interface SCMControlItem
Returns:
the icon value (null by default).

isContextItem

public boolean isContextItem()
Gets the control item's context inclusion value.
Specified by:
isContextItem in interface SCMControlItem
Returns:
the context value (true by default).

Copyright © 2002 Oracle Corporation