com.jgoodies.looks.common

Class ExtPasswordView


public final class ExtPasswordView
extends PasswordView

Differs from its superclass in that it uses the UIManager's echo char, not a star ("*"). Used in Java 1.4 and Java 5 only.
Version:
$Revision: 1.9 $
Author:
Karsten Lentzsch

Constructor Summary

ExtPasswordView(Element element)

Method Summary

protected int
drawEchoCharacter(Graphics g, int x, int y, char c)
Overrides the superclass behavior to draw the Windows dot, not the star ("*") character.
float
getPreferredSpan(int axis)
Shape
modelToView(int pos, Shape a, Position.Bias b)
int
viewToModel(float fx, float fy, Shape a, Position.Bias[] bias)

Constructor Details

ExtPasswordView

public ExtPasswordView(Element element)

Method Details

drawEchoCharacter

protected int drawEchoCharacter(Graphics g,
                                int x,
                                int y,
                                char c)
Overrides the superclass behavior to draw the Windows dot, not the star ("*") character.
Parameters:
g - the graphics context
x - the starting X coordinate >= 0
y - the starting Y coordinate >= 0
c - the echo character
Returns:
the updated X position >= 0

getPreferredSpan

public float getPreferredSpan(int axis)

modelToView

public Shape modelToView(int pos,
                         Shape a,
                         Position.Bias b)
            throws BadLocationException

viewToModel

public int viewToModel(float fx,
                       float fy,
                       Shape a,
                       Position.Bias[] bias)

Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.