public class SearchUIJPanel extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADV_BUTTON_CAPTION |
static java.lang.String |
CANCEL_BUTTON_CAPTION |
static java.lang.String |
SEARCH_BUTTON_CAPTION |
static boolean |
SEARCHREPOS |
static java.lang.String |
SOURCE_BUTTON_CAPTION |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SearchUIJPanel()
Empty constructor.
|
SearchUIJPanel(java.lang.String panelBorderTitle,
javax.swing.Action searchButtonAction,
javax.swing.Action resetButtonAction,
javax.swing.Action cancelButtonAction,
javax.swing.Action sourceButtonAction,
javax.swing.Action advancedButtonAction)
Constructor - creates a panel with a titled border (from String param
panelBorderTitle), containing a textfield with up to 5 buttons beneath
it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closing() |
javax.swing.Action |
getAdvancedAction()
Returns the javax.swing.Action object that is called when the Advanced
button is pressed.
|
java.lang.String |
getBorderTitle()
Returns the border title for this search panel.
|
javax.swing.Action |
getCancelAction()
Returns the javax.swing.Action object that is called when the Cancel
button is pressed.
|
int |
getMinimumWidth()
get the preferred/minimum width of this panel - calculated to allow
enough space for all buttons and spacers etc
|
javax.swing.Action |
getSearchAction()
Returns the javax.swing.Action object that is called when the Search
button is pressed.
|
java.lang.String |
getSearchTerm() |
javax.swing.Action |
getSourceAction()
Returns the javax.swing.Action object that is called when the Source
button is pressed.
|
void |
init()
Initialize the search panel.
|
void |
setAdvancedAction(javax.swing.Action advancedAction)
Sets the Action to be used when the Advanced button is pressed.
|
void |
setAllSearchEnabled(boolean enabled)
Enables/disables _all_ Search buttons we will use this to disable all
buttons as we fetch datasources from the repository if enabled==true,
enable the textfield, search, reset, source and advanced buttons, and
cancel button.
|
void |
setBorderTitle(java.lang.String borderTitle) |
void |
setCancelAction(javax.swing.Action cancelAction)
Sets the Action to be used when the Cancel button is pressed.
|
void |
setCancelButtonEnabled(boolean enabled) |
void |
setSearchAction(javax.swing.Action searchAction)
Sets the Action to be used when the Search button is pressed.
|
void |
setSearchEnabled(boolean enabled)
if enabled==true, enable the textfield, search, reset, source and
advanced buttons, and disable the cancel button.
|
void |
setSearchTerm(java.lang.String searchTerm)
set the current search term String in the textfield
|
void |
setSourceAction(javax.swing.Action sourceAction)
Sets the Action to be used when the Source button is pressed.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic static boolean SEARCHREPOS
public static final java.lang.String SEARCH_BUTTON_CAPTION
public static final java.lang.String CANCEL_BUTTON_CAPTION
public static final java.lang.String SOURCE_BUTTON_CAPTION
public static final java.lang.String ADV_BUTTON_CAPTION
public SearchUIJPanel()
public SearchUIJPanel(java.lang.String panelBorderTitle, javax.swing.Action searchButtonAction, javax.swing.Action resetButtonAction, javax.swing.Action cancelButtonAction, javax.swing.Action sourceButtonAction, javax.swing.Action advancedButtonAction)
javax.swing.Action objects for
these 5 buttons; if any of these Action objects is null, the button will
not be displayed on the user interface at runtimepanelBorderTitle - StringsearchButtonAction - ActionresetButtonAction - ActioncancelButtonAction - ActionsourceButtonAction - ActionadvancedButtonAction - Actionpublic java.lang.String getBorderTitle()
public void setBorderTitle(java.lang.String borderTitle)
public javax.swing.Action getSearchAction()
public void setSearchAction(javax.swing.Action searchAction)
searchAction - the Action to be used when the Search button is pressedpublic javax.swing.Action getCancelAction()
public void setCancelAction(javax.swing.Action cancelAction)
cancelAction - the Action to be used when the Cancel button is pressedpublic javax.swing.Action getSourceAction()
public void setSourceAction(javax.swing.Action sourceAction)
sourceAction - the Action to be used when the Source button is pressedpublic javax.swing.Action getAdvancedAction()
public void setAdvancedAction(javax.swing.Action advancedAction)
advancedAction - the Action to be used when the Advanced button is pressedpublic java.lang.String getSearchTerm()
public final int getMinimumWidth()
public void setSearchTerm(java.lang.String searchTerm)
searchTerm - Stringpublic void setSearchEnabled(boolean enabled)
enabled - booleanpublic void setCancelButtonEnabled(boolean enabled)
public void setAllSearchEnabled(boolean enabled)
enabled - booleanpublic void init()
public void closing()