|
||||||||||
| 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.JPanel
org.tentackle.ui.FormPanel
org.tentackle.ui.FormComponentPanel
org.tentackle.ui.FormFieldComponentPanel
org.tentackle.ui.FormTelnoField
public class FormTelnoField
A field to edit phone numbers and fax, mobile, etc... numbers as well. There can be more than one number per field, separated by commas. Comments (i.e. non-number text) are allowed and parsed too. Characters between square brackets will be ignored (those are errormessages).
Example: "+49 7722 9508-0 work, +49 172 7364559 mobile"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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 | |
|---|---|
static char |
CELL
number type for |
static char |
FAX
number type for |
static char |
MODEM
number type for |
static char |
PHONE
number type for |
static char |
UNKNOWN
number type for |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormTelnoField()
Creates a phone field. |
|
| Method Summary | |
|---|---|
String |
getComment(int ndx)
Gets the comment for a singe number |
String[] |
getComments()
Gets the parsed comments (one for each number) |
int |
getDefaultCountry()
|
Telno |
getTelno(int ndx)
Gets a single number. |
int |
getTelnoNum()
Gets the number of phone numbers. |
Telno[] |
getTelnos()
Gets the parsed numbers |
char |
getTelnoType()
Gets the telno type. |
void |
setDefaultCountry(int defaultCountry)
Sets the default country code. |
void |
setTelnoType(char telnoType)
Sets the telno type. |
| Methods inherited from class org.tentackle.ui.FormPanel |
|---|
addActionListener, areValuesChanged, componentAdded, componentRemoved, fireActionPerformed, getFormValues, getTitle, isAllChangeable, isHonourAllChangeable, removeActionListener, saveValues, setAllChangeable, setFormValues, setFormValuesKeepChanged, setHonourAllChangeable, setTitle, triggerValuesChanged |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char UNKNOWN
public static final char PHONE
public static final char FAX
public static final char CELL
public static final char MODEM
| Constructor Detail |
|---|
public FormTelnoField()
| Method Detail |
|---|
public void setTelnoType(char telnoType)
telnoType - the phone number type, one of PHONE,FAX,CELL or MODEMpublic char getTelnoType()
public int getDefaultCountry()
public void setDefaultCountry(int defaultCountry)
defaultCountry - the default country code.Telno.setDefaultCountry(int)public int getTelnoNum()
public Telno[] getTelnos()
public Telno getTelno(int ndx)
ndx - the index within the array of numbers
public String[] getComments()
public String getComment(int ndx)
ndx - the within the array of numbers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||