|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.PlainView
javax.swing.text.FieldView
javax.swing.text.PasswordView
com.jgoodies.looks.common.ExtPasswordView
public final class ExtPasswordView
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.
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.PlainView |
|---|
metrics |
| Fields inherited from class javax.swing.text.View |
|---|
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
ExtPasswordView(javax.swing.text.Element element)
|
|
| Method Summary | |
|---|---|
protected int |
drawEchoCharacter(java.awt.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)
|
java.awt.Shape |
modelToView(int pos,
java.awt.Shape a,
javax.swing.text.Position.Bias b)
|
int |
viewToModel(float fx,
float fy,
java.awt.Shape a,
javax.swing.text.Position.Bias[] bias)
|
| Methods inherited from class javax.swing.text.PasswordView |
|---|
drawSelectedText, drawUnselectedText |
| Methods inherited from class javax.swing.text.FieldView |
|---|
adjustAllocation, getFontMetrics, getResizeWeight, insertUpdate, paint, removeUpdate |
| Methods inherited from class javax.swing.text.PlainView |
|---|
changedUpdate, damageLineRange, drawLine, getLineBuffer, getTabSize, lineToRect, nextTabStop, setSize, updateDamage, updateMetrics |
| Methods inherited from class javax.swing.text.View |
|---|
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtPasswordView(javax.swing.text.Element element)
| Method Detail |
|---|
public float getPreferredSpan(int axis)
getPreferredSpan in class javax.swing.text.PasswordView
public java.awt.Shape modelToView(int pos,
java.awt.Shape a,
javax.swing.text.Position.Bias b)
throws javax.swing.text.BadLocationException
modelToView in class javax.swing.text.PasswordViewjavax.swing.text.BadLocationException
public int viewToModel(float fx,
float fy,
java.awt.Shape a,
javax.swing.text.Position.Bias[] bias)
viewToModel in class javax.swing.text.PasswordView
protected int drawEchoCharacter(java.awt.Graphics g,
int x,
int y,
char c)
drawEchoCharacter in class javax.swing.text.PasswordViewg - the graphics contextx - the starting X coordinate >= 0y - the starting Y coordinate >= 0c - the echo character
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||