|
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.JUCtrlValueBinding
oracle.jbo.uicli.binding.JUCtrlAttrsBinding
oracle.jbo.uicli.jui.JUProgressBarAttrBinding
public class JUProgressBarAttrBinding
Implements binding a JProgressBar control with a BC4J attribute.
This binding sets the minimum, maximum, and extent values of the ProgressBar and on change of currency in the associated rowset, displays the associated value by adjusting the ProgressBar 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 ProgressBar.
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.JUCtrlValueBinding |
---|
ATTR_ATTRIBUTE, ATTR_ATTRIBUTE_DEF, ATTR_ATTRIBUTE_DEFS, ATTR_ATTRIBUTE_VALUE, ATTR_ATTRIBUTE_VALUES, ATTR_ATTRIBUTES, ATTR_AUTOSUBMIT, ATTR_DISPLAY_HEIGHT, ATTR_DISPLAY_HINT, ATTR_DISPLAY_WIDTH, ATTR_FORMAT, ATTR_FORMATS, ATTR_HINTS, ATTR_INPUT_VALUE, ATTR_LABEL, ATTR_LABELS, ATTR_LABELSET, ATTR_MANDATORY, ATTR_PATH, ATTR_TOOLTIP, ATTR_UPDATEABLE, ATTR_VIEWABLE, DATACHANGE_EVENT_POLICY, GET_ALLOWS, mAttrs, 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, DC_BINDING_ERROR, mAttributeListener, mInternalGet_KeyResolved, mPermission, mPermissionInfo, ROW_KEY_STR |
Fields inherited from class oracle.jbo.common.JboAbstractMap |
---|
MAP_NULL_VALUE |
Constructor Summary | |
---|---|
JUProgressBarAttrBinding(javax.swing.JProgressBar control,
JUIteratorBinding iterBinding,
java.lang.String attrName,
int min,
int max)
Binds the given ProgressBar control to display and update values from the given attribute in a BC4J RowSet. |
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 |
createAttributeBinding(JUPanelBinding formBinding,
javax.swing.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
int min,
int max)
Creates a binding for the JProgressBar control. |
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.JProgressBar control,
java.lang.String voInstanceName,
java.lang.String voIterName,
java.lang.String voIterBindingName,
java.lang.String attrName,
int min,
int max)
Deprecated. since 9.0.2 use createAttributeBinding method instead. |
int |
getMaximum()
|
int |
getMinimum()
|
protected javax.swing.BoundedRangeModel |
getModelImpl(javax.swing.JProgressBar sb)
Registers the BoundedRangeModel that this binding works with. |
int |
getValue()
|
java.lang.Object |
getValueAt(int attrIndex)
Returns the current value indicated by the ProgressBar control. |
boolean |
getValueIsAdjusting()
|
protected boolean |
isControlQueriable()
Returns true, so that ProgressBar can participate in a query in the Find Mode of the containing panel. |
void |
removeChangeListener(javax.swing.event.ChangeListener x)
|
void |
setDataValueAt(java.lang.Object value,
int attrIndex)
Use this method to update the ProgressBar value, as well as the 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 JProgressBar control. |
void |
setValueIsAdjusting(boolean b)
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
Sets the BC4J attribute value as per the change in the JProgressBar current value. |
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlAttrsBinding |
---|
createAttributeBinding, refreshControl, setControlEnabled, toString, updateValuesFromRow, updateValuesFromRows |
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, 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 |
Methods inherited from interface oracle.adf.model.AttributeBinding |
---|
getErrors, getInputValue, getLabel, isUpdateable, processNewInputValue, setInputValue, validateInputValue |
Methods inherited from interface oracle.adf.model.ControlBinding |
---|
release, setListener |
Methods inherited from interface oracle.binding.ControlBinding |
---|
getName, getPath, release, resolvePath, setListener |
Methods inherited from interface oracle.jbo.StructureDef |
---|
getDefFullName, getDefName, getFullName, getName |
Constructor Detail |
---|
public JUProgressBarAttrBinding(javax.swing.JProgressBar control, JUIteratorBinding iterBinding, java.lang.String attrName, int min, int max)
control
- JProgressBar control to bind a BC4J attribute with.iterBinding
- Iterator binding that provides the RowSet with which this binding should work.attrName
- The attribute name in the RowSet with which this binding works.min
- Minimum value that the JSlider displays (what the starting value should be in
the JProgressBar control.max
- Maximum value that the JProgressBar displays (what the end value should be in the control).Method Detail |
---|
protected javax.swing.BoundedRangeModel getModelImpl(javax.swing.JProgressBar sb)
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUCtrlAttrsBinding
public java.lang.Object getValueAt(int attrIndex)
getValueAt
in class JUCtrlAttrsBinding
public void setValueAt(java.lang.Object value, int attrIndex)
setValueAt
in class JUCtrlAttrsBinding
protected boolean isControlQueriable()
An application could create a subclass of this binding object and return false from this method to prevent the associated control from participating in find mode. Additionally, a BC4J attribute itself can control whether that attribute can participate in Query or not. That property takes precedence over this method's return, if this method returns true. In other words, if this binding is bound to a CLOB attribute type and the attribute definition for that attribute indicates that it is not queriable, then the default behavior of JUPanelBinding in Find mode will be to disable this binding's control, even though this method returns true.
isControlQueriable
in class JUCtrlAttrsBinding
public void setDataValueAt(java.lang.Object value, int attrIndex)
setDataValueAt
in class JUCtrlAttrsBinding
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
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 java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
public static javax.swing.BoundedRangeModel createAttributeBinding(JUPanelBinding formBinding, javax.swing.JProgressBar control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max)
formBinding
- The containing JUPanelBinding in which the given iterator binding
would be found/created.control
- JProgressBar control to bind a BC4J attribute with.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.attrName
- The attribute name in the RowSet with which this binding works.min
- Minimum value that the JProgressBar displays (what the starting value should be in
the JSlider control).max
- Maximum value that the JProgressBar displays (what the end value should be in the control).public static javax.swing.BoundedRangeModel getInstance(JUPanelBinding formBinding, javax.swing.JProgressBar control, java.lang.String voInstanceName, java.lang.String voIterName, java.lang.String voIterBindingName, java.lang.String attrName, int min, int max)
|
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 |