Package org.jdesktop.swingx.search
Class NativeSearchFieldSupport
java.lang.Object
org.jdesktop.swingx.search.NativeSearchFieldSupport
NativeSearchFieldSupport for Mac
- Author:
- Peter Weishapl petw@gmx.net
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionListener
static ActionListener
getFindAction
(JTextField txt) static JPopupMenu
static boolean
static boolean
static boolean
isSearchField
(JTextField txt) static void
setCancelAction
(JTextField txt, ActionListener cancelAction) static void
setFindAction
(JTextField txt, ActionListener findAction) static void
setFindPopupMenu
(JTextField txt, JPopupMenu popupMenu) static void
setSearchField
(JTextField txt, boolean isSearchField)
-
Field Details
-
FIND_POPUP_PROPERTY
- See Also:
-
FIND_ACTION_PROPERTY
- See Also:
-
MAC_SEARCH_VARIANT
- See Also:
-
MAC_TEXT_FIELD_VARIANT_PROPERTY
- See Also:
-
CANCEL_ACTION_PROPERTY
- See Also:
-
-
Constructor Details
-
NativeSearchFieldSupport
public NativeSearchFieldSupport()
-
-
Method Details
-
isNativeSearchFieldSupported
public static boolean isNativeSearchFieldSupported()- Returns:
true
if we run Leopard and the Mac Look And Feel.
-
setSearchField
-
isSearchField
-
isNativeSearchField
-
setFindPopupMenu
-
getFindPopupMenu
-
setFindAction
-
getFindAction
-
setCancelAction
-
getCancelAction
-