public class DialPadFieldUI extends SIPCommTextFieldUI implements Skinnable
BUTTON_GAP, deleteButton, isDeleteMouseOver, isDeleteMousePressed
Constructor and Description |
---|
DialPadFieldUI()
Creates a SIPCommTextFieldUI.
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a UI.
|
protected void |
customPaintBackground(java.awt.Graphics g)
Paints the background of the associated component.
|
protected java.awt.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(java.awt.Graphics g)
Implements parent paintSafely method and enables antialiasing.
|
getDeleteButtonRect, isDeleteButtonEnabled, loadSkin, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, 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
protected void installListeners()
installListeners
in class SIPCommTextFieldUI
protected void paintSafely(java.awt.Graphics g)
paintSafely
in class javax.swing.plaf.basic.BasicTextUI
g
- the Graphics object that notified usprotected void customPaintBackground(java.awt.Graphics g)
customPaintBackground
in class SIPCommTextFieldUI
g
- the Graphics object used for paintingprotected java.awt.Rectangle getVisibleEditorRect()
getVisibleEditorRect
in class SIPCommTextFieldUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the text field
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.