|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.uicli.binding.JUControlBinding | +--oracle.jbo.uicli.binding.JUCtrlValueBinding | +--oracle.jbo.uicli.binding.JUCtrlAttrsBinding | +--oracle.jbo.uicli.jui.JUScrollBarAttrBinding
Implements binding a JScrollBar control with a BC4J Attribute
This binding sets the minimum, maximum and the extent values of the ScrollBar and on change of currency in the associated rowset, displays the associated value by adjusting the ScrollBar between the minimum and maximum values. Note that the minimum and maximum values should be provided such that all possible values of the associated attribute in a RowSet can be displayed in the ScrollBar.
Constructor Summary |
JUScrollBarAttrBinding(javax.swing.JScrollBar control,
JUIteratorBinding iterBinding,
java.lang.String attrName,
int min,
int max,
int ext)
Binds the given ScrollBar control to display and update values from the given attribute in a BC4J RowSet. |
Method Summary |
Type | Method |
---|---|
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 *** |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Sets the BC4J attribute value as per the change in the JScrollBar current value. |
static javax.swing.BoundedRangeModel |
createAttributeBinding(JUFormBinding formBinding,
javax.swing.JScrollBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
int min,
int max,
int ext)
Creates a binding for the JScrollBar control. |
int |
getExtent()
|
static javax.swing.BoundedRangeModel |
getInstance(JUFormBinding formBinding,
javax.swing.JScrollBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
int min,
int max,
int ext)
Deprecated. since 9.0.2 use createAttributeBinding method instead. |
int |
getMaximum()
|
int |
getMinimum()
|
protected javax.swing.BoundedRangeModel |
getModelImpl(javax.swing.JScrollBar sb)
Registers the BoundedRangeModel that this binding works with. |
int |
getValue()
|
java.lang.Object |
getValueAt(int attrIndex)
Returns the current value indicated by the JScrollBar control. |
boolean |
getValueIsAdjusting()
|
void |
removeChangeListener(javax.swing.event.ChangeListener x)
|
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
Use this method to update the ScrollBar value as well as value in the associated BC4J attribute. |
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 |
setValue(int newValue)
|
void |
setValueAt(java.lang.Object value,
int attrIndex)
Sets the current value in the JScrollBar control. |
void |
setValueIsAdjusting(boolean b)
|
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
updateNavigated, updateRangeScrolled,
updateValuesFromRow, updateValuesFromRows |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
executeQuery, executeQueryIfNeeded, getAllRowsInRange,
getApplicationModule, getControl, getCurrentRow,
getDef, getFormBinding, getIteratorBinding,
getLayoutObject, getName, getRowAtRangeIndex,
getRowIterator, getTransaction, getViewObject,
isControlQueriable, reportException, setFormBinding,
setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JUScrollBarAttrBinding(javax.swing.JScrollBar control, JUIteratorBinding iterBinding, java.lang.String attrName, int min, int max, int ext)
control
- JScrollBar control to bind a BC4J attribute with.iterBinding
- Iterator binding that provides the RowSet which this binding should work with.attrName
- The attribute name in
the RowSet which this binding works with.min
- Minimum value that the JScrollBar displays (what the starting value should be in
the JScrollBar control.max
- Maximum value that the JScrollBar displays (what the end value should be in the control).ext
- Determines the Extent value for the JScrollBar control.Method Detail |
protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JScrollBar sb)
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUControlBinding
public java.lang.Object getValueAt(int attrIndex)
getValueAt
in class JUCtrlAttrsBinding
public void setValueAt(java.lang.Object value, int attrIndex)
setValueAt
in class JUCtrlAttrsBinding
public void setDataValueAt(java.lang.Object value, int attrIndex)
setDataValueAt
in class JUCtrlAttrsBinding
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
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 static javax.swing.BoundedRangeModel createAttributeBinding(JUFormBinding formBinding, javax.swing.JScrollBar control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max, int ext)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- JScrollBar control to bind a BC4J attribute with.voInstanceName
- Name of the instance of the ViewObject in a BC4J ApplicationModulevoIterName
- Runtime instance name of the
iterator in the ViewObject (optional)voIterBindingName
- Instance name of the iterator binding that uniquely identifies anattrName
- The attribute name in the RowSet which this binding works with.min
- Minimum
value that the JScrollBar displays (what the starting value should be in
the JScrollBar control.max
- Maximum value that the JScrollBar displays (what the end value should be in the control).ext
- Determines the Extent value for the JScrollBar control.public static javax.swing.BoundedRangeModel getInstance(JUFormBinding formBinding, javax.swing.JScrollBar control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max, int ext)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |