Package org.jdesktop.swingx.search
Class NativeSearchFieldSupport
- java.lang.Object
-
- org.jdesktop.swingx.search.NativeSearchFieldSupport
-
public class NativeSearchFieldSupport extends java.lang.ObjectTODO: comment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classNativeSearchFieldSupport.SearchFieldUIChangeHandler
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCANCEL_ACTION_PROPERTYstatic java.lang.StringFIND_ACTION_PROPERTYstatic java.lang.StringFIND_POPUP_PROPERTYstatic java.lang.StringMAC_SEARCH_VARIANTstatic java.lang.StringMAC_TEXT_FIELD_VARIANT_PROPERTYprivate static NativeSearchFieldSupport.SearchFieldUIChangeHandleruiChangeHandler
-
Constructor Summary
Constructors Constructor Description NativeSearchFieldSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.event.ActionListenergetCancelAction(javax.swing.JTextField txt)static java.awt.event.ActionListenergetFindAction(javax.swing.JTextField txt)static javax.swing.JPopupMenugetFindPopupMenu(javax.swing.JTextField txt)static booleanisNativeSearchField(javax.swing.JTextField txt)static booleanisNativeSearchFieldSupported()static booleanisSearchField(javax.swing.JTextField txt)static voidsetCancelAction(javax.swing.JTextField txt, java.awt.event.ActionListener cancelAction)static voidsetFindAction(javax.swing.JTextField txt, java.awt.event.ActionListener findAction)static voidsetFindPopupMenu(javax.swing.JTextField txt, javax.swing.JPopupMenu popupMenu)static voidsetSearchField(javax.swing.JTextField txt, boolean isSearchField)
-
-
-
Field Detail
-
FIND_POPUP_PROPERTY
public static final java.lang.String FIND_POPUP_PROPERTY
- See Also:
- Constant Field Values
-
FIND_ACTION_PROPERTY
public static final java.lang.String FIND_ACTION_PROPERTY
- See Also:
- Constant Field Values
-
MAC_SEARCH_VARIANT
public static final java.lang.String MAC_SEARCH_VARIANT
- See Also:
- Constant Field Values
-
MAC_TEXT_FIELD_VARIANT_PROPERTY
public static final java.lang.String MAC_TEXT_FIELD_VARIANT_PROPERTY
- See Also:
- Constant Field Values
-
CANCEL_ACTION_PROPERTY
public static final java.lang.String CANCEL_ACTION_PROPERTY
- See Also:
- Constant Field Values
-
uiChangeHandler
private static final NativeSearchFieldSupport.SearchFieldUIChangeHandler uiChangeHandler
-
-
Method Detail
-
isNativeSearchFieldSupported
public static boolean isNativeSearchFieldSupported()
- Returns:
trueif we run Leopard and the Mac Look And Feel.
-
setSearchField
public static void setSearchField(javax.swing.JTextField txt, boolean isSearchField)
-
isSearchField
public static boolean isSearchField(javax.swing.JTextField txt)
-
isNativeSearchField
public static boolean isNativeSearchField(javax.swing.JTextField txt)
-
setFindPopupMenu
public static void setFindPopupMenu(javax.swing.JTextField txt, javax.swing.JPopupMenu popupMenu)
-
getFindPopupMenu
public static javax.swing.JPopupMenu getFindPopupMenu(javax.swing.JTextField txt)
-
setFindAction
public static void setFindAction(javax.swing.JTextField txt, java.awt.event.ActionListener findAction)
-
getFindAction
public static java.awt.event.ActionListener getFindAction(javax.swing.JTextField txt)
-
setCancelAction
public static void setCancelAction(javax.swing.JTextField txt, java.awt.event.ActionListener cancelAction)
-
getCancelAction
public static java.awt.event.ActionListener getCancelAction(javax.swing.JTextField txt)
-
-