|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
oracle.jbo.common.JboAbstractMap
oracle.adf.model.binding.DCControlBinding
oracle.jbo.uicli.binding.JUControlBinding
oracle.jbo.uicli.binding.JUCtrlScrollBinding
oracle.jbo.uicli.jui.JUSliderBinding
public class JUSliderBinding
Implements binding a JSlider control with a BC4J RowSetIterator/ViewObject. This binding lets you use JSlider to navigate the current row in a RowSetIterator/ViewObject.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class oracle.jbo.uicli.binding.JUCtrlScrollBinding |
---|
mExt, mInited, mMax, mMin, mScrollCurrRow, mUseEstRC, mVal |
Fields inherited from class oracle.adf.model.binding.DCControlBinding |
---|
ATTR_CURRENTROW, ATTR_DEF, ATTR_ERROR, ATTR_ERRORS, ATTR_FULLNAME, ATTR_ITER, ATTR_NAME, DC_BINDING_ERROR, mAttributeListener, mInternalGet_KeyResolved, mPermission, mPermissionInfo, ROW_KEY_STR |
Fields inherited from class oracle.jbo.common.JboAbstractMap |
---|
MAP_NULL_VALUE |
Constructor Summary | |
---|---|
JUSliderBinding(javax.swing.JSlider sb,
JUIteratorBinding iterBinding,
boolean scrollCurrRow,
boolean deferAssignValues,
boolean useEstRC)
Binds a JSlider control to a BC4J ViewObject such that JSlider can be used to navigate rows in the ViewObject. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener x)
|
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
static javax.swing.BoundedRangeModel |
createViewBinding(JUPanelBinding formBinding,
javax.swing.JSlider control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
Binds a JSlider control to a BC4J ViewObject such that JSlider can be used to navigate rows in the ViewObject. |
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object. |
int |
getExtent()
|
static javax.swing.BoundedRangeModel |
getInstance(JUPanelBinding formBinding,
javax.swing.JSlider control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
boolean scrollCurrentRow,
boolean useEstRC)
Deprecated. since 9.0.2 use createViewBinding method instead. |
int |
getMaximum()
|
int |
getMinimum()
|
protected javax.swing.BoundedRangeModel |
getModelImpl(javax.swing.JSlider sb)
Registers the BoundedRangeModel that this binding works with. |
int |
getValue()
|
boolean |
getValueIsAdjusting()
|
protected void |
initFromRSI()
Sets the control values from the RowSetIterator that it is bound to. |
void |
iteratorChanged(java.lang.String rsiName,
NavigatableRowIterator rsi)
When the RowSetIterator that this control was working with via its associated IteratorBinding is changed, this method resets the current values and range that this control is working with to reflect the values from the new iterator. |
protected boolean |
needsEstimatedRowCount()
|
void |
removeChangeListener(javax.swing.event.ChangeListener x)
|
void |
setExtent(int newExtent)
|
void |
setMaximum(int newMaximum)
|
void |
setMinimum(int newMinimum)
|
void |
setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting)
|
void |
setRangeScrollValue(int val)
Sets the current value in the slider to the given value 'val'. |
void |
setRangeScrollValues(int val,
int ext,
int minVal,
int maxVal)
Sets the current values for this Slider. |
void |
setValue(int newValue)
|
void |
setValueIsAdjusting(boolean b)
|
void |
setValues(int val,
int ext,
int minVal,
int maxVal)
Sets the minimum and maximum values for the Slider. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
When the current value in the slider changes, this event handler method updates the associated ViewObject's currency. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlScrollBinding |
---|
assignValues, bindRowSetIterator, initResources, navigated, rangeRefreshed, rangeScrolled, refreshControl, release, resetInputState, rowDeleted, rowInserted, rowUpdated |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
---|
getCurrentRow, getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
---|
entrySet, equals, internalPut, put, setThrowIfPropertyNotFoundOnGet |
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 |
Constructor Detail |
---|
public JUSliderBinding(javax.swing.JSlider sb, JUIteratorBinding iterBinding, boolean scrollCurrRow, boolean deferAssignValues, boolean useEstRC)
sb
- JSlider control with which to bind a BC4J ViewObject.iterBinding
- An iterator Binding with which this control is associated.scrollCurrRow
- When true, scrolls the current row into the current range of the ViewObject.deferAssignValues
- When true, defers the assignement of JSlider values till the ViewObject query is executeduseEstRC
- When true, uses getEstimatedRowCount() to calculate the max value for the control.Method Detail |
---|
public java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
public static javax.swing.BoundedRangeModel createViewBinding(JUPanelBinding formBinding, javax.swing.JSlider control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, boolean scrollCurrentRow, boolean useEstRC)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- JSlider control with which to bind a BC4J ViewObject.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.scrollCurrentRow
- When true, scrolls the current row into the current range of the ViewObject.useEstRC
- When true, uses getEstimatedRowCount() to calculate the max value for the control.public static javax.swing.BoundedRangeModel getInstance(JUPanelBinding formBinding, javax.swing.JSlider control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, boolean scrollCurrentRow, boolean useEstRC)
protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JSlider sb)
public void setValues(int val, int ext, int minVal, int maxVal)
setValues
in class JUCtrlScrollBinding
val
- The current value which indicates the row index of the current row in the
current range.ext
- The extent value which is used by a control to scroll that many rows
up or down.minVal
- The minimum value that this control allows.maxVal
- The maximum value that this control allows.protected void initFromRSI()
initFromRSI
in class JUCtrlScrollBinding
public void setRangeScrollValue(int val)
setRangeScrollValue
in class JUCtrlScrollBinding
public void setRangeScrollValues(int val, int ext, int minVal, int maxVal)
setRangeScrollValues
in class JUCtrlScrollBinding
val
- The current value which indicates the row index of the current row in the
current range.ext
- The extent value which is used by a control to scroll that many rows
up or down.minVal
- The minimum value that this control allows.maxVal
- The maximum value that this control allows.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUControlBinding
public int getMinimum()
getMinimum
in interface javax.swing.BoundedRangeModel
public void setMinimum(int newMinimum)
setMinimum
in interface javax.swing.BoundedRangeModel
public int getMaximum()
getMaximum
in interface javax.swing.BoundedRangeModel
public void setMaximum(int newMaximum)
setMaximum
in interface javax.swing.BoundedRangeModel
public int getValue()
getValue
in interface javax.swing.BoundedRangeModel
public void setValue(int newValue)
setValue
in interface javax.swing.BoundedRangeModel
public void setValueIsAdjusting(boolean b)
setValueIsAdjusting
in interface javax.swing.BoundedRangeModel
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface javax.swing.BoundedRangeModel
public int getExtent()
getExtent
in interface javax.swing.BoundedRangeModel
public void setExtent(int newExtent)
setExtent
in interface javax.swing.BoundedRangeModel
public void setRangeProperties(int value, int extent, int min, int max, boolean adjusting)
setRangeProperties
in interface javax.swing.BoundedRangeModel
public void addChangeListener(javax.swing.event.ChangeListener x)
addChangeListener
in interface javax.swing.BoundedRangeModel
public void removeChangeListener(javax.swing.event.ChangeListener x)
removeChangeListener
in interface javax.swing.BoundedRangeModel
public void iteratorChanged(java.lang.String rsiName, NavigatableRowIterator rsi)
iteratorChanged
in interface JUIteratorChangedListener
rsiName
- Name of the JUIteratorBinding for which the RowSetIterator is changed.rsi
- The new RowSetIterator (could be null) to which an iterator binding should
be bound.protected boolean needsEstimatedRowCount()
needsEstimatedRowCount
in class JUCtrlScrollBinding
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |