@Override public StylesBuilder fontWeight(FontWeight value) { delegate.assertCanAddStyleProperty().setFontWeight(value); return this; }
scope.getElement().getStyle().setFontWeight(FontWeight.NORMAL); int horizontalMargin = 15; scope.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX); versionLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitle()); versionLabel.getElement().getStyle().setFontSize(16, Unit.PX); versionLabel.getElement().getStyle().setFontWeight(FontWeight.NORMAL); version = new IntegerListBox(); version.getElement().getStyle().setPadding(5, Unit.PX);
titleBarLabel.getElement().getStyle().setFontWeight(Style.FontWeight.BOLDER); titleBarLabel.getElement().getStyle().setColor("white");
/** * Is the page the currently displayed page. Note WizardPageTitles are * unaware of other WizardPageTitles and hence a mediator class needs to * control the setting of the "current page" and de-selecting other previous * "current pages". * @param isSelected */ public void setPageSelected( final boolean isSelected ) { lblTitle.getElement().getStyle().setFontWeight( isSelected ? FontWeight.BOLD : FontWeight.NORMAL ); }
@Override public StylesBuilder fontWeight(FontWeight value) { delegate.assertCanAddStyleProperty().setFontWeight(value); return this; }
@Override public StylesBuilder fontWeight(FontWeight value) { delegate.assertCanAddStyleProperty().setFontWeight(value); return this; }
@Override public void setFontWeight(FontWeight fontWeight) { getElement().getStyle().setFontWeight(fontWeight); }
@Override public void setFontWeight(FontWeight fontWeight) { getElement().getStyle().setFontWeight(fontWeight); }
@Override public void setFontWeight(final FontWeight value) { element.getStyle().setFontWeight(value); }
private void doDeselect() { if (!selected) { panel.getElement().getStyle().setBorderColor("#000000"); heading.getElement().getStyle().setFontWeight(Style.FontWeight.NORMAL); } }
private void doSelect() { panel.getElement().getStyle().setBorderColor("#0000FF"); heading.getElement().getStyle().setFontWeight(Style.FontWeight.BOLD); }
private void ensureCurPar() { if( currentParagraph == null ) { currentParagraph = DOM.createSpan(); div.appendChild( currentParagraph ); for( Entry<String, String> e : curSet.entrySet() ) { if( e.getKey().equals( "color" ) ) currentParagraph.getStyle().setColor( e.getValue() ); else if( e.getKey().equals( "weight" ) ) currentParagraph.getStyle().setFontWeight( FontWeight.valueOf( e.getValue() ) ); else currentParagraph.getStyle().setProperty( e.getKey(), e.getValue() ); } } } }
private void ensureCurPar() { if( currentParagraph == null ) { currentParagraph = DOM.createSpan(); div.appendChild( currentParagraph ); for( Entry<String, String> e : curSet.entrySet() ) { if( e.getKey().equals( "color" ) ) currentParagraph.getStyle().setColor( e.getValue() ); else if( e.getKey().equals( "weight" ) ) currentParagraph.getStyle().setFontWeight( FontWeight.valueOf( e.getValue() ) ); else currentParagraph.getStyle().setProperty( e.getKey(), e.getValue() ); } } } }
public Object addGroup( String display, String name, Object parent ) { int row = display != null ? table.getRowCount() : -1; // create the new group GroupInfo parentInfo = (GroupInfo) parent; GroupInfo info = new GroupInfo( name, parentInfo, row ); // display the new group if( display != null && row >= 0 ) { table.setHTML( row, 0, display ); table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 0 ).setAttribute( "colSpan", "2" ); table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingTop( 25, Unit.PX ); table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingBottom( 10, Unit.PX ); table.getCellFormatter().getElement( row, 0 ).getStyle().setFontWeight( FontWeight.BOLD ); } return info; }
public Object addGroup( String display, String name, Object parent ) { int row = display != null ? table.getRowCount() : -1; // create the new group GroupInfo parentInfo = (GroupInfo) parent; GroupInfo info = new GroupInfo( name, parentInfo, row ); // display the new group if( display != null && row >= 0 ) { table.setHTML( row, 0, display ); table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 0 ).setAttribute( "colSpan", "2" ); table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingTop( 25, Unit.PX ); table.getCellFormatter().getElement( row, 0 ).getStyle().setPaddingBottom( 10, Unit.PX ); table.getCellFormatter().getElement( row, 0 ).getStyle().setFontWeight( FontWeight.BOLD ); } return info; }
public Object addField( String display, String name, FieldType fieldType, Widget fieldWidget, Object parent ) { int row = table.getRowCount(); // create the new field GroupInfo parentInfo = (GroupInfo) parent; FieldInfo info = new FieldInfo( name, parentInfo, row, fieldType, fieldWidget ); // Display the new field if( display != null ) { HTMLStream stream = new HTMLStream(); stream.addRight( new HTML( display ) ); stream.clFl(); table.setWidget( row, 0, stream ); } table.setWidget( row, 1, info.widget ); table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 1 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 0 ).getStyle().setFontWeight( FontWeight.BOLD ); return info; }
public Object addField( String display, String name, FieldType fieldType, Widget fieldWidget, Object parent ) { int row = table.getRowCount(); // create the new field GroupInfo parentInfo = (GroupInfo) parent; FieldInfo info = new FieldInfo( name, parentInfo, row, fieldType, fieldWidget ); // Display the new field if( display != null ) { HTMLStream stream = new HTMLStream(); stream.addRight( new HTML( display ) ); stream.clFl(); table.setWidget( row, 0, stream ); } table.setWidget( row, 1, info.widget ); table.getCellFormatter().getElement( row, 0 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 1 ).getStyle().setVerticalAlign( VerticalAlign.TOP ); table.getCellFormatter().getElement( row, 0 ).getStyle().setFontWeight( FontWeight.BOLD ); return info; }
void applyStyle( Element element ) { element.getStyle().setPadding( 5, Unit.PX ); element.getStyle().setBorderColor( "black" ); element.getStyle().setBorderStyle( BorderStyle.SOLID ); element.getStyle().setBorderWidth( 1, Unit.PX ); element.getStyle().setProperty( "fontFamily", "Arial Unicode MS,Arial,sans-serif" ); element.getStyle().setFontSize( 12, Unit.PT ); element.getStyle().setFontStyle( FontStyle.NORMAL ); element.getStyle().setFontWeight( FontWeight.NORMAL ); }
void applyStyle( Element element ) { element.getStyle().setPadding( 5, Unit.PX ); element.getStyle().setBorderColor( "black" ); element.getStyle().setBorderStyle( BorderStyle.SOLID ); element.getStyle().setBorderWidth( 1, Unit.PX ); element.getStyle().setProperty( "fontFamily", "Arial Unicode MS,Arial,sans-serif" ); element.getStyle().setFontSize( 12, Unit.PT ); element.getStyle().setFontStyle( FontStyle.NORMAL ); element.getStyle().setFontWeight( FontWeight.NORMAL ); }
public FieldSetPanel() { super(); Style divStyle = getElement().getStyle(); Style lgndStyle = legend.getStyle(); divStyle.setBorderWidth(2, Unit.PX); divStyle.setBorderStyle(BorderStyle.SOLID); divStyle.setMarginTop(0.5, Unit.EM); divStyle.setMarginBottom(0.5, Unit.EM); divStyle.setMarginRight(0, Unit.PX); divStyle.setMarginLeft(0, Unit.PX); divStyle.setPaddingTop(0, Unit.PX); divStyle.setPaddingBottom(0, Unit.PX); divStyle.setPaddingRight(0.5, Unit.EM); divStyle.setPaddingLeft(0.5, Unit.EM); lgndStyle.setFontSize(100.0, Unit.PCT); lgndStyle.setFontWeight(FontWeight.NORMAL); lgndStyle.setMarginTop(-0.5, Unit.EM); lgndStyle.setMarginRight(0, Unit.PX); lgndStyle.setMarginLeft(0, Unit.PX); lgndStyle.setMarginBottom(0, Unit.PX); lgndStyle.setBackgroundColor("white"); lgndStyle.setColor("black"); lgndStyle.setFloat(Style.Float.LEFT); lgndStyle.setPaddingTop(0, Unit.PX); lgndStyle.setPaddingBottom(0, Unit.PX); lgndStyle.setPaddingRight(2, Unit.PX); lgndStyle.setPaddingLeft(2, Unit.PX); getElement().appendChild(legend); }