public Col column(String header) { Col col = new Col(header); cols.add(col); return col; }
public Col column(String header) { Col col = new Col(header); cols.add(col); return col; }
var collectionInstance = new Col({model: new Mod()});
LayerID<Col> idCol = new LayerID<>(mbuf -> mbuf.new Col());
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column(new Col("ID")); table.column(new Col("Servlet")); table.column(new Col("Servlet-Name")); table.column(new Col("State")); table.column(new Col("Alias")); table.column(new Col("Url")); for (ServletInfo info : servletService.getServlets()) { table.addRow().addContent(info.getBundleId(), info.getClassName(), info.getName(), info.getStateString(), info.getAlias(), Arrays.toString(info.getUrls())); } table.print(System.out, !noFormat); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column(new Col("ID")); table.column(new Col("Servlet")); table.column(new Col("Servlet-Name")); table.column(new Col("State")); table.column(new Col("Alias")); table.column(new Col("Url")); for (ServletInfo info : servletService.getServlets()) { table.addRow().addContent(info.getBundleId(), info.getClassName(), info.getName(), info.getStateString(), info.getAlias(), Arrays.toString(info.getUrls())); } table.print(System.out, !noFormat); return null; }
private void checkDuplicateExports() { Bundle[] bundles = bundleContext.getBundles(); SortedMap<String, PackageVersion> packageVersionMap = getDuplicatePackages(bundles); ShellTable table = new ShellTable(); table.column(new Col("Package Name")); table.column(new Col("Version")); table.column(new Col("Exporting bundles (ID)")); for (String key : packageVersionMap.keySet()) { PackageVersion pVer = packageVersionMap.get(key); if (pVer.getBundles().size() > 1) { String pBundles = getBundlesSt(pVer.getBundles()); table.addRow().addContent(pVer.getPackageName(), pVer.getVersion().toString(), pBundles); } } table.print(System.out, !noFormat); }
private void checkDuplicateExports() { Bundle[] bundles = bundleContext.getBundles(); SortedMap<String, PackageVersion> packageVersionMap = getDuplicatePackages(bundles); ShellTable table = new ShellTable(); table.column(new Col("Package Name")); table.column(new Col("Version")); table.column(new Col("Exporting bundles (ID)")); for (String key : packageVersionMap.keySet()) { PackageVersion pVer = packageVersionMap.get(key); if (pVer.getBundles().size() > 1) { String pBundles = getBundlesSt(pVer.getBundles()); table.addRow().addContent(pVer.getPackageName(), pVer.getVersion().toString(), pBundles); } } table.print(System.out, !noFormat); }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column(new Col("ID")); table.column(new Col("State")); table.column(new Col("Web-State")); table.column(new Col("Level")); table.column(new Col("Web-ContextPath")); table.column(new Col("Name")); java.util.List<WebBundle> webBundles = webContainerService.list(); if (webBundles != null && !webBundles.isEmpty()) { for (WebBundle webBundle : webBundles) { table.addRow().addContent( webBundle.getBundleId(), webBundle.getState(), webBundle.getWebState(), webBundle.getLevel(), webBundle.getContextPath(), webBundle.getName()); } } table.print(System.out, !noFormat); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column(new Col("ID")); table.column(new Col("State")); table.column(new Col("Web-State")); table.column(new Col("Level")); table.column(new Col("Web-ContextPath")); table.column(new Col("Name")); java.util.List<WebBundle> webBundles = webContainerService.list(); if (webBundles != null && !webBundles.isEmpty()) { for (WebBundle webBundle : webBundles) { table.addRow().addContent( webBundle.getBundleId(), webBundle.getState(), webBundle.getWebState(), webBundle.getLevel(), webBundle.getContextPath(), webBundle.getName()); } } table.print(System.out, !noFormat); return null; }
int termWidth = term != null ? term.getWidth() : 80; ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth - 1); Col col = new Col("Command").maxSize(64); if (indent > 0 || list) { table.column(new Col("")); table.column(new Col("Description").wrap()); for (Map.Entry<String,String> entry : commands.entrySet()) { String key = NameScoping.getCommandNameWithoutGlobalPrefix(session, entry.getKey());
int termWidth = term != null ? term.getWidth() : 80; ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth - 1); Col col = new Col("Command").maxSize(64); if (indent > 0 || list) { table.column(new Col("")); table.column(new Col("Description").wrap()); for (Map.Entry<String,String> entry : commands.entrySet()) { String key = NameScoping.getCommandNameWithoutGlobalPrefix(session, entry.getKey());
Col col1 = new Col(); col1.setId(""); col1.setLabel("Label 1"); cols.add(col1); Col col2 = new Col(); col2.setId(""); col2.setLabel("Label 2"); cols.add(col2); Col col3 = new Col(); col3.setId(""); col3.setLabel("Label 3"); cols.add(col3); Col col4 = new Col(); col4.setId(""); col4.setLabel("Label 4"); cols.add(col4); Col col5 = new Col(); col5.setId(""); col5.setLabel("Label 5");