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

E17493-02

oracle.ide.inspector
Class DisplayValues

java.lang.Object
  extended by oracle.ide.inspector.DisplayValues

public final class DisplayValues
extends java.lang.Object

Understands utility methods related to "display values" for a particular inline editor in the Property Inspector.


Field Summary
static int MAX_DISPLAY_VALUE_LENGTH_DEFAULT
           
static java.lang.String MAX_DISPLAY_VALUE_LENGTH_KEY
           
static int TRUNC_DISPLAY_VALUE_LENGTH_DEFAULT
           
static java.lang.String TRUNC_DISPLAY_VALUE_LENGTH_KEY
           
 
Method Summary
static java.lang.String displayValue(PropertyInfo property)
          Returns the display value of the given property.
static void showDisplayValueInInlineEditor(java.awt.Component inlineEditor, PropertyInfo property)
          Shows the display value of the given property in the given inline editor.
static java.awt.Component truncateDisplayValue(java.awt.Component inlineEditor, PropertyInfo property)
          Prepares the display value of the given property for display in the given inline editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DISPLAY_VALUE_LENGTH_KEY

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

TRUNC_DISPLAY_VALUE_LENGTH_KEY

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

MAX_DISPLAY_VALUE_LENGTH_DEFAULT

public static final int MAX_DISPLAY_VALUE_LENGTH_DEFAULT
See Also:
Constant Field Values

TRUNC_DISPLAY_VALUE_LENGTH_DEFAULT

public static final int TRUNC_DISPLAY_VALUE_LENGTH_DEFAULT
See Also:
Constant Field Values
Method Detail

displayValue

public static java.lang.String displayValue(PropertyInfo property)
Returns the display value of the given property.

Parameters:
property - the given property.
Returns:
the display value of the given property.

showDisplayValueInInlineEditor

public static void showDisplayValueInInlineEditor(java.awt.Component inlineEditor,
                                                  PropertyInfo property)
Shows the display value of the given property in the given inline editor. This method will simply return if the inline editor is not a JTextField or if the property does not have a display value.

Parameters:
inlineEditor - the given inline editor.
property - the given property.

truncateDisplayValue

public static java.awt.Component truncateDisplayValue(java.awt.Component inlineEditor,
                                                      PropertyInfo property)
Prepares the display value of the given property for display in the given inline editor. If the length of the display value exceeds the maximum display value length (as retrieved from the system properties with a key of oracle.ide.inspector.maxDisplayValueLength; default is 300) it will be truncated to a predetermined length (as retrieved from the system properties with a key of oracle.ide.inspector.truncDisplayValueLength; default is 50).

Parameters:
inlineEditor -
property -
Returns:

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.