|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.PropertyEditorSupport oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor oracle.apps.fnd.applcore.dt.setid.piLayout.editor.AbstractLovEditor
public abstract class AbstractLovEditor
An abstract class to ease the burden of implementation of an LOV type property editor. NB this class has certain contractual conditions that are required to be met to ensure correct operation. This class also assumes that a database connection is used for data retrieval. The concrete constructor of this class must create assign tableModel a valid object.
Nested Class Summary | |
---|---|
protected class |
AbstractLovEditor.SearchRunnable
Inner class for implementing the thread for search processing. |
Field Summary | |
---|---|
protected oracle.bali.xml.model.metadata.PropertyEditorContext |
_propertyEditorContext
|
protected java.lang.String |
_textValue
|
protected java.lang.String |
_value
|
protected SearchField |
lovField
|
protected javax.swing.JLabel |
lovHintText
|
protected javax.swing.JScrollPane |
lovScrollPane
|
protected javax.swing.JPanel |
mainPanel
|
protected NiceTable |
table
|
protected oracle.apps.fnd.applcore.dt.setid.piLayout.editor.AbstractSQLTableModel |
tableModel
|
Fields inherited from class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor |
---|
mInspectable, mObj |
Constructor Summary | |
---|---|
AbstractLovEditor()
|
Method Summary | |
---|---|
void |
clearContext()
|
java.lang.String |
getAsText()
Retrieve the text version of the Value selected. |
java.awt.Component |
getCustomEditor()
Retrieve the custom editor component. |
protected abstract java.lang.String |
getDisplayTextFromValueQuery()
Helper method to provide a lookup query for the Display Text value given a selected Value. |
protected java.lang.String |
getLookup(java.lang.String value,
java.lang.String query)
Helper method used in conjunction with getDisplayTextFromValueQuery and getValueFromDisplayTextQuery to retrieve a lookup value. |
abstract java.lang.Object |
getValue()
The value selected. |
protected abstract java.lang.String |
getValueFromDisplayTextQuery()
Helper method to provide a lookup query for the selected Value given a selected Display Text value. |
void |
setAsText(java.lang.String string)
Set the text value of the value selected for this LOV. |
void |
setContext(oracle.bali.xml.model.metadata.PropertyEditorContext propertyEditorContext)
|
void |
setValue(java.lang.Object value)
Set the value selected for this LOV. |
boolean |
supportsCustomEditor()
Flag to indicate if a custom editor is provided. |
Methods inherited from class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor |
---|
createUniqueKey, getAttribute, getAttribute, getAttributeDef, getAttributes, getContext, getJboObject, getKey, getNode, getOwnerNode, getXmlContext, saveObject |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.PropertyEditor |
---|
addPropertyChangeListener, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener |
Field Detail |
---|
protected javax.swing.JPanel mainPanel
protected oracle.apps.fnd.applcore.dt.setid.piLayout.editor.AbstractSQLTableModel tableModel
protected NiceTable table
protected javax.swing.JLabel lovHintText
protected SearchField lovField
protected javax.swing.JScrollPane lovScrollPane
protected java.lang.String _value
protected java.lang.String _textValue
protected oracle.bali.xml.model.metadata.PropertyEditorContext _propertyEditorContext
Constructor Detail |
---|
public AbstractLovEditor()
Method Detail |
---|
protected abstract java.lang.String getDisplayTextFromValueQuery()
getLookup(java.lang.String, java.lang.String)
protected abstract java.lang.String getValueFromDisplayTextQuery()
getLookup(java.lang.String, java.lang.String)
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
value
- object passed into setValue.public void setAsText(java.lang.String string)
setAsText
in interface java.beans.PropertyEditor
setAsText
in class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor
string
- The text value
java.lang.IllegalArgumentException
protected java.lang.String getLookup(java.lang.String value, java.lang.String query)
value
- The value to use in the lookup query.query
- The query used for the lookup.
getDisplayTextFromValueQuery()
,
getValueFromDisplayTextQuery()
public abstract java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
getValue
in class java.beans.PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public void clearContext()
clearContext
in interface oracle.bali.xml.model.metadata.ContextualPropertyEditor
clearContext
in class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor
public void setContext(oracle.bali.xml.model.metadata.PropertyEditorContext propertyEditorContext)
setContext
in interface oracle.bali.xml.model.metadata.ContextualPropertyEditor
setContext
in class oracle.jbo.dt.jdevx.ui.xmlef.editors.StringPropertyEditor
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.5) E22562-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |