BrightSide Workbench Full Report + Source Code
org.turro.contacts.control.ContactField Class Reference

Public Member Functions

 ContactField (ContactFieldType type, boolean required)
 
 ContactField (ContactFieldType type, boolean required, String fieldLabel)
 
ContactFieldType getType ()
 
boolean isRequired ()
 
String getFinalLabel ()
 
void setFinalLabel (String finalLabel)
 
String getFieldLabel ()
 
HtmlBasedComponent getEditor ()
 
void setEditor (HtmlBasedComponent editor)
 
void addEditor (HtmlBasedComponent editor)
 
ArrayList< HtmlBasedComponent > getEditors ()
 
HtmlBasedComponent getLastEditor ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file ContactField.java.

Constructor & Destructor Documentation

◆ ContactField() [1/2]

org.turro.contacts.control.ContactField.ContactField ( ContactFieldType  type,
boolean  required 
)

Definition at line 35 of file ContactField.java.

35  {
36  this(type, required, null);
37  }

◆ ContactField() [2/2]

org.turro.contacts.control.ContactField.ContactField ( ContactFieldType  type,
boolean  required,
String  fieldLabel 
)

Definition at line 39 of file ContactField.java.

39  {
40  this.type = type;
41  this.required = required;
42  this.fieldLabel = fieldLabel;
43  }

Member Function Documentation

◆ addEditor()

void org.turro.contacts.control.ContactField.addEditor ( HtmlBasedComponent  editor)

Definition at line 74 of file ContactField.java.

74  {
75  editors.add(editor);
76  }
Here is the caller graph for this function:

◆ getEditor()

HtmlBasedComponent org.turro.contacts.control.ContactField.getEditor ( )

Definition at line 65 of file ContactField.java.

65  {
66  return editors.get(0);
67  }

◆ getEditors()

ArrayList<HtmlBasedComponent> org.turro.contacts.control.ContactField.getEditors ( )

Definition at line 78 of file ContactField.java.

78  {
79  return editors;
80  }

◆ getFieldLabel()

String org.turro.contacts.control.ContactField.getFieldLabel ( )

Definition at line 61 of file ContactField.java.

61  {
62  return fieldLabel;
63  }

◆ getFinalLabel()

String org.turro.contacts.control.ContactField.getFinalLabel ( )

Definition at line 53 of file ContactField.java.

53  {
54  return finalLabel;
55  }

◆ getLastEditor()

HtmlBasedComponent org.turro.contacts.control.ContactField.getLastEditor ( )

Definition at line 82 of file ContactField.java.

82  {
83  return editors.get(editors.size() - 1);
84  }

◆ getType()

ContactFieldType org.turro.contacts.control.ContactField.getType ( )

Definition at line 45 of file ContactField.java.

45  {
46  return type;
47  }

◆ isRequired()

boolean org.turro.contacts.control.ContactField.isRequired ( )

Definition at line 49 of file ContactField.java.

49  {
50  return required;
51  }

◆ setEditor()

void org.turro.contacts.control.ContactField.setEditor ( HtmlBasedComponent  editor)

Definition at line 69 of file ContactField.java.

69  {
70  editors.clear();
71  addEditor(editor);
72  }
void addEditor(HtmlBasedComponent editor)
Here is the call graph for this function:

◆ setFinalLabel()

void org.turro.contacts.control.ContactField.setFinalLabel ( String  finalLabel)

Definition at line 57 of file ContactField.java.

57  {
58  this.finalLabel = finalLabel;
59  }

The documentation for this class was generated from the following file: