public class PSearchBasePanel extends JPanel implements ActionListener, ItemListener, PIASelectionListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected PAccountsEntryPanel |
accountsEntryPanel |
protected PAccountsResultsPanel |
accountsResultsPanel |
protected PBillsEntryPanel |
billsEntryPanel |
protected PBillsResultsPanel |
billsResultsPanel |
protected JComboBox |
cBox |
protected JPanel |
compsPanel |
protected JLabel |
searchTypeLabel |
protected JPanel |
statusPanel |
protected JPanel |
stPanel |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PSearchBasePanel()
Creates the search base panel without any search type panels
|
PSearchBasePanel(PSearchComponents[] comps)
Creates the search base panel using the data found in PSearchComponents.
|
PSearchBasePanel(String ep,
String rp)
Creates the search panels and controls
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Event handler for All Brands check box.
|
void |
addNotify() |
void |
addSearchComponent(PSearchComponents comp)
Adds the given search components to the panel.
|
void |
conductGlobalSearch()
Call this method to revert the search scope back to global
after conducting a singel db search.
|
void |
conductSingleDBSearch(long dbID)
Enables the search in a single known DB with the specified id;
by default, the search is performed as global.
|
void |
createBrandControl()
Creates and adds the branding widget adjecent to the search type control.
|
void |
createComboBoxControl()
Creates search type selection control: a combo box.
|
void |
createCompsPanel()
Create and configure a component panel that holds the control buttons
|
void |
createStatusPanel()
Create a status panel with a status label and an animation icon.
|
PSearchProducer |
getAccountsEntryPanel()
Retrieves the accounts entry panel that has been assigned.
|
PSearchConsumer |
getAccountsResultsPanel()
Retrieves the accounts results panel that has been assigned.
|
PSearchProducer |
getBillsEntryPanel()
Retrieves the bills entry panel that has been assigned.
|
PSearchConsumer |
getBillsResultsPanel()
Retrieves the bills results panel that has been assigned.
|
JButton |
getHelpButton()
getHelpButton
returns the help button reference
|
PModelHandle[] |
getSelectedAccount()
Retrieves p-model handle for the selected item in the results table
|
JPanel |
getStatusPanel() |
void |
hideDialog() |
boolean |
isBrandSelectionControlsDisabled()
Returns the disabled state of the brand control widget
|
boolean |
isPinned()
Retrieves the push pin status
|
void |
itemStateChanged(ItemEvent e)
Event handler for combo box.
|
void |
loadSearchTypePanels(String ep,
String rp)
Creates the search entry panel and search results panel for each type
and adds them to the cardlayout in the search type panel.
|
void |
removeBrandSelectionControls()
removes brand selection controls
|
void |
removeSearchTypeControl()
Removes the search type combo box, and retains only the accounts
seach panel for display
|
void |
removeSearchTypeLabel()
Removes the search type selection label
|
void |
selectionChanged(PIASelectionEvent event)
Selection handler that navigates to the selected account.
|
void |
setBrandingScope(PScopeEntryPoint ep)
Allows to change the branding scope by assigning the new brand directly on
the brand tree object.
|
void |
setBrandSelectionControlsDisabled(boolean status)
Disables brand selection controls
|
void |
setPinned(boolean b)
Assign a boolean pin status, true for pinning or else false
|
void |
setPinVisible(boolean b)
setPinVisible
set if pin toggle button should be visible or not
|
void |
setPreviousSelectionNull()
Before start new search set the previous selection to null
|
void |
setSearchButtonsEnable(boolean resetState,
boolean stopState,
boolean searchState)
Enables or disables the search buttons based on the boolean value passed.
|
void |
setSearchButtonsVisible(boolean resetState,
boolean stopState,
boolean searchState,
boolean closeState) |
void |
setSearchTypeControlDisabled(boolean status)
Disables search type combo box, which retains only the accounts
seach panel for display
|
void |
setSingleDBSearchID(long id)
Specifies the database ID to conduct single db search
|
void |
setStatus(String text,
boolean accountStatus)
Sets the status panel status.
|
void |
showCurrentAccount()
Displays the current account in the application main window.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, 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
add, add, add, add, add, addContainerListener, addImpl, 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, setLayout, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
protected JPanel compsPanel
protected JLabel searchTypeLabel
protected JComboBox cBox
protected JPanel stPanel
protected JPanel statusPanel
protected PAccountsEntryPanel accountsEntryPanel
protected PBillsEntryPanel billsEntryPanel
protected PAccountsResultsPanel accountsResultsPanel
protected PBillsResultsPanel billsResultsPanel
public PSearchBasePanel()
public PSearchBasePanel(PSearchComponents[] comps)
comps
- an array of search panels to load into the windowpublic void addSearchComponent(PSearchComponents comp)
comps
- an array of search panels to load into the windowpublic void createCompsPanel()
public void loadSearchTypePanels(String ep, String rp)
ep
- properties string of entry panelsrp
- properties string of results panelspublic void createComboBoxControl()
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void conductSingleDBSearch(long dbID)
dbID
- database idpublic void conductGlobalSearch()
public void setSingleDBSearchID(long id)
id
- database idpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void createBrandControl()
public void addNotify()
addNotify
in class JComponent
public void setBrandingScope(PScopeEntryPoint ep)
ep
- scope entry pointpublic void setSearchTypeControlDisabled(boolean status)
public void removeSearchTypeControl()
public void removeSearchTypeLabel()
public boolean isBrandSelectionControlsDisabled()
public void setBrandSelectionControlsDisabled(boolean status)
public void removeBrandSelectionControls()
public void createStatusPanel()
public void setStatus(String text, boolean accountStatus)
text
- status textaccountStatus
- true means account status else bills statuspublic void selectionChanged(PIASelectionEvent event)
selectionChanged
in interface PIASelectionListener
event
- the event to handlepublic void setPreviousSelectionNull()
public void showCurrentAccount()
public PModelHandle[] getSelectedAccount()
public void hideDialog()
public PSearchProducer getAccountsEntryPanel()
public PSearchConsumer getAccountsResultsPanel()
public PSearchProducer getBillsEntryPanel()
public PSearchConsumer getBillsResultsPanel()
public boolean isPinned()
public void setPinned(boolean b)
public void setPinVisible(boolean b)
b
- booleanpublic void setSearchButtonsVisible(boolean resetState, boolean stopState, boolean searchState, boolean closeState)
public void setSearchButtonsEnable(boolean resetState, boolean stopState, boolean searchState)
resetState
- boolean true means enables the reset button else disables it.stopState
- boolean true means enables the stop button else disables it.searchState
- boolean true means enables the search button else disables it.public JButton getHelpButton()
public JPanel getStatusPanel()
Copyright © 2003, 2023, Oracle and/or its affiliates.