|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
oracle.jbo.uicli.controls.JUNavigationBar
public class JUNavigationBar
Implements a data-aware toolbar. Can be bound to a RowSetIterator and can be used: to:
setHasNavigationButtons(boolean)
,
setHasInsertButton(boolean)
,
setHasDeleteButton(boolean)
,
setHasTransactionButtons(boolean)
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JToolBar |
---|
javax.swing.JToolBar.AccessibleJToolBar, javax.swing.JToolBar.Separator |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
BUTTON_COMMIT
|
static int |
BUTTON_DELETE
|
static int |
BUTTON_DISABLED
|
static int |
BUTTON_EXECUTE
|
static int |
BUTTON_FIND
|
static int |
BUTTON_FIRST
|
static int |
BUTTON_INSERT
|
static int |
BUTTON_LAST
|
static int |
BUTTON_NEXT
|
static int |
BUTTON_NORMAL
|
static int |
BUTTON_PRESSED
|
static int |
BUTTON_PREV
|
static int |
BUTTON_ROLLBACK
|
static int |
BUTTON_ROLLOVER
|
static javax.swing.border.Border |
emptyBorder
|
static javax.swing.border.Border |
focusBorder
|
static javax.swing.border.Border |
paddingBorder
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JUNavigationBar()
Creates a default instance. |
|
JUNavigationBar(boolean navigation,
boolean modify,
boolean txn,
boolean find)
Deprecated. since 9.0.3 use the constructor that also takes execute flag. |
|
JUNavigationBar(boolean navigation,
boolean modify,
boolean txn,
boolean find,
boolean execute)
This constructor takes flags to indicate which buttons to show or hide in the navigationbar. |
Method Summary | |
---|---|
protected void |
_updateButtonStates()
|
protected void |
_updateButtonStatesLater()
|
void |
actionPerformed(java.awt.event.ActionEvent ev)
Applications should override this method to perform custom Action based on a button click/press. |
static JUIteratorBinding |
createPanelBinding(JUPanelBinding formBinding,
JUNavigationBar control)
|
static JUIteratorBinding |
createViewBinding(JUPanelBinding formBinding,
JUNavigationBar control,
java.lang.String voInstanceName,
java.lang.String voRSIName,
java.lang.String voRSIBindingName)
|
void |
doAction(int action)
public method to call the NavigationBar button actions programmatically expected values are BUTTON_FIRST, BUTTON_PREV, BUTTON_NEXT, BUTTON_LAST, BUTTON_INSERT, BUTTON_DELETE, BUTTON_COMMIT, BUTTON_ROLLBACK, BUTTON_FIND, BUTTON_EXECUTE |
void |
doExecuteButtonAction()
Override this method to perform any application logic before or after the ViewObjects referenced in this panel are executed. |
void |
doFindButtonAction()
Override this method to perform any application logic before or after the panel is set to Find Mode or cancelling out of find mode. |
java.awt.Cursor |
getBusyCursor()
Gets the cursor currently used to indicate busy status. |
javax.swing.JButton |
getButton(int button)
Gets the button object used in the toolbar. |
JUActionBinding |
getButtonActionBinding(int button)
Get the button binding for a given button. |
javax.swing.Icon |
getButtonIcon(int button)
Deprecated. |
javax.swing.Icon |
getButtonIcons(int button,
int type)
Gets the icon being used for a button. |
javax.swing.Icon |
getButtonPressedIcon(int button)
Deprecated. |
java.awt.event.FocusListener |
getDefaultFocusListener()
|
boolean |
getHasDeleteButton()
Determines if the toolbar has the button that can be used to delete an existing row from the bound ViewObject. |
boolean |
getHasExecuteButton()
Determines if the toolbar has the button that can be used to execute the viewobject query on the bound ViewObject. |
boolean |
getHasFindButton()
Determines if the toolbar has the button that can be used to run a restricted query (using ViewCriteria) on the bound ViewObject. |
boolean |
getHasInsertButton()
Determines if the toolbar has the button that can be used to insert a new row in the bound ViewObject. |
boolean |
getHasNavigationButtons()
Determines if the toolbar has the buttons that are used to change the current row of the bound ViewObject. |
boolean |
getHasTransactionButtons()
Determines if the toolbar has the buttons that can be used to commit/rollback the changes made to the bound Transaction. |
JUIteratorBinding |
getModel()
|
static JUIteratorBinding |
getModelInstance(JUPanelBinding formBinding,
JUNavigationBar control)
|
static JUIteratorBinding |
getModelInstance(JUPanelBinding formBinding,
java.lang.String voInstanceName,
java.lang.String voRSIName,
java.lang.String voRSIBindingName)
|
boolean |
isButtonActive(int buttonid)
Checks if the button both exists and is enabled. |
void |
iteratorBindingChanged(JUIteratorBinding bind)
This event is generated by PanelBinding when there is a change in the iterator binding which currently has keyboard focus. |
void |
navigated(NavigationEvent event)
Invoked when the current-row designation changes. |
void |
rangeRefreshed(RangeRefreshEvent event)
Invoked when the range changes. |
void |
rangeScrolled(ScrollEvent event)
Invoked when the range is scrolled. |
void |
release()
Framework calls this method when it needs to indicate that the connection to is being released. |
void |
restoreDefaultCursor()
Shows default cursor. |
void |
rowDeleted(DeleteEvent event)
Invoked when a row has been deleted. |
void |
rowInserted(InsertEvent event)
Invoked when a row has been inserted. |
void |
rowUpdated(UpdateEvent event)
Invoked when an attribute of the row has been changed. |
void |
setBusyCursor(java.awt.Cursor busyCursor)
Changes the cursor used to indicate busy status. |
void |
setButtonIcon(int button,
javax.swing.Icon icon)
Deprecated. |
void |
setButtonIcons(int button,
javax.swing.Icon icon,
javax.swing.Icon pressedIcon,
javax.swing.Icon disabledIcon,
javax.swing.Icon rolloverIcon)
Sets the icon to be used for a button. |
void |
setButtonPressedIcon(int button,
javax.swing.Icon icon)
Deprecated. |
protected void |
setButtonUI(javax.swing.JButton b)
Allow extended toolbars to set the same look for additional buttons as the main toolbar buttons. |
void |
setHasDeleteButton(boolean b)
Tells the toolbar whether to include the delete button or not. |
void |
setHasExecuteButton(boolean b)
Tells the toolbar whether to include the 'Execute' button or not. |
void |
setHasFindButton(boolean b)
Tells the toolbar whether to include the 'Find' button or not. |
void |
setHasInsertButton(boolean b)
Tells the toolbar whether to include the insert button or not. |
void |
setHasNavigationButtons(boolean b)
Tells the toolbar whether to include the navigation buttons or not. |
void |
setHasTransactionButtons(boolean b)
Tells the toolbar whether to include the commit/rollback buttons or not. |
void |
setModel(JUIteratorBinding bind)
|
void |
showBusyCursor()
displays a busy cursor |
void |
transactionStateChanged(boolean state)
Invoked when the transaction is either marked dirty or clean. |
Methods inherited from class javax.swing.JToolBar |
---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.swing.border.Border paddingBorder
public static final javax.swing.border.Border focusBorder
public static final javax.swing.border.Border emptyBorder
public static final int BUTTON_FIRST
public static final int BUTTON_PREV
public static final int BUTTON_NEXT
public static final int BUTTON_LAST
public static final int BUTTON_INSERT
public static final int BUTTON_DELETE
public static final int BUTTON_COMMIT
public static final int BUTTON_ROLLBACK
public static final int BUTTON_FIND
public static final int BUTTON_EXECUTE
public static final int BUTTON_NORMAL
public static final int BUTTON_PRESSED
public static final int BUTTON_DISABLED
public static final int BUTTON_ROLLOVER
Constructor Detail |
---|
public JUNavigationBar()
public JUNavigationBar(boolean navigation, boolean modify, boolean txn, boolean find)
public JUNavigationBar(boolean navigation, boolean modify, boolean txn, boolean find, boolean execute)
Method Detail |
---|
protected final void setButtonUI(javax.swing.JButton b)
b
- public void actionPerformed(java.awt.event.ActionEvent ev)
For example, if an application needs to override commit and rollback operations so that they can hold on to some application state before commit/rollback occurs, this method could be overriden to cache the application state, call the super.actionPerformed() to do the button action and then restore the application state.
actionPerformed
in interface java.awt.event.ActionListener
public void doAction(int action)
action
- the action value, see expected values mentioned abovepublic void doFindButtonAction()
public void doExecuteButtonAction()
public static JUIteratorBinding createViewBinding(JUPanelBinding formBinding, JUNavigationBar control, java.lang.String voInstanceName, java.lang.String voRSIName, java.lang.String voRSIBindingName)
public static JUIteratorBinding getModelInstance(JUPanelBinding formBinding, java.lang.String voInstanceName, java.lang.String voRSIName, java.lang.String voRSIBindingName)
public static JUIteratorBinding createPanelBinding(JUPanelBinding formBinding, JUNavigationBar control)
public static JUIteratorBinding getModelInstance(JUPanelBinding formBinding, JUNavigationBar control)
public void setModel(JUIteratorBinding bind)
public void transactionStateChanged(boolean state)
DCTransactionStateListener
transactionStateChanged
in interface DCTransactionStateListener
state
- Indicates if the transaction was marked clean (true) or dirty (false).
Controls like NavigationBar then disables/enables the Save button to indicate
there are changes that need to be saved/committed to the database.public void iteratorBindingChanged(JUIteratorBinding bind)
JUNavigationBarInterface
iteratorBindingChanged
in interface JUNavigationBarInterface
public JUIteratorBinding getModel()
public void setButtonIcon(int button, javax.swing.Icon icon)
button
- The button whose icon should be changed.
Allowed values should be one of defined by the BUTTON_XXX
constants.icon
- The new icon.public javax.swing.Icon getButtonIcon(int button)
button
- The button whose icon is being requested.
Allowed values should be one of defined by the BUTTON_XXX
constants.
public void setButtonIcons(int button, javax.swing.Icon icon, javax.swing.Icon pressedIcon, javax.swing.Icon disabledIcon, javax.swing.Icon rolloverIcon)
button
- The button whose icon should be changed.
Allowed values should be one of defined by the BUTTON_XXX
constants.icon
- The new button icon.pressedIcon
- The new button pressed icon.disabledIcon
- The new button disabled icon.rolloverIcon
- The new button rollover icon.public javax.swing.Icon getButtonIcons(int button, int type)
button
- The button whose icon is being requested.
Allowed values should be one of defined by the BUTTON_XXX
constants.type
- The icon type. Allowed values are BUTTON_NORMAL, BUTTON_PRESSED,
BUTTON_DISABLED, and BUTTON_ROLLOVER.
public void setButtonPressedIcon(int button, javax.swing.Icon icon)
button
- The button whose icon should be changed.
Allowed values should be one of defined by the BUTTON_XXX
constants.icon
- The new icon.public javax.swing.Icon getButtonPressedIcon(int button)
button
- The button whose icon is being requested.
Allowed values should be one of defined by the BUTTON_XXX
constants.
public void showBusyCursor()
public void restoreDefaultCursor()
public void setBusyCursor(java.awt.Cursor busyCursor)
busyCursor
- Cursor used to indicate busy status.public java.awt.Cursor getBusyCursor()
public javax.swing.JButton getButton(int button)
button
- A constant indicating which button is requested.
Allowed values should be one of defined by the BUTTON_XXX
constants.
public boolean isButtonActive(int buttonid)
buttonid
- A constant indicating which button is requested.
Allowed values should be one of defined by the BUTTON_XXX
constants.
public boolean getHasNavigationButtons()
public void setHasNavigationButtons(boolean b)
b
- If true, the navigation buttons are included in the bar,
else the navigation buttons are not included.public boolean getHasInsertButton()
public void setHasInsertButton(boolean b)
b
- If true, the insert button is be included, else the button is
removed.public boolean getHasDeleteButton()
public void setHasDeleteButton(boolean b)
b
- If true, the delete button is be included, otherwise the button is
removed.public boolean getHasTransactionButtons()
public void setHasTransactionButtons(boolean b)
b
- If true the buttons are included, otherwise the buttons are removed.public boolean getHasFindButton()
public void setHasFindButton(boolean b)
b
- If true, the 'Find' button is included, otherwise the button is
removed.public boolean getHasExecuteButton()
public void setHasExecuteButton(boolean b)
b
- If true, the 'Execute' button is included, otherwise the button is
removed.protected void _updateButtonStatesLater()
protected void _updateButtonStates()
public void navigated(NavigationEvent event)
RowSetListener
navigated
in interface RowNavigationListener
navigated
in interface RowSetListener
event
- a description of the new and previous current rows.public void rangeRefreshed(RangeRefreshEvent event)
RowSetListener
rangeRefreshed
in interface RowSetListener
event
- a description of the new ranges.public void rangeScrolled(ScrollEvent event)
RowSetListener
rangeScrolled
in interface RowSetListener
event
- a description of the new range.public void rowDeleted(DeleteEvent event)
RowSetListener
rowDeleted
in interface RowSetListener
event
- a description of the deleted Row object.public void rowInserted(InsertEvent event)
RowSetListener
rowInserted
in interface RowSetListener
event
- a description of the new Row object.public void rowUpdated(UpdateEvent event)
RowSetListener
rowUpdated
in interface RowSetListener
event
- a description of the modified Row object.public java.awt.event.FocusListener getDefaultFocusListener()
public JUActionBinding getButtonActionBinding(int button)
public void release()
DCTransactionStateListener
release
in interface DCTransactionStateListener
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |