Java Reference
In-Depth Information
DecoratedTabPanel tabPanel = new DecoratedTabPanel();
tabPanel.setWidth("100%");
tabPanel.setAnimationEnabled(true);
tabPanel.add(tab1Content, "Enter Time");
tabPanel.selectTab(0);
// add the navpanel and flex table to the main panel
mainPanel.add(topPanel);
mainPanel.add(tabPanel);
// associate the main panel with the HTML host page.
RootPanel.get("timeentryUI").add(mainPanel);
addRow();
}
private void addRow() {
int row = flexEntryTable.getRowCount();
final ListBox lbMilestones = new ListBox(false);
final ListBox lbProjects = new ListBox(false);
lbProjects.addItem("-- Select a Project --");
// create the time input fields for all 7 days
final TextBox day1 = new TextBox();
day1.setValue("0");
day1.setWidth("50px");
day1.setEnabled(false);
final TextBox day2 = new TextBox();
day2.setValue("0");
day2.setWidth("50px");
day2.setEnabled(false);
final TextBox day3 = new TextBox();
day3.setValue("0");
day3.setWidth("50px");
day3.setEnabled(false);
final TextBox day4 = new TextBox();
day4.setValue("0");
day4.setWidth("50px");
day4.setEnabled(false);
117
Search WWH ::




Custom Search