attributesForm.setNumColumns(2);
attributesForm.setEnabled(false);
TextBoxItem nameItemAttr = new TextBoxItem("name", "Name");
CheckBoxItem allowCore = new CheckBoxItem ("allowCoreTimeout", "Allow Core Timeout?");
NumberBoxItem keepAliveTimeout = new NumberBoxItem("keepaliveTime", "Keep Alive Timeout") {
{
isRequired = false;
}
};
TextBoxItem threadFactory = new TextBoxItem("threadFactory", "Thread Factory") {
{
isRequired = false;
}
};
ComboBoxItem unit = new ComboBoxItem("keepaliveTimeUnit", "Keepalive Timeout Unit");
unit.setValueMap(new String[] {"DAYS", "HOURS", "MINUTES", "SECONDS", "MILLISECONDS", "NANOSECONDS"});
unit.selectItem(4);
attributesForm.setFields(
nameItemAttr,
keepAliveTimeout, unit,
allowCore, threadFactory
);
// ---
sizingForm = new Form<WorkmanagerPool>(WorkmanagerPool.class);
sizingForm.setNumColumns(2);
sizingForm.setEnabled(false);
TextBoxItem nameItemSizing = new TextBoxItem("name", "Name");
NumberBoxItem maxThreads = new NumberBoxItem("maxThreads", "Max Threads");
NumberBoxItem maxThreadsPerCPU = new NumberBoxItem("coreThreads", "Core threads");
NumberBoxItem queueLength = new NumberBoxItem("queueLength", "Queue Length");
sizingForm.setFields(nameItemSizing,maxThreads, maxThreadsPerCPU, queueLength);
attributesForm.bind(table);
sizingForm.bind(table);