org.nakedobjects.plugins.dnd.viewer.view.field
Class PasswordField
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
org.nakedobjects.plugins.dnd.viewer.view.field.TextParseableFieldAbstract
org.nakedobjects.plugins.dnd.viewer.view.field.TextField
org.nakedobjects.plugins.dnd.viewer.view.field.PasswordField
- All Implemented Interfaces:
- java.lang.Cloneable, View, TextBlockTarget
public class PasswordField
- extends TextField
|
Method Summary |
protected void |
align()
|
void |
contentMenuOptions(UserActionSet options)
Called when the popup menu is being populated for this view. |
void |
delete()
Only allow deletion of last character, ie don;t allow editing of the internals of the password. |
protected void |
drawHighlight(Canvas canvas,
int maxWidth)
|
protected void |
drawLines(Canvas canvas,
Color color,
int width)
|
protected void |
drawText(Canvas canvas,
Color textColor,
int width)
|
protected void |
end(boolean alt,
boolean shift)
disable end key. |
Size |
getMaximumSize()
|
protected void |
home(boolean alt,
boolean shift)
disable home key. |
protected void |
left(boolean alt,
boolean shift)
disable left key. |
protected void |
pageDown(boolean shift,
boolean ctrl)
disable page down key. |
protected void |
pageUp(boolean shift,
boolean ctrl)
disable page up key. |
protected boolean |
provideClearCopyPaste()
|
protected void |
right(boolean alt,
boolean shift)
disable right key. |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.TextField |
changeMade, clear, copyToClipboard, debug, deleteForward, down, drag, dragStart, dragTo, draw, editComplete, enter, entered, escape, exited, firstClick, focusLost, focusReceived, getBaseline, getMaxFieldWidth, getText, hasInvalidEntry, isIdentified, keyPressed, keyReleased, keyTyped, pasteFromClipboard, refresh, save, secondClick, setSize, setWidth, tab, thirdClick, up |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField |
canFocus, dragCancel, dragFrom, getIdentified, getPadding, getRoot, hasFocus, indicatesForView, initiateSave, toString, viewAreaType |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView |
addView, assignId, contains, containsFocus, debugStructure, dispose, drag, dragIn, dragOut, drop, drop, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, identify, invalidateContent, invalidateLayout, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, removeView, replaceOptions, replaceView, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSpecification, setView, setViewAxis, subviewFor, update, updateView, viewMenuOptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
style
protected static final Text style
PasswordField
public PasswordField(Content content,
ViewSpecification design,
ViewAxis axis)
contentMenuOptions
public void contentMenuOptions(UserActionSet options)
- Description copied from interface:
View
- Called when the popup menu is being populated for this view. Any content options that need to appear on
the menu should be added to the
menuOptions object.
- Specified by:
contentMenuOptions in interface View- Overrides:
contentMenuOptions in class TextField
provideClearCopyPaste
protected boolean provideClearCopyPaste()
- Overrides:
provideClearCopyPaste in class TextParseableFieldAbstract
delete
public void delete()
- Only allow deletion of last character, ie don;t allow editing of the internals of the password.
- Overrides:
delete in class TextField
left
protected void left(boolean alt,
boolean shift)
- disable left key.
- Overrides:
left in class TextField
right
protected void right(boolean alt,
boolean shift)
- disable right key.
- Overrides:
right in class TextField
home
protected void home(boolean alt,
boolean shift)
- disable home key.
- Overrides:
home in class TextField
end
protected void end(boolean alt,
boolean shift)
- disable end key.
- Overrides:
end in class TextField
pageDown
protected void pageDown(boolean shift,
boolean ctrl)
- disable page down key.
- Overrides:
pageDown in class TextField
pageUp
protected void pageUp(boolean shift,
boolean ctrl)
- disable page up key.
- Overrides:
pageUp in class TextField
getMaximumSize
public Size getMaximumSize()
- Specified by:
getMaximumSize in interface View- Overrides:
getMaximumSize in class TextField
align
protected void align()
- Specified by:
align in class TextField
drawHighlight
protected void drawHighlight(Canvas canvas,
int maxWidth)
- Specified by:
drawHighlight in class TextField
drawLines
protected void drawLines(Canvas canvas,
Color color,
int width)
- Specified by:
drawLines in class TextField
drawText
protected void drawText(Canvas canvas,
Color textColor,
int width)
- Specified by:
drawText in class TextField
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.