|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.control.swing.find.DacFindPanelUI
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.
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 |
protected FindPanel _parent
protected javax.swing.JPanel _panel
protected javax.swing.JPanel _iconPanel
protected javax.swing.JPanel _dataPanel
protected javax.swing.JPanel _contentPanel
protected javax.swing.JPanel _buttonPanel
protected javax.swing.JPanel _bottomPanel
protected javax.swing.JButton _findButton
protected javax.swing.JButton _resetButton
protected javax.swing.JButton _closeButton
protected javax.swing.JButton _helpButton
protected javax.swing.JButton _orButton
protected javax.swing.JButton _removeButton
protected javax.swing.JButton _removeAllButton
protected javax.swing.JLabel[] _label
protected javax.swing.JTextField[] _textField
protected javax.swing.JLabel _labelStatusBar
protected javax.swing.JButton[] _buttonCustomEditor
protected FindItemEditor[] _editor
protected java.util.Hashtable _properties
protected java.util.Hashtable _commands
protected java.util.Vector _buttonListeners
protected java.lang.String _defaultLabelFontName
protected java.lang.String _defaultTextFontName
protected java.awt.Dimension _preferredButtonSize
protected javax.swing.JLabel _labelIcon
protected javax.swing.Icon _findIcon
protected java.awt.Font _labelFont
protected java.awt.Font _textFont
protected java.awt.Color _labelForeColor
protected java.awt.Color _labelBackColor
protected java.awt.Color _textForeColor
protected java.awt.Color _textBackColor
protected int _textColumnWidth
protected boolean _enabled
protected javax.swing.JButton[] _buttons
protected boolean[] _buttonState
Constructor Detail |
public DacFindPanelUI()
Method Detail |
public void setParent(FindPanel parent)
setParent
in interface FindPanelUI
parent
- public void itemChanged()
itemChanged
in interface FindPanelUI
public void itemValueChanged(int column)
itemValueChanged
in interface FindPanelUI
column
- whose value (some attribute) has changedpublic java.awt.Component buildPanel()
buildPanel
in interface FindPanelUI
public void setProperty(int property, java.lang.Object value)
setProperty
in interface FindPanelUI
property
- id for the property we are trying to setvalue
- for the propertypublic java.lang.Object getProperty(int property)
getProperty
in interface FindPanelUI
property
- id for the property we are interested in
public final void addButtonClickListener(DacFindPanelUIListener listener)
The listener will be notified when one of the button is clicked by the user
listener
- The listener to add.Control#addNavigatedListener
public final void removeButtonClickListener(DacFindPanelUIListener l)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- ActionEvent object with event detailsprotected javax.swing.JTabbedPane _createTabbedContentPane(javax.swing.JPanel contents)
protected javax.swing.JPanel _createContentPanel()
protected javax.swing.JPanel _createBottomPanel()
public void _notifyButtonClick(int whichButton)
whichButton
- a constant indicating which button was clicked
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.