Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.gridView.gui
Class DecimalTool

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JToolBar
                          |
                          +--oracle.dss.gridView.gui.DecimalTool
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, DataviewTool, DataviewToolbarRollover, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants

public class DecimalTool
extends javax.swing.JToolBar
implements DataviewToolbarRollover, DataviewTool, java.awt.event.ActionListener

Defines a group of two decimal-movement tools of the toolbar for this view. These tools allow users to move the decimal point in selected cells to the right or to the left.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JToolBar
javax.swing.JToolBar.Separator

 

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Field Summary
static java.lang.String PROPERTY_DECIMAL_DIGIT
          Property: Decimal digit.

 

Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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, NORTH, NORTH_EAST, NORTH_WEST, 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
DecimalTool()
          Constructor.

 

Method Summary
 void cleanUp()
          Cleans up any memory or resources that the tool uses.
 boolean isRolloverIconEnabled()
          Indicates whether a larger version of a toolbar icon appears when the mouse is over the icon.
 void selectedAction(ControllerEvent e, UIDataview currentDataView, ToolBar toolBar)
          Sets the state of the tool to reflect the properties of the object that is currently selected.
 void setLocale(java.util.Locale loc)
          Specifies the locale for this tool.
 void setRolloverIconEnabled(boolean bEnabled)
          Specifies whether to display a larger version of a toolbar icon when the mouse is over the icon.
 void update()
          Updates the state of the tool to reflect the properties of the currently selected object.

 

Methods inherited from class javax.swing.JToolBar
add, addSeparator, addSeparator, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, setBorderPainted, setFloatable, setMargin, setOrientation, setUI, updateUI

 

Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate

 

Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.awt.event.ActionListener
actionPerformed

 

Field Detail

PROPERTY_DECIMAL_DIGIT

public static final java.lang.String PROPERTY_DECIMAL_DIGIT
Property: Decimal digit. Use this constant when listening for changes in this tool.
Constructor Detail

DecimalTool

public DecimalTool()
Constructor.
Method Detail

setLocale

public void setLocale(java.util.Locale loc)
Specifies the locale for this tool.
Overrides:
setLocale in class java.awt.Component
Parameters:
loc - The locale for this tool to use.

selectedAction

public void selectedAction(ControllerEvent e,
UIDataview currentDataView,
ToolBar toolBar)
Sets the state of the tool to reflect the properties of the object that is currently selected. The toolbar calls this method in its setDataView method and whenever a user selects something in the UIDataview.
Specified by:
selectedAction in interface DataviewTool
Parameters:
selectedObject - The event that describes the selection.
currentDataView - The current UIDataview.
toolBar - The ToolBar to which this tool belongs.

setRolloverIconEnabled

public void setRolloverIconEnabled(boolean bEnabled)
Specifies whether to display a larger version of a toolbar icon when the mouse is over the icon. By default, this tool uses a raised or lowered look.
Specified by:
setRolloverIconEnabled in interface DataviewToolbarRollover
Parameters:
bEnabled - true to use larger icons, false to use a raised or lowered look instead.

isRolloverIconEnabled

public boolean isRolloverIconEnabled()
Indicates whether a larger version of a toolbar icon appears when the mouse is over the icon.
Specified by:
isRolloverIconEnabled in interface DataviewToolbarRollover
Returns:
true if a larger icon appears when the mouse is over a tool icon, false if a raised or lowered look appears instead.

update

public void update()
Updates the state of the tool to reflect the properties of the currently selected object.
Specified by:
update in interface DataviewTool

cleanUp

public void cleanUp()
Cleans up any memory or resources that the tool uses.
Specified by:
cleanUp in interface DataviewTool

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.