|
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.ViewCriteriaFindPanelUI
The ViewCriteriaFindPanelUI implements the UI for the FindPanel. It lets the end user create multiple criteria's.
FindPanel
,
FindPanelUI
,
DacFindPanelUI
Field Summary | |
protected javax.swing.JPanel |
_bottomPanel
bottom panel contains the statusbar label and the button panels |
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 |
_buttonWidthCalculateHelper
|
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 oracle.dacf.control.swing.find.EditItemInvoker[] |
_editInvokers
|
protected FindItemEditor[] |
_editors
|
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 int |
_itemDirection
direction in which the text fields are laid out |
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 int |
_labelPosition
property values |
protected javax.swing.JLabel |
_labelStatusBar
status bar control |
protected int |
_lastViewCriteriaNum
last view criteria num |
protected ViewCriteriaModifier |
_modifier
|
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 javax.swing.JTabbedPane |
_tabbedPane
|
protected java.awt.Color |
_textBackColor
background color for the textfield |
protected int |
_textColumnWidth
default column width for the text field |
protected java.awt.Font |
_textFont
font for text field |
protected java.awt.Color |
_textForeColor
foreground color for the textfield |
protected java.lang.String |
_tooltipText
tooltip text |
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 | |
ViewCriteriaFindPanelUI()
Constructor |
Method Summary | |
protected DataPanel |
_addViewCriteriaRowPanel(int asRow)
|
protected void |
_applyProperties()
Helper method which set the properties |
protected void |
_changeFocusToFindButton()
|
protected javax.swing.JPanel |
_createBottomPanel()
|
protected javax.swing.JPanel |
_createButtonPanel()
Creates the button panel. |
protected javax.swing.JPanel |
_createContentPanel()
create a panel which contains the icon panel and the data panel |
protected void |
_deleteAllViewCriteriaRow()
|
protected void |
_deleteViewCriteriaRow()
|
protected void |
_destroyEditInvokers()
|
protected java.awt.Dimension |
_determineMinButtonSize(javax.swing.JButton b,
java.awt.Dimension desiredSize)
make sure the entire button text can be displayed instead of .... |
protected void |
_displayMessageDialog(java.lang.String message,
int style)
Helper method to display a message |
protected void |
_doButtonClose()
Close button clicked |
protected void |
_doButtonFind()
Find button clicked |
protected void |
_doButtonHelp()
Help button clicked |
protected void |
_doButtonOr()
|
protected void |
_doButtonRemove()
|
protected void |
_doButtonRemoveAll()
|
protected void |
_doButtonReset()
Reset button clicked |
protected void |
_enableControls(boolean flag)
|
protected void |
_ensureMinimalRequiredRows()
|
protected int |
_getButtonPosition(int order)
|
protected java.lang.String |
_getColumnDisplayLabel(int column)
get colum display label for specified column |
protected java.lang.String |
_getColumnValue(int column)
get column value for specified column |
protected int |
_getRefreshedRowIndex(DataPanel dataPanel)
Query criteria changes your row index if there were any deletion/addition |
protected int |
_getSQLType(int i)
|
protected java.lang.String |
_getTooltipText(int column)
Get tool tip text for a column |
protected java.lang.Object |
_getUserData(int colIndex)
|
protected int |
_getViewCriteriaRowCount()
|
protected void |
_initEditInvokers(FindItemEditor[] editors)
|
protected boolean |
_isDataPublished()
|
protected boolean |
_isDisableAutomaticWildCardInSearch()
|
protected javax.swing.Icon |
_loadDefaultIcon()
Initialize the Find Icon |
protected java.lang.String |
_modifyQueryCriteriaValue(int sqlType,
java.lang.Object value,
boolean useSpecialChars,
java.lang.Object param)
|
protected void |
_newViewCriteriaRow()
|
void |
_notifyButtonClick(int whichButton)
notification that the button click happened. |
protected void |
_notifyPropertyChange(int whichProperty,
java.lang.Object newValue)
|
protected void |
_rebuildUI()
rebuild the UI |
protected void |
_refreshDataPanel(DataPanel d,
boolean queryNewValues)
|
protected void |
_removeAllViewCriteriaRowPanel()
|
protected void |
_removeViewCriteriaRowPanel(int curRow)
|
protected void |
_setColumnValue(int column,
java.lang.Object val)
set column value for specified column |
protected void |
_setCustomEditors(java.lang.Object value)
|
protected void |
_setEditorsOnDataPanel()
|
protected void |
_setFindIcon(java.lang.Object value)
set the icon for the Find panel |
protected void |
_setShowCloseButton(java.lang.Object value)
should the Close button be displayed in the FindPanel |
protected void |
_setShowFindButton(java.lang.Object value)
should the Find button be displayed in the FindPanel |
protected void |
_setShowFindIcon(java.lang.Object value)
should the find icon be displayed ? |
protected void |
_setShowHelpButton(java.lang.Object value)
should the Help button be displayed in the FindPanel |
protected void |
_setShowORButton(java.lang.Object value)
should the OR button be displayed in the FindPanel |
protected void |
_setShowRemoveAllButton(java.lang.Object value)
should the Remove All button be displayed in the FindPanel |
protected void |
_setShowRemoveButton(java.lang.Object value)
should the REMOVE button be displayed in the FindPanel |
protected void |
_setShowResetButton(java.lang.Object value)
should the Reset button be displayed in the FindPanel |
protected void |
_setShowStatusBar(java.lang.Object value)
should the Status bar displayed in the FindPanel |
protected void |
_setUserData(int colIndex,
java.lang.Object value)
|
protected void |
_showButtonHelper(int order,
java.lang.Object val)
A helper method to show/hide button |
protected void |
_updateButtonState()
|
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. |
protected java.awt.Component |
createPanel()
|
protected int |
getColumnCount()
|
protected DataPanel |
getCurrentDataPanel()
|
protected int |
getCurrentViewCriteriaRow()
|
protected FindItemEditor |
getFindItemEditor(int col)
|
protected FindItemModel |
getFindItemModel(int row,
int col)
|
java.lang.Object |
getProperty(int property)
get property value |
protected boolean |
isCaseSensitiveSearch()
|
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 listener)
Removes a button listener |
protected void |
setCurrentViewCriteriaRow(int row)
|
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 |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
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 _labelStatusBar
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 java.lang.String _tooltipText
protected int _labelPosition
protected int _itemDirection
protected javax.swing.Icon _findIcon
protected boolean _enabled
protected javax.swing.JButton[] _buttons
protected boolean[] _buttonState
protected javax.swing.JTabbedPane _tabbedPane
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 int _lastViewCriteriaNum
protected ViewCriteriaModifier _modifier
protected javax.swing.JButton _buttonWidthCalculateHelper
protected oracle.dacf.control.swing.find.EditItemInvoker[] _editInvokers
protected FindItemEditor[] _editors
Constructor Detail |
public ViewCriteriaFindPanelUI()
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
protected java.awt.Component createPanel()
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 listener)
listener
- The listener to remove.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- ActionEvent object with event detailspublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
protected java.lang.String _getColumnValue(int column)
protected void _setColumnValue(int column, java.lang.Object val)
protected java.lang.String _getColumnDisplayLabel(int column)
column
- index
protected int _getViewCriteriaRowCount()
protected void _newViewCriteriaRow()
protected void _deleteViewCriteriaRow()
protected void _deleteAllViewCriteriaRow()
protected void setCurrentViewCriteriaRow(int row)
protected int getCurrentViewCriteriaRow()
protected int getColumnCount()
protected int _getSQLType(int i)
protected boolean isCaseSensitiveSearch()
protected void _rebuildUI()
protected DataPanel _addViewCriteriaRowPanel(int asRow)
protected void _refreshDataPanel(DataPanel d, boolean queryNewValues)
protected void _removeViewCriteriaRowPanel(int curRow)
protected void _removeAllViewCriteriaRowPanel()
protected void _ensureMinimalRequiredRows()
protected void _changeFocusToFindButton()
protected javax.swing.JPanel _createButtonPanel()
protected javax.swing.JPanel _createContentPanel()
protected javax.swing.JPanel _createBottomPanel()
protected void _doButtonFind()
protected void _doButtonReset()
protected void _doButtonClose()
protected void _doButtonHelp()
protected void _doButtonOr()
protected void _doButtonRemove()
protected void _doButtonRemoveAll()
protected void _updateButtonState()
protected void _displayMessageDialog(java.lang.String message, int style)
message
- to be displayedstyle
- for the dialogprotected javax.swing.Icon _loadDefaultIcon()
protected void _applyProperties()
protected java.lang.String _getTooltipText(int column)
column
- index for which the tooltip should be obtained
protected void _setFindIcon(java.lang.Object value)
value
- icon for the find panelprotected void _setShowFindIcon(java.lang.Object value)
value
- boolean value to indicate if the Find icon should be
displayedprotected void _setShowFindButton(java.lang.Object value)
value
- a boolean value to indicate if the Find button should be
displayedprotected void _setShowCloseButton(java.lang.Object value)
value
- a boolean value to indicate if the Close button should be
displayedprotected void _setShowResetButton(java.lang.Object value)
value
- a boolean value to indicate if the Reset button should be
displayedprotected void _setShowHelpButton(java.lang.Object value)
value
- a boolean value to indicate if the Help button should be
displayedprotected void _setCustomEditors(java.lang.Object value)
protected void _destroyEditInvokers()
protected void _initEditInvokers(FindItemEditor[] editors)
protected void _setEditorsOnDataPanel()
protected void _setShowStatusBar(java.lang.Object value)
value
- a boolean value to indicate if the status bar should be
displayedprotected void _setShowORButton(java.lang.Object value)
value
- a boolean value to indicate if the OR button should be
displayedprotected void _setShowRemoveButton(java.lang.Object value)
value
- a boolean value to indicate if the Remove button should be
displayedprotected void _setShowRemoveAllButton(java.lang.Object value)
value
- a boolean value to indicate if the RemoveAll button
should be displayedprotected boolean _isDisableAutomaticWildCardInSearch()
protected void _enableControls(boolean flag)
public void _notifyButtonClick(int whichButton)
whichButton
- a constant indicating which button was clickedprotected void _showButtonHelper(int order, java.lang.Object val)
protected int _getButtonPosition(int order)
protected boolean _isDataPublished()
protected void _notifyPropertyChange(int whichProperty, java.lang.Object newValue)
protected int _getRefreshedRowIndex(DataPanel dataPanel)
protected java.lang.String _modifyQueryCriteriaValue(int sqlType, java.lang.Object value, boolean useSpecialChars, java.lang.Object param)
protected void _setUserData(int colIndex, java.lang.Object value)
protected java.lang.Object _getUserData(int colIndex)
protected java.awt.Dimension _determineMinButtonSize(javax.swing.JButton b, java.awt.Dimension desiredSize)
protected DataPanel getCurrentDataPanel()
protected FindItemEditor getFindItemEditor(int col)
protected FindItemModel getFindItemModel(int row, int col)
|
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.