@Override public String getValue(T item) { return Utils.millisecondsToDateString(item.getCreatedTime()); } }, 40);
/** * Instantiates a new Base schema. * * @param dto data transfare object that used to create instance */ public BaseSchema(T dto) { if (dto != null) { this.id = getLongId(dto); this.version = dto.getVersion(); Long appId = getLongId(dto.getApplicationId()); this.application = appId != null ? new Application(appId) : null; Long ctlSchemaId = getLongId(dto.getCtlSchemaId()); this.ctlSchema = ctlSchemaId != null ? new CtlSchema(ctlSchemaId) : null; this.name = dto.getName(); this.description = dto.getDescription(); this.createdUsername = dto.getCreatedUsername(); this.createdTime = dto.getCreatedTime(); } }
protected void bindDetailsView(boolean fireChanged) { S schema = entity.getSchema(); String version = schema.getVersion() + ""; detailsView.getVersion().setValue(version); detailsView.getName().setValue(schema.getName()); detailsView.getDescription().setValue(schema.getDescription()); detailsView.getCreatedUsername().setValue(schema.getCreatedUsername()); detailsView.getCreatedDateTime() .setValue(Utils.millisecondsToDateTimeString(schema.getCreatedTime())); if (entity.getCtlSchemaForm() != null) { detailsView.getSchemaForm().setValue(entity.getCtlSchemaForm().getSchema(), fireChanged); } }