BrightSide Workbench Full Report + Source Code
org.turro.contacts.mydata.MyDataItem Class Reference

Public Member Functions

 MyDataItem (MyDataItemType type)
 
MyDataItemType getType ()
 
boolean isReadonly ()
 
void setReadonly (boolean readonly)
 
boolean isRequired ()
 
void setRequired (boolean required)
 
String getName ()
 
void setName (String name)
 
String getLabel ()
 
void setLabel (String label)
 
String getValue ()
 
void setValue (String value)
 
int getCols ()
 
void setCols (int cols)
 
InputElement getInput ()
 
void setInput (InputElement input)
 
void fillValue (IContact contact)
 

Detailed Description

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

Definition at line 28 of file MyDataItem.java.

Constructor & Destructor Documentation

◆ MyDataItem()

org.turro.contacts.mydata.MyDataItem.MyDataItem ( MyDataItemType  type)

Definition at line 36 of file MyDataItem.java.

36  {
37  this.type = type;
38  }

Member Function Documentation

◆ fillValue()

void org.turro.contacts.mydata.MyDataItem.fillValue ( IContact  contact)

Definition at line 100 of file MyDataItem.java.

100  {
101  if(null != type) switch (type) {
102  case MYDATA_NAME:
103  setValue(contact.getName());
104  break;
105  case MYDATA_GIF:
106  setValue(contact.getGlobalId());
107  break;
108  case MYDATA_CONNECTOR:
109  setValue(contact.getConnector(name));
110  break;
111  default:
112  break;
113  }
114  }
Here is the call graph for this function:

◆ getCols()

int org.turro.contacts.mydata.MyDataItem.getCols ( )

Definition at line 84 of file MyDataItem.java.

84  {
85  return cols;
86  }

◆ getInput()

InputElement org.turro.contacts.mydata.MyDataItem.getInput ( )

Definition at line 92 of file MyDataItem.java.

92  {
93  return input;
94  }

◆ getLabel()

String org.turro.contacts.mydata.MyDataItem.getLabel ( )

Definition at line 68 of file MyDataItem.java.

68  {
69  return label;
70  }

◆ getName()

String org.turro.contacts.mydata.MyDataItem.getName ( )

Definition at line 60 of file MyDataItem.java.

60  {
61  return name;
62  }
Here is the caller graph for this function:

◆ getType()

MyDataItemType org.turro.contacts.mydata.MyDataItem.getType ( )

Definition at line 40 of file MyDataItem.java.

40  {
41  return type;
42  }
Here is the caller graph for this function:

◆ getValue()

String org.turro.contacts.mydata.MyDataItem.getValue ( )

Definition at line 76 of file MyDataItem.java.

76  {
77  return value;
78  }
Here is the caller graph for this function:

◆ isReadonly()

boolean org.turro.contacts.mydata.MyDataItem.isReadonly ( )

Definition at line 44 of file MyDataItem.java.

44  {
45  return readonly;
46  }

◆ isRequired()

boolean org.turro.contacts.mydata.MyDataItem.isRequired ( )

Definition at line 52 of file MyDataItem.java.

52  {
53  return required;
54  }
Here is the caller graph for this function:

◆ setCols()

void org.turro.contacts.mydata.MyDataItem.setCols ( int  cols)

Definition at line 88 of file MyDataItem.java.

88  {
89  this.cols = cols;
90  }

◆ setInput()

void org.turro.contacts.mydata.MyDataItem.setInput ( InputElement  input)

Definition at line 96 of file MyDataItem.java.

96  {
97  this.input = input;
98  }

◆ setLabel()

void org.turro.contacts.mydata.MyDataItem.setLabel ( String  label)

Definition at line 72 of file MyDataItem.java.

72  {
73  this.label = label;
74  }

◆ setName()

void org.turro.contacts.mydata.MyDataItem.setName ( String  name)

Definition at line 64 of file MyDataItem.java.

64  {
65  this.name = name;
66  }

◆ setReadonly()

void org.turro.contacts.mydata.MyDataItem.setReadonly ( boolean  readonly)

Definition at line 48 of file MyDataItem.java.

48  {
49  this.readonly = readonly;
50  }

◆ setRequired()

void org.turro.contacts.mydata.MyDataItem.setRequired ( boolean  required)

Definition at line 56 of file MyDataItem.java.

56  {
57  this.required = required;
58  }

◆ setValue()

void org.turro.contacts.mydata.MyDataItem.setValue ( String  value)

Definition at line 80 of file MyDataItem.java.

80  {
81  this.value = value;
82  }
Here is the caller graph for this function:

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