this.readOnly = readOnly; this.hasErrorMessage = hasErrorMessage; FlexTable table = new FlexTable(); table.setWidth("100%"); if (config == null) { uploadButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall()); uploadButton.setEnabled(false); uploadTable = new FlexTable(); Label uploadLabel = new Label(Utils.constants.uploadFromFile()); uploadTable.setWidget(0, 0, uploadLabel);
@Override protected void constructTopPanel() { FlexTable flexTable = new FlexTable(); flexTable.setCellSpacing(0); flexTable.setCellPadding(0);
FlexTable table = new FlexTable(); table.setCellSpacing(6); table.addStyleName(Utils.avroUiStyle.fieldWidget());
this.setWidget(root); FlexTable grid = new FlexTable(); grid.setCellSpacing(15); grid.getColumnFormatter().setWidth(0, "115px");
dialogContents.add(errorPanel); FlexTable table = new FlexTable(); table.setCellSpacing(6);
dialogContents.add(errorPanel); FlexTable table = new FlexTable(); table.setCellSpacing(6); table.addStyleName(Utils.avroUiStyle.fieldWidget());
dialogContents.add(messagePanel); FlexTable table = new FlexTable(); table.setCellSpacing(6);
span.addClassName("gwt-Label"); FlexTable recordTable = new FlexTable(); recordTable.setWidth("100%"); span.addClassName("gwt-Label"); FlexTable serverRecordTable = new FlexTable(); serverRecordTable.setWidth("100%"); span.addClassName("gwt-Label"); FlexTable endpointConfigurationRecordTable = new FlexTable(); endpointConfigurationRecordTable.setWidth("100%");
FlexTable table = new FlexTable(); table.setCellSpacing(6);
detailsTable.setWidget(4, 1, logSchemaVersion); FlexTable ecfsTable = new FlexTable(); ecfsTable.setCellSpacing(6);
private FlexTable flex = new FlexTable(); //it is a global variable private ClickHandler handler = null; private void A(){ flex.clear(); // if(handler == null){ handler = new ClickHandler(){}... flex.addHandler(handler); }
@Override protected void setup() { // previous, next buttons monthBackwards = createNavigationButton("‹", -1, css().previousButton()); monthForwards = createNavigationButton("›", 1, css().nextButton()); yearBackwards = createNavigationButton("«", -12, css().previousYearButton()); yearForwards = createNavigationButton("»", 12, css().nextYearButton()); // month and year selector monthSelect = createMonthSelect(); yearSelect = createYearSelect(); // Set up grid. grid = new FlexTable(); grid.setStyleName(css().monthSelector()); setupGrid(); initWidget(grid); }
private FlexTable getFlextableWithHeadingSet() { final FlexTable flexTable = new FlexTable(); flexTable.setStyleName( "dataPanel" ); flexTable.setHTML( 1, 0, "<b>" + "Resource Name" + "</b>" ); flexTable.setHTML( 1, 1, "<b>" + "Type" + "</b>" ); flexTable.setHTML( 1, 2, "<b>" + "Status" + "</b>" ); return flexTable; }
public void startContainerLayout( Panel container, GwtMetawidget metawidget ) { State state = getState( container, metawidget ); FlexTable flexTable = new FlexTable(); flexTable.setStyleName( mTableStyleName ); container.add( flexTable ); state.formatter = flexTable.getFlexCellFormatter(); }
private FlexTable flex = new FlexTable(); //it is a global variable private HandlerRegistration handler = null; private void A(){ flex.clear(); // if(handler != null){ handler.removeHandler(); } handler = flex.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //some code which might result into call of function B } }
protected void doLayout() { layout = new FlexTable(); initWidget(); layout.setStyleName("model-builder-Background"); initWidget(layout); setWidth("100%"); setHeight("100%"); }
public SummaryTableFieldBlock createSpecializationsSectionEditBlock() { SummaryTableFieldBlock block = new SummaryTableFieldBlock(); KSCheckBox isVariationRequiredCheckBox = new KSCheckBox(getLabel(ProgramMsgConstants.PROGRAMSPECIALIZATION_INSTRUCTIONS)); isVariationRequiredCheckBox.setEnabled(false); KSCheckBox isVariationRequiredCheckBox2 = new KSCheckBox(getLabel(ProgramMsgConstants.PROGRAMSPECIALIZATION_INSTRUCTIONS)); isVariationRequiredCheckBox2.setEnabled(false); block.addSummaryTableFieldRow(getFieldRow(ProgramConstants.IS_VARIATION_REQUIRED, null, isVariationRequiredCheckBox, isVariationRequiredCheckBox2, null, null, false)); block.addSummaryTableFieldRow(getFieldRow(ProgramConstants.VARIATIONS, new MessageKeyInfo(""), new FlexTable(), new FlexTable(), null, new VariationsBinding(AppLocations.Locations.VIEW_VARIATION.getLocation(), false), false)); return block; }
@Override protected void buildLayout() { VerticalSection section = new VerticalSection(); KSCheckBox isVariationRequiredCheckBox = new KSCheckBox(getLabel(ProgramMsgConstants.PROGRAMSPECIALIZATION_INSTRUCTIONS)); configurer.addField(section, ProgramConstants.IS_VARIATION_REQUIRED, null, isVariationRequiredCheckBox); configurer.addField(section, ProgramConstants.VARIATIONS, new MessageKeyInfo(""), new FlexTable()).setWidgetBinding(new VariationsBinding(AppLocations.Locations.EDIT_VARIATION.getLocation(), true, this)); configurer.addField(section, ProgramConstants.DEGREE_TYPE, generateMessageInfo(ProgramMsgConstants.PROGRAMINFORMATION_DEGREETYPE)).getFieldElement().setVisible(false); section.addWidget(addSpecializationButton); rootSection.addSection(section); }