|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
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
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 inherited from class java.util.Map |
java.util.Map.Entry |
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, mInternalGet_KeyResolved, ROW_KEY_STR |
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 the associated RowSet 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)
|
void |
doIt()
Override to implement ActionBinding events. |
java.util.ArrayList |
getActionBindingListeners()
Returns a list of JUActionBindingListener (returns an empty list if no such listener was registered). |
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()
|
boolean |
isEnabled()
|
boolean |
isPressed()
|
boolean |
isRollover()
|
boolean |
isSelected()
|
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)
|
Methods inherited from class oracle.jbo.uicli.binding.JUCtrlActionBinding |
actionIdToName, actionNameToId, getActionId, getDataControl, getEnabledString, getError, getInvokeMethodDef, getParams, getParamsMap, getPath, getResult, ignoreUpdates, internalGet, invoke, isActionEnabled, isArrayIteratorType, refreshControl, reportException, resetInputState, setArrayIteratorType, setInvoke, setParams |
Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding |
getFormBinding, getIteratorBinding, reportException, setFormBinding |
Methods inherited from class oracle.jbo.common.JboAbstractMap |
entrySet, equals |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
public void doIt()
doIt
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 javax.swing.ButtonModel
public void removeItemListener(java.awt.event.ItemListener l)
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 final java.util.ArrayList getActionBindingListeners()
public final void addActionBindingListener(JUActionBindingListener l)
public final void removeActionBindingListener(JUActionBindingListener l)
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.