this.value = value;
}
listItems = new Pair[listItemsList.size()];
listItemsList.toArray(listItems);
} else if (definition.getType() == PropertyDefinition.TYPE_MULTI_ENTRY_LIST) {
this.value = new PropertyList(value).getAsTextFieldText();
StringTokenizer t = new StringTokenizer(definition.getTypeMeta(), "x");
try {
if (t.hasMoreTokens()) {
columns = Integer.parseInt(t.nextToken());
rows = Integer.parseInt(t.nextToken());
}
} catch (NumberFormatException nfe) {
}
} else if (definition.getType() == PropertyDefinition.TYPE_TEXT_AREA) {
this.value = value;
StringTokenizer t = new StringTokenizer(definition.getTypeMeta(), "x");
try {
columns = Integer.parseInt(t.nextToken());
rows = Integer.parseInt(t.nextToken());
} catch (NumberFormatException nfe) {
}
} else if (definition.getType() == PropertyDefinition.TYPE_BOOLEAN) {
if (definition.getTypeMetaObject() != null) {
String trueVal = (String) (((List) definition.getTypeMetaObject()).get(0));
this.value = value.equals(trueVal) ? Boolean.TRUE : Boolean.FALSE;
} else {
this.value = Boolean.valueOf(value);
}
} else if (definition.getType() == PropertyDefinition.TYPE_STRING) {
try {
columns = Integer.parseInt(definition.getTypeMeta());
} catch (NumberFormatException nfe) {
}
this.value = value;
} else if (definition.getType() == PropertyDefinition.TYPE_INTEGER) {
try {
columns = Integer.parseInt(definition.getTypeMeta());
} catch (NumberFormatException nfe) {
}
this.value = value;
} else if (definition.getType() == PropertyDefinition.TYPE_PASSWORD) {
try {
columns = Integer.parseInt(definition.getTypeMeta());
} catch (NumberFormatException nfe) {
}
this.value = value;
} else if (definition.getType() == PropertyDefinition.TYPE_TIME_IN_MS) {
try {
int val = Integer.parseInt(value);
if (definition.getTypeMeta().equalsIgnoreCase("s")) {
this.value = String.valueOf(val / 1000);
} else if (definition.getTypeMeta().equalsIgnoreCase("m")) {
this.value = String.valueOf(val / 1000 / 60);
} else if (definition.getTypeMeta().equalsIgnoreCase("h")) {
this.value = String.valueOf(val / 1000 / 60 / 60);
} else if (definition.getTypeMeta().equalsIgnoreCase("d")) {
this.value = String.valueOf(val / 1000 / 60 / 60 / 24);
} else {
this.value = String.valueOf(val);
}
} catch (Exception e) {
this.value = value;
}
} else if (definition.getType() == PropertyDefinition.TYPE_MULTI_SELECT_LIST) {
PropertyList pList = new PropertyList(value);
this.value = pList.getAsTextFieldText();
String clazz = definition.getTypeMeta();
SessionInfo session = LogonControllerFactory.getInstance().getSessionInfo(request);
try {
listDataSourceModel = new MultiSelectSelectionModel(session, ((MultiSelectDataSource) Class.forName(clazz)
.newInstance()), pList);