org.jdesktop.swingx.plaf
Class SearchFieldUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- org.jdesktop.swingx.plaf.PromptTextUI
-
- org.jdesktop.swingx.plaf.PromptTextFieldUI
-
- org.jdesktop.swingx.plaf.BuddyTextFieldUI
-
- org.jdesktop.swingx.plaf.SearchFieldUI
-
public class SearchFieldUI extends BuddyTextFieldUI
The defaultJXSearchFieldUI delegate.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.awt.InsetsNO_INSETS
-
Constructor Summary
Constructors Constructor and Description SearchFieldUI(javax.swing.plaf.TextUI delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinstallUI(javax.swing.JComponent c)CallsinstallDefaults(), adds the search, clear and popup button to the search field and registers aPropertyChangeListeneradDocumentListenerand anActionListeneron the popup button.voiduninstallUI(javax.swing.JComponent c)Removes all installed listeners, the layout and resets the search field original border and removes all children.booleanusingSeperatePopupButton()ReturnstrueifJXSearchField.isUseSeperatePopupButton()istrueand a search popup menu has been set.-
Methods inherited from class org.jdesktop.swingx.plaf.BuddyTextFieldUI
getPreferredSize, paint
-
Methods inherited from class org.jdesktop.swingx.plaf.PromptTextFieldUI
getPromptComponent
-
Methods inherited from class org.jdesktop.swingx.plaf.PromptTextUI
contains, damageRange, damageRange, equals, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getEditorKit, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, hashCode, modelToView, modelToView, shouldPaintPrompt, toString, update, viewToModel, viewToModel
-
-
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
CallsinstallDefaults(), adds the search, clear and popup button to the search field and registers aPropertyChangeListeneradDocumentListenerand anActionListeneron the popup button.- Overrides:
installUIin classBuddyTextFieldUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
Removes all installed listeners, the layout and resets the search field original border and removes all children.- Overrides:
uninstallUIin classBuddyTextFieldUI
-
usingSeperatePopupButton
public boolean usingSeperatePopupButton()
ReturnstrueifJXSearchField.isUseSeperatePopupButton()istrueand a search popup menu has been set.- Returns:
- the popup button is used in addition to the search button
-
-
DataMelt 3.0 © DataMelt by jWork.ORG