|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
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
public abstract class DCControlBinding
The base class for all binding objects in the ADF framework that bind a View control/model to an object or an attribute of an object in a DataControl. This class manages:
This class also implements helper methods to access DataProvider objects like the DataProvider object itself, the current Application Module, the ViewObject or the DataProvider object that this control binding is working with, the current RowIterator, the current Row in the iterator that this control binding is associated with.
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 | |
---|---|
static java.lang.String |
ATTR_CURRENTROW |
static java.lang.String |
ATTR_DEF |
static java.lang.String |
ATTR_ERROR |
static java.lang.String |
ATTR_ERRORS |
static java.lang.String |
ATTR_FULLNAME |
static java.lang.String |
ATTR_ITER |
static java.lang.String |
ATTR_NAME |
static java.lang.String |
DC_BINDING_ERROR |
protected java.lang.Object |
mAttributeListener |
protected boolean |
mInternalGet_KeyResolved |
protected DCPermission |
mPermission |
protected PermissionInfo |
mPermissionInfo |
static java.lang.String |
ROW_KEY_STR |
Fields inherited from class oracle.jbo.common.JboAbstractMap |
---|
MAP_NULL_VALUE |
Constructor Summary | |
---|---|
protected |
DCControlBinding() |
|
DCControlBinding(java.lang.Object control, DCIteratorBinding iterBinding) Constructor used in the framework to pass in the Swing control and the Iterator Binding with which this binding object works to get it's data. |
Method Summary | |
---|---|
protected void |
addToDCExceptions(JboException e) |
protected void |
clearAttrDefs() |
protected boolean |
evaluateBooleanExpression(java.lang.String expr) |
void |
executeQuery() Calls DCIteratorBinding.executeQuery which in turn executes the query to repopulate the rows for the RowSet with which this control is working. |
void |
executeQueryIfNeeded() Calls DCIteratorBinding.executeQueryIfNeeded which in turn executes the query to repopulate the rows for the RowSet with which this control is working, if it is not already executed. |
java.lang.Object |
get(java.lang.Object keyObj) |
Row[] |
getAllRowsInRange() Returns the rows in current range in the RowIterator with which this control binding is working. |
ApplicationModule |
getApplicationModule() Returns the Application Module to which this control's ViewObject belongs. |
protected UpdateListener |
getAttributeListener() |
DCBindingContainer |
getBindingContainer() Returns the form binding object that this control binding is part of. |
java.lang.Object |
getControl() Gets the associated View (Swing) control. |
java.lang.Object |
getControlModel(java.lang.Object control) Gets the associated View's model object. |
Row |
getCurrentRow() Returns the current row for which this control is displaying data. |
DCIteratorBinding |
getDCIteratorBinding() Returns the iterator binding with which this control binding is associated to get it's data. |
DCControlBindingDef |
getDef() |
java.lang.String |
getDefFullName() |
java.lang.String |
getDefName() |
protected JboException |
getError() Primarily for spel support. |
protected java.util.List |
getErrors() Primarily for spel support. |
java.lang.String |
getFullName() |
java.lang.Object |
getLayoutObject() |
java.lang.String |
getName() |
DCPermission |
getPermission() |
PermissionInfo |
getPermissionInfo() |
java.lang.String |
getPermissionTargetName() |
Row |
getRowAtRangeIndex(int rangeIndex) Returns the row of given range index. |
RowIterator |
getRowIterator() To be used by subclasses to get to the RowIterator if needed. |
java.lang.Object |
getState() In the process of re-creating a binding container. |
Transaction |
getTransaction() Returns the Transaction object for the current BC4J session. |
protected java.lang.String |
getViewableExpr() |
ViewObject |
getViewObject() Returns the ViewObject for which this control is displaying data. |
int |
hashCode() |
protected abstract void |
initResources() Invoked when the bindingContainer is being initialized for the first time or after it's locale is changed. |
protected java.lang.Object |
internalGet(java.lang.String key) Subclasses should override this to handle a specific key. |
protected boolean |
internalHasPermission(java.lang.String action) |
protected boolean |
internalHasPermission(java.lang.String target, java.lang.String action) |
protected void |
internalSetName(java.lang.String name) |
protected boolean |
isControlQueriable() Returns true if this control can participate in find form. |
protected boolean |
isControlViewable() |
boolean |
isReleased() Return true if this binding has been detached from the bindingContainer and thereby is considered released and not usable anymore. |
protected boolean |
needsEstimatedRowCount() |
protected void |
processInputException(ValidationException vex) |
abstract void |
refreshControl() Updates the values in a control that is bound using an Iterator already in use. |
void |
release() |
protected void |
release(int flags) |
protected void |
removeFromDCExceptions() |
void |
reportException(java.lang.Exception ex) Report the given exception via the containing BindingContainer object. |
protected void |
resetAttributeExceptionInRow(Row row, AttributeDef def, AttrValException ave) |
protected abstract void |
resetInputState() Resets any exceptions and client-side values that this binding may hold. |
void |
restoreFromState(java.lang.Object state) Initialize binding instance with value from state object |
void |
setBindingContainer(DCBindingContainer formBnd) |
void |
setControl(java.lang.Object control) Sets the associated Swing control. |
protected void |
setDataControlPinned(boolean flag) Advanced for internal usage only |
protected void |
setDef(DCControlBindingDef controlDef) |
protected void |
setIteratorBinding(DCIteratorBinding iterBinding) Internal method, don't use. |
void |
setListener(UpdateListener listener) |
void |
setListener(UpdateListener listener) |
void |
setName(java.lang.String name) |
protected void |
setViewableExpr(java.lang.String str) |
java.lang.String |
toString() |
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 |
Field Detail |
---|
protected java.lang.Object mAttributeListener
protected PermissionInfo mPermissionInfo
protected DCPermission mPermission
public static final java.lang.String DC_BINDING_ERROR
public static final java.lang.String ROW_KEY_STR
public static final java.lang.String ATTR_ITER
public static final java.lang.String ATTR_DEF
public static final java.lang.String ATTR_ERROR
public static final java.lang.String ATTR_ERRORS
public static final java.lang.String ATTR_FULLNAME
public static final java.lang.String ATTR_NAME
public static final java.lang.String ATTR_CURRENTROW
protected boolean mInternalGet_KeyResolved
Constructor Detail |
---|
protected DCControlBinding()
public DCControlBinding(java.lang.Object control, DCIteratorBinding iterBinding)
Method Detail |
---|
public final java.lang.String getName()
protected void internalSetName(java.lang.String name)
protected void setIteratorBinding(DCIteratorBinding iterBinding)
iterBinding
-public void setName(java.lang.String name)
public final java.lang.String getFullName()
public java.lang.String getDefName()
public java.lang.String getDefFullName()
public void reportException(java.lang.Exception ex)
public final DCBindingContainer getBindingContainer()
public void setBindingContainer(DCBindingContainer formBnd)
public final DCControlBindingDef getDef()
protected void setDef(DCControlBindingDef controlDef)
protected java.lang.String getViewableExpr()
protected void setViewableExpr(java.lang.String str)
public final DCIteratorBinding getDCIteratorBinding()
public Transaction getTransaction()
public ApplicationModule getApplicationModule()
public ViewObject getViewObject()
public void executeQuery()
public void executeQueryIfNeeded()
public Row getCurrentRow()
public RowIterator getRowIterator()
public Row getRowAtRangeIndex(int rangeIndex)
rangeIndex
- range index of the row.public Row[] getAllRowsInRange()
public java.lang.Object getControl()
public java.lang.Object getControlModel(java.lang.Object control)
This method is primarily for use by the generated binding calls so that it returns a proper 'typed' model object for that binding type and control combination.
public void setControl(java.lang.Object control)
public java.lang.Object getLayoutObject()
protected boolean isControlQueriable()
protected final boolean isControlViewable()
protected boolean evaluateBooleanExpression(java.lang.String expr)
protected JboException getError()
Returns exception that occured on last setInputValue
protected java.util.List getErrors()
Returns a list of exceptions that occured on last setInputValue
protected void processInputException(ValidationException vex)
protected abstract void resetInputState()
protected abstract void initResources()
public abstract void refreshControl()
protected void clearAttrDefs()
public void release()
protected void release(int flags)
public final boolean isReleased()
protected boolean needsEstimatedRowCount()
protected void removeFromDCExceptions()
protected void resetAttributeExceptionInRow(Row row, AttributeDef def, AttrValException ave)
protected void addToDCExceptions(JboException e)
public final java.lang.Object get(java.lang.Object keyObj)
get
in interface java.util.Map
get
in class JboAbstractMap
for valid keyObj values
protected java.lang.Object internalGet(java.lang.String key)
Properties returned vis getter on this control bindings are:
def
- returns getDef()error
- returns getError()errors
- returns getErrors()fullName
- returns getFullName()name
- returns getName()currentRow
- returns getCurrentRow()iteratorBinding
- returns getDCIteratorBinding()rowKeyStr
- returns String format of the current row's keyinternalGet
in class JboAbstractMap
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class JboAbstractMap
public java.lang.String toString()
toString
in class java.util.AbstractMap
protected final UpdateListener getAttributeListener()
public void setListener(UpdateListener listener)
public final void setListener(UpdateListener listener)
protected boolean internalHasPermission(java.lang.String action)
protected boolean internalHasPermission(java.lang.String target, java.lang.String action)
public java.lang.String getPermissionTargetName()
public PermissionInfo getPermissionInfo()
public DCPermission getPermission()
protected void setDataControlPinned(boolean flag)
public java.lang.Object getState()
public void restoreFromState(java.lang.Object state)
state
-
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |