.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT); loginTable.getFlexCellFormatter() .setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_RIGHT); loginTable.getFlexCellFormatter() .setHorizontalAlignment(2, 0, HasHorizontalAlignment.ALIGN_RIGHT); loginTable.getFlexCellFormatter() .setColSpan(2, 0, 2);
formatter.setHorizontalAlignment( 2, 1, ALIGN_CENTER );
1, new SmallLabel(fld.getFieldName() + ":")); data.getFlexCellFormatter().setHorizontalAlignment(i, 1, HasHorizontalAlignment.ALIGN_RIGHT);
this.wrapLineNumber(i + 1, false)); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER); 3, widget); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT);
this.wrapLineNumber( i + 1, false ) ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER ); 3, widget ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT );
this.wrapLineNumber(i + 1, true)); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER); 3, vert); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT);
this.wrapLineNumber(i + 1, false)); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER); 3, widget); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT);
this.wrapLineNumber( i + 1, true ) ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER ); 3, vert ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT );
this.wrapLineNumber(i + 1, true)); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER); 3, vert); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 3, HasHorizontalAlignment.ALIGN_LEFT);
1, new SmallLabel( fld.getFieldName() + ":" ) ); data.getFlexCellFormatter().setHorizontalAlignment( i, 1, HasHorizontalAlignment.ALIGN_RIGHT );
getFlexCellFormatter().setHorizontalAlignment( factDataWidgetFactory.amountOrRows() + 1, 0,
getFlexCellFormatter().setHorizontalAlignment( factDataWidgetFactory.amountOrRows() + 1, 0,
private void addActionsButtonsToLayout(String title, ClickHandler addBelowListener, ClickHandler moveDownListener, ClickHandler moveUpListener) { final DirtyableHorizontalPane hp = new DirtyableHorizontalPane(); Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow(); addPattern.setTitle(title); addPattern.addClickHandler(addBelowListener); Image moveDown = CommonAltedImages.INSTANCE.MoveDown(); moveDown.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveDown()); moveDown.addClickHandler(moveDownListener); Image moveUp = CommonAltedImages.INSTANCE.MoveUp(); moveUp.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveUp()); moveUp.addClickHandler(moveUpListener); hp.add(addPattern); hp.add(moveDown); hp.add(moveUp); layout.setWidget(currentLayoutRow, 4, hp); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 4, HasHorizontalAlignment.ALIGN_CENTER); layout.getFlexCellFormatter().setVerticalAlignment(currentLayoutRow, 4, HasVerticalAlignment.ALIGN_MIDDLE); }
formatter.setHorizontalAlignment( 0, 0, ALIGN_LEFT ); formatter.setHorizontalAlignment( 0, 1, ALIGN_RIGHT );
private void addActionsButtonsToLayout( String title, ClickHandler addBelowListener, ClickHandler moveDownListener, ClickHandler moveUpListener ) { final DirtyableHorizontalPane hp = new DirtyableHorizontalPane(); Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow(); addPattern.setTitle( title ); addPattern.addClickHandler( addBelowListener ); Image moveDown = CommonAltedImages.INSTANCE.MoveDown(); moveDown.setTitle( Constants.INSTANCE.MoveDown() ); moveDown.addClickHandler( moveDownListener ); Image moveUp = CommonAltedImages.INSTANCE.MoveUp(); moveUp.setTitle( Constants.INSTANCE.MoveUp() ); moveUp.addClickHandler( moveUpListener ); hp.add( addPattern ); hp.add( moveDown ); hp.add( moveUp ); layout.setWidget( currentLayoutRow, 4, hp ); layout.getFlexCellFormatter().setHorizontalAlignment( currentLayoutRow, 4, HasHorizontalAlignment.ALIGN_CENTER ); layout.getFlexCellFormatter().setVerticalAlignment( currentLayoutRow, 4, HasVerticalAlignment.ALIGN_MIDDLE ); }
private void addActionsButtonsToLayout(String title, ClickHandler addBelowListener, ClickHandler moveDownListener, ClickHandler moveUpListener) { final DirtyableHorizontalPane hp = new DirtyableHorizontalPane(); Image addPattern = CommonAltedImages.INSTANCE.NewItemBelow(); addPattern.setTitle(title); addPattern.addClickHandler(addBelowListener); Image moveDown = CommonAltedImages.INSTANCE.MoveDown(); moveDown.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveDown()); moveDown.addClickHandler(moveDownListener); Image moveUp = CommonAltedImages.INSTANCE.MoveUp(); moveUp.setTitle(GuidedRuleEditorResources.CONSTANTS.MoveUp()); moveUp.addClickHandler(moveUpListener); hp.add(addPattern); hp.add(moveDown); hp.add(moveUp); layout.setWidget(currentLayoutRow, 4, hp); layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 4, HasHorizontalAlignment.ALIGN_CENTER); layout.getFlexCellFormatter().setVerticalAlignment(currentLayoutRow, 4, HasVerticalAlignment.ALIGN_MIDDLE); }
public int addAttribute(String lbl, final Widget categories) { String id = DOM.createUniqueId(); categories.getElement().setAttribute("aria-labelledby", id); categories.getElement().setAttribute("aria-required", String.valueOf(true)); categories.getElement().setTabIndex(0); int row = currentTable.getRowCount(); Label label = new Label(lbl); label.getElement().setAttribute("id", id); currentTable.setWidget(row, 0, label); currentTable.setWidget(row, 1, categories); currentTable.getFlexCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT); currentTable.getFlexCellFormatter().setVerticalAlignment(row, 0, HasVerticalAlignment.ALIGN_TOP); return row; }
public int addAttribute(String lbl, final Widget categories) { String id = DOM.createUniqueId(); categories.getElement().setAttribute("aria-labelledby", id); categories.getElement().setAttribute("aria-required", String.valueOf(true)); categories.getElement().setTabIndex(0); int row = currentTable.getRowCount(); Label label = new Label(lbl); label.getElement().setAttribute("id", id); currentTable.setWidget(row, 0, label); currentTable.setWidget(row, 1, categories); currentTable.getFlexCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT); currentTable.getFlexCellFormatter().setVerticalAlignment(row, 0, HasVerticalAlignment.ALIGN_TOP); return row; }
public void setHorizontalAlignmentForFlexCellFormatter(int row, int column, HorizontalAlignmentConstant horizontalAlignmentConstant) { getFlexCellFormatter().setHorizontalAlignment(row, column, horizontalAlignmentConstant); } }
public void setHorizontalAlignmentForFlexCellFormatter(int row, int column, HorizontalAlignmentConstant horizontalAlignmentConstant) { getFlexCellFormatter().setHorizontalAlignment(row, column, horizontalAlignmentConstant); } }