public class ContactSearchFieldUI extends SearchFieldUI implements Skinnable
isCallIconVisible, isSMSIconVisible
BUTTON_GAP, deleteButton, isDeleteMouseOver, isDeleteMousePressed
Constructor and Description |
---|
ContactSearchFieldUI() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a UI for a SearchFieldUI.
|
protected void |
customPaintBackground(java.awt.Graphics g)
Paints the background of the associated component.
|
void |
removeListeners()
Removes all listeners that were added earlier.
|
void |
setCallButtonEnabled(boolean isEnabled)
Enables/disabled the call button in the search field.
|
void |
setSMSButtonEnabled(boolean isEnabled)
Enables/disabled the sms button in the search field.
|
void |
setupListeners()
Setups the listeners used in ContactSearchFieldUI.
|
protected void |
updateIcon(java.awt.event.MouseEvent ev)
Creates a call when the mouse is clicked on the call icon.
|
getCallButtonRect, getSMSButtonRect, getVisibleEditorRect, loadSkin, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintSafely
getDeleteButtonRect, installListeners, isDeleteButtonEnabled, setBgBorderEndColor, setBgBorderStartColor, setBgEndColor, setBgStartColor, setDeleteButtonEnabled, uninstallListeners, updateDeleteIcon
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, installDefaults, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the text fieldpublic void setupListeners()
public void setCallButtonEnabled(boolean isEnabled)
SearchFieldUI
setCallButtonEnabled
in class SearchFieldUI
isEnabled
- indicates if the call button is enabledpublic void setSMSButtonEnabled(boolean isEnabled)
SearchFieldUI
setSMSButtonEnabled
in class SearchFieldUI
isEnabled
- indicates if the sms button is enabledprotected void customPaintBackground(java.awt.Graphics g)
customPaintBackground
in class SearchFieldUI
g
- the Graphics object used for paintingprotected void updateIcon(java.awt.event.MouseEvent ev)
updateIcon
in class SearchFieldUI
ev
- the mouse event that has prompted us to create the call.public void removeListeners()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.