Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.dt.patterns.piLayout.gui
Class GenericAttributeValueItem

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.piLayout.gui.GenericAttributeValueItem
All Implemented Interfaces:
java.lang.Comparable, oracle.bali.xml.util.AttributeValueItem

public final class GenericAttributeValueItem
extends java.lang.Object
implements oracle.bali.xml.util.AttributeValueItem, java.lang.Comparable

Provides a generic immutable bean representing a single item to be used by XMLEF in a AttributeValueItemProvider.


Constructor Summary
GenericAttributeValueItem(java.lang.String value, java.lang.String displayText, javax.swing.Icon icon)
          Construct the class with all items.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare the two Items based on displayValue.
 java.lang.String getDisplayText()
          Get the display text.
 javax.swing.Icon getIcon()
          Get the icon.
 java.lang.String selectValue()
          Get the select value.
 java.lang.String toString()
          Get the string value, essentially selectValue().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericAttributeValueItem

public GenericAttributeValueItem(java.lang.String value,
                                 java.lang.String displayText,
                                 javax.swing.Icon icon)
Construct the class with all items.

Parameters:
value - internal value
displayText - displayed value
icon - icon - can be null
Method Detail

getDisplayText

public java.lang.String getDisplayText()
Get the display text.

Specified by:
getDisplayText in interface oracle.bali.xml.util.AttributeValueItem
Returns:
display text

getIcon

public javax.swing.Icon getIcon()
Get the icon.

Specified by:
getIcon in interface oracle.bali.xml.util.AttributeValueItem
Returns:
icon

selectValue

public java.lang.String selectValue()
                             throws java.beans.PropertyVetoException
Get the select value.

Specified by:
selectValue in interface oracle.bali.xml.util.AttributeValueItem
Returns:
select value
Throws:
java.beans.PropertyVetoException - if this value cannot be selected.

toString

public java.lang.String toString()
Get the string value, essentially selectValue().

Overrides:
toString in class java.lang.Object
Returns:
string representation of object

compareTo

public int compareTo(java.lang.Object o)
Compare the two Items based on displayValue.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o -
Returns:

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.