|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
javax.swing.plaf.metal.MetalTextFieldUI
net.java.sip.communicator.util.swing.plaf.SIPCommTextFieldUI
net.java.sip.communicator.impl.gui.main.contactlist.SearchFieldUI
public class SearchFieldUI
The SearchTextFieldUI is the one responsible for the search field look & feel. It draws a search icon inside the field and adjusts the bounds of the editor rectangle according to it.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter |
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.util.swing.plaf.SIPCommTextFieldUI |
|---|
BUTTON_GAP, deleteButton, isDeleteMouseOver |
| Constructor Summary | |
|---|---|
SearchFieldUI()
Creates a SIPCommTextFieldUI. |
|
| Method Summary | |
|---|---|
static ComponentUI |
createUI(JComponent c)
Creates a UI for a SearchFieldUI. |
protected void |
customPaintBackground(Graphics g)
Paints the background of the associated component. |
protected Rectangle |
getCallButtonRect()
Calculates the call button rectangle. |
protected Rectangle |
getVisibleEditorRect()
If we are in the case of disabled delete button, we simply call the parent implementation of this method, otherwise we recalculate the editor rectangle in order to leave place for the delete button. |
void |
loadSkin()
Reloads UI icons. |
void |
mouseClicked(MouseEvent e)
Updates the call button when the mouse was clicked. |
void |
mouseDragged(MouseEvent e)
Updates the delete icon when the mouse is dragged over. |
void |
mouseEntered(MouseEvent e)
Updates the call button when the mouse is enters the component area. |
void |
mouseExited(MouseEvent e)
Updates the call button when the mouse exits the component area. |
void |
mouseMoved(MouseEvent e)
Updates the delete icon when the mouse is moved over. |
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
protected void |
paintSafely(Graphics g)
Implements parent paintSafely method and enables antialiasing. |
| Methods inherited from class net.java.sip.communicator.util.swing.plaf.SIPCommTextFieldUI |
|---|
getDeleteButtonRect, installListeners, isDeleteButtonEnabled, setBgBorderEndColor, setBgBorderStartColor, setBgEndColor, setBgStartColor, setDeleteButtonEnabled, uninstallListeners, updateDeleteIcon |
| Methods inherited from class javax.swing.plaf.metal.MetalTextFieldUI |
|---|
propertyChange |
| Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI |
|---|
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix |
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
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 |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchFieldUI()
| Method Detail |
|---|
protected void paintSafely(Graphics g)
paintSafely in class BasicTextUIg - the Graphics object that notified usprotected void customPaintBackground(Graphics g)
customPaintBackground in class SIPCommTextFieldUIg - the Graphics object used for paintingprotected Rectangle getVisibleEditorRect()
getVisibleEditorRect in class SIPCommTextFieldUIpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenermouseClicked in class SIPCommTextFieldUIe - the MouseEvent that notified us of the clickpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenermouseEntered in class SIPCommTextFieldUIe - the MouseEvent that notified uspublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class SIPCommTextFieldUIe - the MouseEvent that notified uspublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class SIPCommTextFieldUIpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class SIPCommTextFieldUIpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class SIPCommTextFieldUIe - the MouseEvent that notified uspublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class SIPCommTextFieldUIe - the MouseEvent that notified usprotected Rectangle getCallButtonRect()
public void loadSkin()
loadSkin in interface SkinnableloadSkin in class SIPCommTextFieldUIpublic static ComponentUI createUI(JComponent c)
c - the text field
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||