Search in sources :

Example 1 with JettyService

use of org.platformlayer.service.jetty.model.JettyService in project platformlayer by platformlayer.

the class JettyServiceListViewImpl method populateColumns.

@Override
protected void populateColumns(BoundTable<JettyService> table) {
    Column<JettyService, String> idColumn = new TextColumn<JettyService>() {

        @Override
        public String getValue(JettyService object) {
            PlatformLayerKey key = object.getKey();
            if (key == null) {
                return "";
            }
            String id = key.getItemIdString();
            if (id == null) {
                return "";
            }
            return id;
        }
    };
    table.addColumn(idColumn, "ID");
    Column<JettyService, String> dnsName = JsTextColumn.build("dnsName");
    table.addColumn(dnsName, "DNS Name");
}
Also used : PlatformLayerKey(org.platformlayer.core.model.PlatformLayerKey) TextColumn(com.google.gwt.user.cellview.client.TextColumn) JsTextColumn(org.platformlayer.gwt.client.ui.JsTextColumn) JettyService(org.platformlayer.service.jetty.model.JettyService)

Aggregations

TextColumn (com.google.gwt.user.cellview.client.TextColumn)1 PlatformLayerKey (org.platformlayer.core.model.PlatformLayerKey)1 JsTextColumn (org.platformlayer.gwt.client.ui.JsTextColumn)1 JettyService (org.platformlayer.service.jetty.model.JettyService)1