attributesForm.setEnabled(false);
TextItem nameItem = new TextItem("name", "Name");
CheckBoxItem blocking = new CheckBoxItem ("blocking", "Is Blocking?");
CheckBoxItem allowCore = new CheckBoxItem ("allowCoreTimeout", "Allow Core Timeout?");
NumberBoxItem keepAliveTimeout = new NumberBoxItem("keepaliveTimeout", "Keep Alive Timeout (ms)") {
{
isRequired = false;
}
};
TextBoxItem threadFactory = new TextBoxItem("threadFactory", "Thread Factory") {
{
isRequired = false;
}
};
TextBoxItem handoff = new TextBoxItem("handoffExecutor", "Handoff Executor") {
{
isRequired = false;
}
};
attributesForm.setFields(nameItem, keepAliveTimeout, blocking, allowCore, threadFactory, handoff);
// ---
sizingForm = new Form<WorkmanagerPool>(WorkmanagerPool.class);
sizingForm.setNumColumns(2);
sizingForm.setEnabled(false);
NumberBoxItem maxThreads = new NumberBoxItem("maxThreadsCount", "Max Threads");
NumberBoxItem maxThreadsPerCPU = new NumberBoxItem("maxThreadsPerCPU", "Max Threads/CPU");
NumberBoxItem queueLength = new NumberBoxItem("queueLengthCount", "Queue Length");
NumberBoxItem queueLengthPerCPU = new NumberBoxItem("queueLengthPerCPU", "Queue Length/CPU");
sizingForm.setFields(nameItem, maxThreads, maxThreadsPerCPU, queueLength, queueLengthPerCPU);
attributesForm.bind(table);
sizingForm.bind(table);