|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
javax.swing.JPasswordField
org.compiere.swing.CPassword
public class CPassword
Password Field
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPasswordField |
|---|
JPasswordField.AccessibleJPasswordField |
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| 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 |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CPassword()
Constructs a new JPasswordField,
with a default document, null starting
text string, and 0 column width. |
|
CPassword(Document doc,
String txt,
int columns)
Constructs a new JPasswordField that uses the
given text storage model and the given number of columns. |
|
CPassword(int columns)
Constructs a new empty JPasswordField with the specified
number of columns. |
|
CPassword(String text)
Constructs a new JPasswordField initialized
with the specified text. |
|
CPassword(String text,
int columns)
Constructs a new JPasswordField initialized with
the specified text and columns. |
|
| Method Summary | |
|---|---|
String |
getDisplay()
Return Display Value |
Object |
getValue()
Return Editor value |
boolean |
isMandatory()
Is Field mandatory |
boolean |
isReadWrite()
Is it possible to edit |
void |
setBackground(boolean error)
Set Background based on editable / mandatory / error |
void |
setBackground(Color bg)
Set Background |
void |
setMandatory(boolean mandatory)
Set Editor Mandatory |
void |
setReadWrite(boolean rw)
Enable Editor |
void |
setValue(Object value)
Set Editor to value |
| Methods inherited from class javax.swing.JPasswordField |
|---|
copy, cut, echoCharIsSet, getAccessibleContext, getEchoChar, getPassword, getText, getText, getUIClassID, paramString, setEchoChar, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.swing.CEditor |
|---|
setVisible |
| Constructor Detail |
|---|
public CPassword()
JPasswordField,
with a default document, null starting
text string, and 0 column width.
public CPassword(String text)
JPasswordField initialized
with the specified text. The document model is set to the
default, and the number of columns to 0.
text - the text to be displayed, null if nonepublic CPassword(int columns)
JPasswordField with the specified
number of columns. A default model is created, and the initial string
is set to null.
columns - the number of columns >= 0
public CPassword(String text,
int columns)
JPasswordField initialized with
the specified text and columns. The document model is set to
the default.
text - the text to be displayed, null if nonecolumns - the number of columns >= 0
public CPassword(Document doc,
String txt,
int columns)
JPasswordField that uses the
given text storage model and the given number of columns.
This is the constructor through which the other constructors feed.
The echo character is set to '*'. If the document model is
null, a default one will be created.
doc - the text storage to usetxt - the text to be displayed, null if nonecolumns - the number of columns to use to calculate
the preferred width >= 0; if columns is set to zero, the
preferred width will be whatever naturally results from
the component implementation| Method Detail |
|---|
public void setMandatory(boolean mandatory)
setMandatory in interface CEditormandatory - true, if you have to enter datapublic boolean isMandatory()
isMandatory in interface CEditorpublic void setReadWrite(boolean rw)
setReadWrite in interface CEditorrw - true, if you can enter/select datapublic boolean isReadWrite()
isReadWrite in interface CEditorpublic void setBackground(boolean error)
setBackground in interface CEditorerror - if true, set background to error color, otherwise mandatory/editablepublic void setBackground(Color bg)
setBackground in class JComponentbg - public void setValue(Object value)
setValue in interface CEditorvalue - value of the editorpublic Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditor
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||