Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.db
Class DBTypeDisplayRegistry

java.lang.Object
  extended by oracle.ide.db.DBTypeDisplayRegistry

public final class DBTypeDisplayRegistry
extends java.lang.Object

Registry for display information associated with the various DB types.

Since:
11.0

Nested Class Summary
static class DBTypeDisplayRegistry.FolderIcon
           
 
Field Summary
static java.lang.String CONNECTIONS_TYPE
          Dummy type string for the connection level.
 
Method Summary
static void addDBTypeRegistry(DBTypeDispayRegistryEntry registry)
           
static java.lang.String getDisplayName(java.lang.String type)
          Retrieves the display name for the specified type.
static javax.swing.Icon getFolderIcon(java.lang.String type)
          Retrieves the icon that should be used to represent folders grouping objects of the specified internal type.
static java.lang.String getNewMenuItemText(java.lang.String type)
          Retrieves the text used on the "New ..." menu item in the navigator context menu.
static javax.swing.Icon getNodeIcon(java.lang.String type)
          Retrieves the icon that should be used to represent objects of the specified internal type.
static java.lang.String getSingularDisplayName(java.lang.String type)
          Retrieves the singular display name for the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTIONS_TYPE

public static final java.lang.String CONNECTIONS_TYPE
Dummy type string for the connection level.

See Also:
Constant Field Values
Method Detail

addDBTypeRegistry

public static void addDBTypeRegistry(DBTypeDispayRegistryEntry registry)

getFolderIcon

public static javax.swing.Icon getFolderIcon(java.lang.String type)
Retrieves the icon that should be used to represent folders grouping objects of the specified internal type.

Parameters:
type - the internal object type
Returns:
the Icon for folders of the specified type

getNodeIcon

public static javax.swing.Icon getNodeIcon(java.lang.String type)
Retrieves the icon that should be used to represent objects of the specified internal type.

Parameters:
type - the internal object type
Returns:
the Icon for objects of the specified type

getDisplayName

public static java.lang.String getDisplayName(java.lang.String type)
Retrieves the display name for the specified type. The display name is used for folders of the specified type, as well as any other point that the internal typename needs to be displayed to the user. For example, the internal type 'TABLE' is mapped to the display name 'Tables'.

Parameters:
type - the internal object type
Returns:
the plural display name for the type

getSingularDisplayName

public static java.lang.String getSingularDisplayName(java.lang.String type)
Retrieves the singular display name for the specified type. The display name is used in the User Properties combo box, as well as any other point that a translated version of the internal typename needs to be displayed to the user in singular form. getDisplayName should be used when the plural of the name is required. For example, the internal type 'TABLE' is mapped to the display name 'Table'.

Parameters:
type - the internal object type
Returns:
the singular display name for the type

getNewMenuItemText

public static java.lang.String getNewMenuItemText(java.lang.String type)
Retrieves the text used on the "New ..." menu item in the navigator context menu.

Parameters:
type - the internal object type
Returns:
the text for the new menu item

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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