|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
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.JUCtrlActionBinding oracle.jbo.uicli.jui.JUActionBinding
public class JUActionBinding
Implements binding for a JButton to one of the commonly-used methods on the associated RowSet. The super class JUCtrlActionBinding has all the necessary logic to bind to a BC4J RowSet. This class is a public facade to allow a Swing JButton to work with the logic in the superclass.
This class also implements Swing ButtonModel to allow design time to associate a binding editor with a JButton.
JUCtrlActionBinding
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.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 | |
---|---|
JUActionBinding(java.lang.Object control,
DCBindingContainer form,
DCInvokeMethodDef methodInfo)
|
|
JUActionBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
int action)
This constructor binds the given JButton object (control) with an enumerated action in the RowSet identified by the given iterator binding. |
|
JUActionBinding(java.lang.Object control,
JUIteratorBinding iterBinding,
int action,
boolean addAsActionListener)
This constructor binds the given JButton object (control) with an enumerated action in the RowSet identified by the given iterator binding. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Calls JUCtrlActionBinding.invoke() method to perform this action invoke() routes this call to a datacontrol just in case the associated datacontrol overrides the implementation for this action. |
void |
addActionBindingListener(JUActionBindingListener l)
Adds the given listener to this Action Binding's listeners list. |
void |
addActionListener(java.awt.event.ActionListener l)
|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
void |
addControlToPanel(java.lang.Object panel,
java.lang.Object layoutObject,
java.lang.Object layoutCons)
*** For internal framework use only *** |
void |
addItemListener(java.awt.event.ItemListener l)
|
protected JUCtrlActionBindingEvent |
createActionBindingEvent()
|
java.lang.String |
getActionCommand()
|
java.lang.Object |
getControlModel(java.lang.Object control)
Gets the associated View's model object. |
int |
getMnemonic()
|
protected javax.swing.ButtonModel |
getModelImpl(java.lang.Object control)
Returns the button model to which this binding class and the given control are associated. |
java.lang.Object[] |
getSelectedObjects()
|
boolean |
isArmed()
Override to implement ActionBinding events. |
boolean |
isEnabled()
|
boolean |
isPressed()
|
boolean |
isRollover()
|
boolean |
isSelected()
|
void |
release(int flags)
|
void |
removeActionBindingListener(JUActionBindingListener l)
Removes the given listener from this Action Binding's listeners list. |
void |
removeActionListener(java.awt.event.ActionListener l)
|
void |
removeChangeListener(javax.swing.event.ChangeListener l)
|
void |
removeItemListener(java.awt.event.ItemListener l)
|
void |
setActionCommand(java.lang.String s)
|
void |
setArmed(boolean b)
|
void |
setEnabled(boolean b)
|
void |
setGroup(javax.swing.ButtonGroup group)
|
void |
setMnemonic(int key)
|
void |
setPressed(boolean b)
|
void |
setRollover(boolean b)
|
void |
setSelected(boolean b)
|
protected void |
setupMethodInfo(DCBindingContainer form,
DCInvokeMethodDef def)
|
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 |
Methods inherited from interface oracle.adf.model.ControlBinding |
---|
setListener |
Methods inherited from interface oracle.binding.ControlBinding |
---|
getName, release, setListener |
Constructor Detail |
---|
public JUActionBinding(java.lang.Object control, JUIteratorBinding iterBinding, int action)
public JUActionBinding(java.lang.Object control, JUIteratorBinding iterBinding, int action, boolean addAsActionListener)
public JUActionBinding(java.lang.Object control, DCBindingContainer form, DCInvokeMethodDef methodInfo)
Method Detail |
---|
public java.lang.Object getControlModel(java.lang.Object control)
getControlModel
in class DCControlBinding
protected javax.swing.ButtonModel getModelImpl(java.lang.Object control)
Framework uses this method to get the button model for the associated control.
public void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
addControlToPanel
in class JUCtrlActionBinding
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
protected JUCtrlActionBindingEvent createActionBindingEvent()
createActionBindingEvent
in class JUCtrlActionBinding
public boolean isArmed()
isArmed
in interface javax.swing.ButtonModel
public boolean isSelected()
isSelected
in interface javax.swing.ButtonModel
public boolean isEnabled()
isEnabled
in interface javax.swing.ButtonModel
public boolean isPressed()
isPressed
in interface javax.swing.ButtonModel
public boolean isRollover()
isRollover
in interface javax.swing.ButtonModel
public void setArmed(boolean b)
setArmed
in interface javax.swing.ButtonModel
public void setSelected(boolean b)
setSelected
in interface javax.swing.ButtonModel
public void setEnabled(boolean b)
setEnabled
in interface javax.swing.ButtonModel
public void setPressed(boolean b)
setPressed
in interface javax.swing.ButtonModel
public void setRollover(boolean b)
setRollover
in interface javax.swing.ButtonModel
public void setMnemonic(int key)
setMnemonic
in interface javax.swing.ButtonModel
public int getMnemonic()
getMnemonic
in interface javax.swing.ButtonModel
public void setActionCommand(java.lang.String s)
setActionCommand
in interface javax.swing.ButtonModel
public java.lang.String getActionCommand()
getActionCommand
in interface javax.swing.ButtonModel
public void setGroup(javax.swing.ButtonGroup group)
setGroup
in interface javax.swing.ButtonModel
public void addActionListener(java.awt.event.ActionListener l)
addActionListener
in interface javax.swing.ButtonModel
public void removeActionListener(java.awt.event.ActionListener l)
removeActionListener
in interface javax.swing.ButtonModel
public void addItemListener(java.awt.event.ItemListener l)
addItemListener
in interface java.awt.ItemSelectable
addItemListener
in interface javax.swing.ButtonModel
public void removeItemListener(java.awt.event.ItemListener l)
removeItemListener
in interface java.awt.ItemSelectable
removeItemListener
in interface javax.swing.ButtonModel
public void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener
in interface javax.swing.ButtonModel
public void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener
in interface javax.swing.ButtonModel
public java.lang.Object[] getSelectedObjects()
getSelectedObjects
in interface java.awt.ItemSelectable
public void release(int flags)
release
in class JUCtrlActionBinding
protected void setupMethodInfo(DCBindingContainer form, DCInvokeMethodDef def)
setupMethodInfo
in class JUCtrlActionBinding
public final void addActionBindingListener(JUActionBindingListener l)
public final void removeActionBindingListener(JUActionBindingListener l)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |