net.java.sip.communicator.impl.gui.main
Class DialPadFieldUI
java.lang.Object
javax.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.DialPadFieldUI
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener, ViewFactory, Skinnable
public class DialPadFieldUI
- extends SIPCommTextFieldUI
- implements Skinnable
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.
- Author:
- Yana Stamcheva, Adam Netocny
|
Method Summary |
static ComponentUI |
createUI(JComponent c)
Creates a UI. |
protected void |
customPaintBackground(Graphics g)
Paints the background of the associated component. |
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. |
protected void |
installListeners()
Adds the custom mouse listeners defined in this class to the installed
listeners. |
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, isDeleteButtonEnabled, loadSkin, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setBgBorderEndColor, setBgBorderStartColor, setBgEndColor, setBgStartColor, setDeleteButtonEnabled, uninstallListeners, updateDeleteIcon |
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.util.skin.Skinnable |
loadSkin |
DialPadFieldUI
public DialPadFieldUI()
- Creates a SIPCommTextFieldUI.
installListeners
protected void installListeners()
- Adds the custom mouse listeners defined in this class to the installed
listeners.
- Overrides:
installListeners in class SIPCommTextFieldUI
paintSafely
protected void paintSafely(Graphics g)
- Implements parent paintSafely method and enables antialiasing.
- Overrides:
paintSafely in class BasicTextUI
- Parameters:
g - the Graphics object that notified us
customPaintBackground
protected void customPaintBackground(Graphics g)
- Paints the background of the associated component.
- Overrides:
customPaintBackground in class SIPCommTextFieldUI
- Parameters:
g - the Graphics object used for painting
getVisibleEditorRect
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.
- Overrides:
getVisibleEditorRect in class SIPCommTextFieldUI
- Returns:
- the visible editor rectangle
createUI
public static ComponentUI createUI(JComponent c)
- Creates a UI.
- Parameters:
c - the text field
- Returns:
- the UI
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.