Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class DacFindPanelUI

java.lang.Object
  extended byoracle.dacf.control.swing.find.DacFindPanelUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, FindPanelUI

public class DacFindPanelUI
extends java.lang.Object
implements FindPanelUI, java.awt.event.ActionListener

The DacFindPanelUI implements the default UI for the FindPanel. It displays a text field for each queryable column along with a label and tool tip text. It also displays buttons for find, reset etc., It delegates the find operation to the FindPanel.

Version:
INTERNAL
See Also:
FindPanel

Field Summary
protected  javax.swing.JPanel _bottomPanel
          bottom panel contains the statusbar label and the button panels
protected  javax.swing.JButton[] _buttonCustomEditor
          buttons which bring up custom editors
protected  java.util.Vector _buttonListeners
          button click listeners
protected  javax.swing.JPanel _buttonPanel
          All our buttons go here.
protected  javax.swing.JButton[] _buttons
           
protected  boolean[] _buttonState
           
protected  javax.swing.JButton _closeButton
          Close button on the button panel
protected  java.util.Hashtable _commands
          command to implement each property
protected  javax.swing.JPanel _contentPanel
          outer panel which in turn houses _icon and _data panels.
protected  javax.swing.JPanel _dataPanel
          labels and text fields displayed in this panel
protected  java.lang.String _defaultLabelFontName
          font for label
protected  java.lang.String _defaultTextFontName
          font for text field
protected  FindItemEditor[] _editor
          the actual editors used to edit a Find item
protected  boolean _enabled
          FindPanel enabled/disabled
protected  javax.swing.JButton _findButton
          find button on the button panel
protected  javax.swing.Icon _findIcon
          find icon
protected  javax.swing.JButton _helpButton
          help button on the button panel
protected  javax.swing.JPanel _iconPanel
          display icon here
protected  javax.swing.JLabel[] _label
          labels in the data panel.
protected  java.awt.Color _labelBackColor
          background color for the label
protected  java.awt.Font _labelFont
          font for label
protected  java.awt.Color _labelForeColor
          foreground color for the label
protected  javax.swing.JLabel _labelIcon
          display find icon using this label
protected  javax.swing.JLabel _labelStatusBar
          status bar control
protected  javax.swing.JButton _orButton
          OR button on the button panel
protected  javax.swing.JPanel _panel
          top level container
protected  FindPanel _parent
          A handle to the parent so that we can delegate some of the functionality like Find.
protected  java.awt.Dimension _preferredButtonSize
          button size
protected  java.util.Hashtable _properties
          List of properties DacFindPanelUI implements
protected  javax.swing.JButton _removeAllButton
          Remove button on the button panel
protected  javax.swing.JButton _removeButton
          Remove button on the button panel
protected  javax.swing.JButton _resetButton
          reset button on the button panel
protected  java.awt.Color _textBackColor
          background color for the textfield
protected  int _textColumnWidth
          default column width for the text field
protected  javax.swing.JTextField[] _textField
          text fields in the data panel.
protected  java.awt.Font _textFont
          font for text field
protected  java.awt.Color _textForeColor
          foreground color for the textfield
 
Fields inherited from interface oracle.dacf.control.swing.find.FindPanelUI
ENABLED, FIND_ICON, INNER_PANEL, INNER_PANEL_LYT_MGR, ITEM_DIRECTION, ITEM_EDITORS, LABEL_BACK_CLR, LABEL_FONT, LABEL_FORE_CLR, LABEL_POSITION, PARENT_CONTAINER, SHOW_CLOSE_BUTTON, SHOW_FIND_BUTTON, SHOW_FIND_ICON, SHOW_HELP_BUTTON, SHOW_OR_BUTTON, SHOW_REMOVE_ALL_BUTTON, SHOW_REMOVE_BUTTON, SHOW_RESET_BUTTON, SHOW_STATUS_BAR, TEXT_BACK_CLR, TEXT_COLUMN_WIDTH, TEXT_FONT, TEXT_FORE_CLR
 
Constructor Summary
DacFindPanelUI()
          Constructor
 
Method Summary
protected  javax.swing.JPanel _createBottomPanel()
           
protected  javax.swing.JPanel _createContentPanel()
          create a panel which contains the icon panel and the data panel
protected  javax.swing.JTabbedPane _createTabbedContentPane(javax.swing.JPanel contents)
          create a tabbed version of content panel
 void _notifyButtonClick(int whichButton)
          notification that the button click happened.
 void actionPerformed(java.awt.event.ActionEvent e)
          Button click occured
 void addButtonClickListener(DacFindPanelUIListener listener)
          Adds a button click listener to this control.
 java.awt.Component buildPanel()
          return a Panel reflectiong the panel to be displayed.
 java.lang.Object getProperty(int property)
          get property value
 void itemChanged()
          A notification from the parent that one or more data item names changed.
 void itemValueChanged(int column)
          A notification from the paraent that the column value changed.
 void removeButtonClickListener(DacFindPanelUIListener l)
          Removes a button listener
 void setParent(FindPanel parent)
          set the parent which will use the customized UI panel.
 void setProperty(int property, java.lang.Object value)
          specify a property value to customize the UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parent

protected FindPanel _parent
A handle to the parent so that we can delegate some of the functionality like Find.


