| /******************************************************************************* |
| * Copyright (c) 2015 BSI Business Systems Integration AG. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * BSI Business Systems Integration AG - initial API and implementation |
| ******************************************************************************/ |
| package formdata.client.ui.template.formfield; |
| |
| import org.eclipse.scout.rt.client.dto.FormData; |
| import org.eclipse.scout.rt.client.dto.FormData.SdkCommand; |
| import org.eclipse.scout.rt.client.ui.basic.table.AbstractTable; |
| import org.eclipse.scout.rt.client.ui.basic.table.columns.AbstractStringColumn; |
| import org.eclipse.scout.rt.client.ui.form.fields.tablefield.AbstractTableField; |
| import org.eclipse.scout.rt.platform.Order; |
| import org.eclipse.scout.rt.shared.TEXTS; |
| |
| import formdata.shared.services.process.AbstractCompanyTableFieldData; |
| |
| @FormData(value = AbstractCompanyTableFieldData.class, sdkCommand = SdkCommand.CREATE) |
| public abstract class AbstractCompanyTableField extends AbstractTableField<AbstractCompanyTableField.Table> { |
| |
| @Override |
| protected String getConfiguredLabel() { |
| return TEXTS.get("Company"); |
| } |
| |
| @Order(10.0) |
| public class Table extends AbstractTable { |
| |
| public NameColumn getNameColumn() { |
| return getColumnSet().getColumnByClass(NameColumn.class); |
| } |
| |
| @Order(10.0) |
| public class NameColumn extends AbstractStringColumn { |
| |
| @Override |
| protected String getConfiguredHeaderText() { |
| return TEXTS.get("Name"); |
| } |
| } |
| } |
| } |