Package com.tagtraum.beatunes
Class SearchTextField
- java.lang.Object
-
- com.tagtraum.beatunes.SearchTextField
-
public abstract class SearchTextField extends Object
Search TextField abstract that covers the new Leopard way of customizing JTextFields and the old (Tiger and Windows) way of a panel with a textfield and a button.- Author:
- Hendrik Schreiber
- See Also:
- TN 2196
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SearchTextField()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BaseAction
getCancelAction()
abstract JComponent
getComponent()
JPopupMenu
getFindPopup()
abstract Font
getFont()
abstract String
getPrompt()
abstract JTextField
getTextField()
void
init(SearchTextField oldSearchTextField)
Init from old instance.static SearchTextField
newInstance()
static SearchTextField
newInstance(Theme theme)
void
setCancelAction(BaseAction cancelAction)
void
setFindPopup(JPopupMenu popup)
abstract void
setFont(Font font)
abstract void
setPrompt(String prompt)
-
-
-
Method Detail
-
getTextField
public abstract JTextField getTextField()
-
getComponent
public abstract JComponent getComponent()
-
setCancelAction
public void setCancelAction(BaseAction cancelAction)
-
getCancelAction
public BaseAction getCancelAction()
-
setFindPopup
public void setFindPopup(JPopupMenu popup)
-
setFont
public abstract void setFont(Font font)
-
getFont
public abstract Font getFont()
-
setPrompt
public abstract void setPrompt(String prompt)
-
getPrompt
public abstract String getPrompt()
-
getFindPopup
public JPopupMenu getFindPopup()
-
init
public void init(SearchTextField oldSearchTextField)
Init from old instance.- Parameters:
oldSearchTextField
- old instance
-
newInstance
public static SearchTextField newInstance()
-
newInstance
public static SearchTextField newInstance(Theme theme)
-
-