_panel

protected javax.swing.JPanel _panel
top level container


_iconPanel

protected javax.swing.JPanel _iconPanel
display icon here


_dataPanel

protected javax.swing.JPanel _dataPanel
labels and text fields displayed in this panel


_contentPanel

protected javax.swing.JPanel _contentPanel
outer panel which in turn houses _icon and _data panels.


_buttonPanel

protected javax.swing.JPanel _buttonPanel
All our buttons go here.


_bottomPanel

protected javax.swing.JPanel _bottomPanel
bottom panel contains the statusbar label and the button panels


_findButton

protected javax.swing.JButton _findButton
find button on the button panel


_resetButton

protected javax.swing.JButton _resetButton
reset button on the button panel


_closeButton

protected javax.swing.JButton _closeButton
Close button on the button panel


_helpButton

protected javax.swing.JButton _helpButton
help button on the button panel


_orButton

protected javax.swing.JButton _orButton
OR button on the button panel


_removeButton

protected javax.swing.JButton _removeButton
Remove button on the button panel


_removeAllButton

protected javax.swing.JButton _removeAllButton
Remove button on the button panel


_label

protected javax.swing.JLabel[] _label
labels in the data panel. one label displayed for each queryable column


_textField

protected javax.swing.JTextField[] _textField
text fields in the data panel. one text field displayed for each queryable column


_labelStatusBar

protected javax.swing.JLabel _labelStatusBar
status bar control


_buttonCustomEditor

protected javax.swing.JButton[] _buttonCustomEditor
buttons which bring up custom editors


_editor

protected FindItemEditor[] _editor
the actual editors used to edit a Find item


_properties

protected java.util.Hashtable _properties
List of properties DacFindPanelUI implements


_commands

protected java.util.Hashtable _commands
command to implement each property


_buttonListeners

protected java.util.Vector _buttonListeners
button click listeners


_defaultLabelFontName

protected java.lang.String _defaultLabelFontName
font for label


_defaultTextFontName

protected java.lang.String _defaultTextFontName
font for text field


_preferredButtonSize

protected java.awt.Dimension _preferredButtonSize
button size


_labelIcon

protected javax.swing.JLabel _labelIcon
display find icon using this label


_findIcon

protected javax.swing.Icon _findIcon
find icon


_labelFont

protected java.awt.Font _labelFont
font for label


_textFont

protected java.awt.Font _textFont
font for text field


_labelForeColor

protected java.awt.Color _labelForeColor
foreground color for the label


_labelBackColor

protected java.awt.Color _labelBackColor
background color for the label


_textForeColor

protected java.awt.Color _textForeColor
foreground color for the textfield


_textBackColor

protected java.awt.Color _textBackColor
background color for the textfield


_textColumnWidth

protected int _textColumnWidth
default column width for the text field


_enabled

protected boolean _enabled
FindPanel enabled/disabled


_buttons

protected javax.swing.JButton[] _buttons

_buttonState

protected boolean[] _buttonState
Constructor Detail

DacFindPanelUI

public DacFindPanelUI()
Constructor

Method Detail

setParent

public void setParent(FindPanel parent)
set the parent which will use the customized UI panel. Implementors of this interface will make use of the 'parent' argument to retrive values to display and to execute query

Specified by:
setParent in interface FindPanelUI
Parameters:
parent -

itemChanged

public void itemChanged()
A notification from the parent that one or more data item names changed. Implementation should rebuild the UI

Specified by:
itemChanged in interface FindPanelUI

itemValueChanged

public void itemValueChanged(int column)
A notification from the paraent that the column value changed. Implementation should refresh the values for this column like the column display label

Specified by:
itemValueChanged in interface FindPanelUI
Parameters:
column - whose value (some attribute) has changed

buildPanel

public java.awt.Component buildPanel()
return a Panel reflectiong the panel to be displayed.

Specified by:
buildPanel in interface FindPanelUI
Returns:
Component built

setProperty

public void setProperty(int property,
                        java.lang.Object value)
specify a property value to customize the UI

Specified by:
setProperty in interface FindPanelUI
Parameters:
property - id for the property we are trying to set
value - for the property

getProperty

public java.lang.Object getProperty(int property)
get property value

Specified by:
getProperty in interface FindPanelUI
Parameters:
property - id for the property we are interested in
Returns:
property value

addButtonClickListener

public final void addButtonClickListener(DacFindPanelUIListener listener)
Adds a button click listener to this control.

The listener will be notified when one of the button is clicked by the user

Parameters:
listener - The listener to add.
See Also:
Control#addNavigatedListener

removeButtonClickListener

public final void removeButtonClickListener(DacFindPanelUIListener l)
Removes a button listener


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Button click occured

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent object with event details

_createTabbedContentPane

protected javax.swing.JTabbedPane _createTabbedContentPane(javax.swing.JPanel contents)
create a tabbed version of content panel


_createContentPanel

protected javax.swing.JPanel _createContentPanel()
create a panel which contains the icon panel and the data panel


_createBottomPanel

protected javax.swing.JPanel _createBottomPanel()

_notifyButtonClick

public void _notifyButtonClick(int whichButton)
notification that the button click happened. The notification will be passed to the button click listeners

Parameters:
whichButton - a constant indicating which button was clicked

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.