|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap oracle.jbo.common.JboAbstractMap oracle.adf.model.binding.DCControlBinding oracle.jbo.uicli.binding.JUControlBinding oracle.jbo.uicli.binding.JUCtrlValueBinding oracle.jbo.uicli.binding.JUCtrlAttrsBinding oracle.jbo.uicli.binding.JUCtrlListBinding oracle.jbo.uicli.jui.JUSpinnerBinding
Implements binding for JSpinner control. JSpinner can be bound in the following ways:
Nested Class Summary | |
static class |
JUSpinnerBinding.JUSpinnerEditor
|
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
protected javax.swing.JComponent |
mEditor
|
protected javax.swing.SpinnerModel |
modelImpl
|
protected boolean |
mValueUpdating
|
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlListBinding |
DH_CONTROL_TYPE, DH_DISPLAY_HEIGHT, DH_DISPLAY_HINT, DH_DISPLAY_WIDTH, DH_FORMAT, DH_LABEL, DH_TOOLTIP, LIST_OPER_NAVIGATE, LIST_OPER_SET_ATTRIBUTE, LISTITEM_DisplayValues, LISTITEM_Index, LISTITEM_Prompt, LISTITEM_Selected, LISTITEM_SelectedIndex, mFirstDisplayAttr, mListAttrNames, mListDisplayAttrNames, mListIterBinding, mSingleAttrList, mStaticList, mValueList |
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding |
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_DISPLAY_HINT, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_TOOLTIP, ATTR_UPDATEABLE, mHasInputVal, mInputVal, SEP_LIST_DISPLAY |
Fields inherited from class oracle.adf.model.binding.DCControlBinding |
ATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, mInternalGet_KeyResolved, ROW_KEY_STR |
Constructor Summary | |
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
int listOperMode)
JUSpinnerBinding to be used in Navigation mode. |
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
JUIteratorBinding listRSI,
java.lang.String[] listAttrNames,
java.lang.String[] listDisplayedAttrNames)
Binds separate ViewObject/RowSets for display and updates to the same listbox. |
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
java.lang.Object[] valueList)
|
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
javax.swing.SpinnerDateModel sdm)
|
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
javax.swing.SpinnerDateModel sdm,
java.lang.String formatString)
|
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
javax.swing.SpinnerListModel slm)
|
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
javax.swing.SpinnerNumberModel snm)
|
|
JUSpinnerBinding(javax.swing.JSpinner control,
JUIteratorBinding iterBinding,
java.lang.String[] attrNames,
javax.swing.SpinnerNumberModel snm,
java.lang.String formatString)
|
Method Summary | |
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
static javax.swing.SpinnerModel |
createEnumerationBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
java.lang.Object[] values)
Use this method to bind a JSpinner control to a ViewObject/RowSet, identified by voInstanceName. |
static javax.swing.SpinnerModel |
createEnumerationBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
javax.swing.SpinnerDateModel sdm)
Use this method to bind a JSpinner control to a ViewObject/RowSet, identified by voInstanceName. |
static javax.swing.SpinnerModel |
createEnumerationBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
javax.swing.SpinnerListModel slm)
Use this method to bind a JSpinner control to a ViewObject/RowSet, identified by voInstanceName. |
static javax.swing.SpinnerModel |
createEnumerationBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
javax.swing.SpinnerNumberModel snm)
Use this method to bind a JSpinner control to a ViewObject/RowSet, identified by voInstanceName. |
static javax.swing.SpinnerModel |
createLovBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] attrNames,
java.lang.String listVOInstanceName)
Use this binding when the JSpinner control is used in LOV mode to update another attribute in a BC4J View Object. |
static javax.swing.SpinnerModel |
createLovBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] voAttrNames,
java.lang.String lovVOInstanceName,
java.lang.String[] lovVOAttrNames,
java.lang.String[] lovVODisplayedAttrNames)
Use this binding when two ViewObjects are to be used in this Spinner control: one for displaying of values and the other ViewObject whose rows are updated. |
static javax.swing.SpinnerModel |
createNavigationBinding(JUFormBinding formBinding,
javax.swing.JSpinner control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String[] voAttrNames)
Use this binding when the JSpinner control is used as a navigation control to iterate through a range of rows in a RowSet. |
java.lang.Object |
findMatchingListValue(java.lang.Object value)
|
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object. |
protected java.lang.String |
getDefaultDateFormatString()
|
protected java.lang.String |
getDefaultNumericFormatString()
|
protected javax.swing.SpinnerModel |
getModelImpl()
|
java.lang.Object |
getValueAt(int attrIndex)
Gets the value from the control for the attribute at the given index. |
protected boolean |
isViewInitialized()
|
void |
navigated(NavigationEvent event)
*** For internal framework use only *** |
protected void |
navigateTo(javax.swing.event.ChangeEvent e)
|
protected void |
navigateTo(int rangeIndex)
|
void |
refreshControl()
*** For internal framework use only *** |
void |
setControl(java.lang.Object control)
Sets the associated Swing control. |
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
|
protected void |
setupListItems(boolean clean,
boolean keepSelectedIndex)
If this list is displaying a single attribute and updates a single attribute, then this method fetches the attribute value from all the rows in the given LOV list iterator and sets that as the list of values to display in the bound control. |
void |
setValueAt(java.lang.Object value,
int attrIndex)
Updates the control/control-binding with the latest value of the attribute at the given index with the given value. |
protected void |
updateAttributeValue(java.lang.Object value)
|
protected void |
updateTargetFromSelectedValue(java.lang.Object val)
|
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
createAttributeBinding, setControlEnabled, updateNavigated, updateRangeScrolled, updateValuesFromRows |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.adf.model.binding.DCControlBinding |
addToDCExceptions, executeQuery, executeQueryIfNeeded, get, getAllRowsInRange, getApplicationModule, getBindingContainer, getControl, getCurrentRow, getDCIteratorBinding, getDef, getDefFullName, getDefName, getFullName, getLayoutObject, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, hashCode, internalSetName, needsEstimatedRowCount, removeFromDCExceptions, reportException, resetAttributeExceptionInRow, setBindingContainer, setName |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.jbo.StructureDef |
getDefFullName, getDefName, getFullName, getName |
Field Detail |
protected javax.swing.SpinnerModel modelImpl
protected boolean mValueUpdating
protected javax.swing.JComponent mEditor
Constructor Detail |
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, int listOperMode)
control
- The control instance which should be bound to a ViewObject's attribute.iterBinding
- iterator binding to usepublic JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, java.lang.Object[] valueList)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, javax.swing.SpinnerListModel slm)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, javax.swing.SpinnerDateModel sdm)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, javax.swing.SpinnerDateModel sdm, java.lang.String formatString)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, javax.swing.SpinnerNumberModel snm)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, javax.swing.SpinnerNumberModel snm, java.lang.String formatString)
public JUSpinnerBinding(javax.swing.JSpinner control, JUIteratorBinding iterBinding, java.lang.String[] attrNames, JUIteratorBinding listRSI, java.lang.String[] listAttrNames, java.lang.String[] listDisplayedAttrNames)
iterBinding
- Provides the RowSet in which the current row is updated
based on selection in the listbox.attrNames
- An ordered array of attribute names to update
in a ViewObject. This list should have the same number of attributes as
in listAttrNames which provides the corresponding attribute names from the
display ViewObject/RowSet.listAttrNames
- An ordered list of attribute names which are used to
get the values to update into the attributes from the attrNames list in the
target ViewObject. If this list is null, the attribute names for display
are set to the same as attrNames.Method Detail |
public java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
public static javax.swing.SpinnerModel createNavigationBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] voAttrNames)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read data in this given JUPanelBinding instance.
public static javax.swing.SpinnerModel createLovBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] attrNames, java.lang.String listVOInstanceName)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read/write data in this given JUPanelBinding instance.attrNames
- The name of the attribute of this ViewObject rows that contain data
to display/edit in the associated control.listVOInstanceName
- list View Object instance name
public static javax.swing.SpinnerModel createLovBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String[] voAttrNames, java.lang.String lovVOInstanceName, java.lang.String[] lovVOAttrNames, java.lang.String[] lovVODisplayedAttrNames)
public static javax.swing.SpinnerModel createEnumerationBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, java.lang.Object[] values)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read data in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject to updatevalues
- static list of values for the spinner
public static javax.swing.SpinnerModel createEnumerationBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, javax.swing.SpinnerListModel slm)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read data in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject to updateslm
- instance of SpinnerNumberModel which provides the range of value
for the spinner as well as the step size.
public static javax.swing.SpinnerModel createEnumerationBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, javax.swing.SpinnerDateModel sdm)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read data in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject to updatesdm
- instance of SpinnerDateModel which provides the range of value
for the spinner as well as the step size.
public static javax.swing.SpinnerModel createEnumerationBinding(JUFormBinding formBinding, javax.swing.JSpinner control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, javax.swing.SpinnerNumberModel snm)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- The control instance which should be bound to a ViewObject's attribute.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModule.voIterName
- Runtime instance name of the iterator in the ViewObject (optional).voIterBindingName
- Instance name of the iterator binding that uniquely identifies an
iterator binding object used to read data in this given JUPanelBinding instance.attrName
- The name of the attribute of this ViewObject to update
protected javax.swing.SpinnerModel getModelImpl()
public void refreshControl()
JUCtrlAttrsBinding
Updates the values in a control that is bound using an Iterator already in use. (a valid row iterator) If you do not call this method, your control won't update unless you refresh the Iterator.
refreshControl
in class JUCtrlAttrsBinding
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUCtrlListBinding
public void setControl(java.lang.Object control)
DCControlBinding
setControl
in class DCControlBinding
public java.lang.Object getValueAt(int attrIndex)
getValueAt
in class JUCtrlListBinding
public void setValueAt(java.lang.Object value, int attrIndex)
setValueAt
in class JUCtrlListBinding
public java.lang.Object findMatchingListValue(java.lang.Object value)
findMatchingListValue
in class JUCtrlListBinding
public void setDataValueAt(java.lang.Object value, int attrIndex)
setDataValueAt
in class JUCtrlListBinding
public void navigated(NavigationEvent event)
navigated
in interface RowSetListener
navigated
in class JUCtrlListBinding
protected boolean isViewInitialized()
isViewInitialized
in class JUCtrlListBinding
protected void setupListItems(boolean clean, boolean keepSelectedIndex)
JUCtrlListBinding
If this list is displaying multiple attributes and/or is used in navigation mode, then the valueList is set with the list of all rows from the LOV Iterator binding. In this case, this binding also listens to events from the RowSetIterator for row currency changes, new rows, etc.
setupListItems
in class JUCtrlListBinding
protected void updateAttributeValue(java.lang.Object value)
protected void updateTargetFromSelectedValue(java.lang.Object val)
updateTargetFromSelectedValue
in class JUCtrlListBinding
protected void navigateTo(javax.swing.event.ChangeEvent e)
protected void navigateTo(int rangeIndex)
protected java.lang.String getDefaultDateFormatString()
protected java.lang.String getDefaultNumericFormatString()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.