com.google.gwt.dom.client.Style.clearBackgroundColor()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中com.google.gwt.dom.client.Style.clearBackgroundColor()方法的一些代码示例,展示了Style.clearBackgroundColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Style.clearBackgroundColor()方法的具体详情如下:
包路径:com.google.gwt.dom.client.Style
类名称:Style
方法名:clearBackgroundColor

Style.clearBackgroundColor介绍

[英]Clear the background-color css property.
[中]

代码示例

代码示例来源:origin: fr.lteconsulting/hexa.core

@Override
public void onDropFiles( FilesList files )
{
  deco.getElement().getStyle().clearBackgroundColor();
  sendFiles( files );
}

代码示例来源:origin: ltearno/hexa.tools

@Override
public void onDropFiles( FilesList files )
{
  deco.getElement().getStyle().clearBackgroundColor();
  sendFiles( files );
}

代码示例来源:origin: fr.lteconsulting/hexa.core

@Override
public void onDragLeave()
{
  deco.getElement().getStyle().clearBackgroundColor();
}

代码示例来源:origin: fr.lteconsulting/hexa.core

private void onDragLeave()
{
  deco.getElement().getStyle().clearBackgroundColor();
}

代码示例来源:origin: ltearno/hexa.tools

@Override
public void onDragLeave()
{
  deco.getElement().getStyle().clearBackgroundColor();
}

代码示例来源:origin: ltearno/hexa.tools

private void onDragLeave()
{
  deco.getElement().getStyle().clearBackgroundColor();
}

代码示例来源:origin: fr.lteconsulting/hexa.core

private void setColor( String color )
{
  if( color == null )
    html.getElement().getStyle().clearBackgroundColor();
  else
    html.getElement().getStyle().setBackgroundColor( color );
  
  html.getElement().setAttribute( "value", color );
  
  GWT.log( "setValue : " + color );
}

代码示例来源:origin: ltearno/hexa.tools

private void setColor( String color )
{
  if( color == null )
    html.getElement().getStyle().clearBackgroundColor();
  else
    html.getElement().getStyle().setBackgroundColor( color );
  
  html.getElement().setAttribute( "value", color );
  
  GWT.log( "setValue : " + color );
}

代码示例来源:origin: threerings/narya

protected void updateModificationState ()
{
  Style style = _value.getElement().getStyle();
  if (getModifiedField() != null) {
    style.setBackgroundColor("red");
    _reset.setVisible(true);
  } else {
    style.clearBackgroundColor();
    _reset.setVisible(false);
  }
  _onChange.execute();
}

代码示例来源:origin: fjfd/microscope

rf.getElement(i * 2 + 1).getStyle().setBackgroundColor("#F99");
} else {
  rf.getElement(i * 2).getStyle().clearBackgroundColor();
  rf.getElement(i * 2 + 1).getStyle().clearBackgroundColor();
  if ((i % 2) == 0) {
    rf.addStyleName(i * 2, "subg");

代码示例来源:origin: org.jbpm/jbpm-console-ng-process-runtime-client

public static void paintInstanceRowSelected( DataGrid<ProcessInstanceSummary> myProcessInstanceListGrid,
                       Long id ) {
  for ( int i = 0; i < myProcessInstanceListGrid.getRowCount(); i++ ) {
    boolean idMatch = false;
    if ( myProcessInstanceListGrid.getRowElement( i ).getCells().getItem( 1 ).getInnerText().equals( String.valueOf( id ) ) ) {
      idMatch = true;
    }
    for ( int k = 0; k < myProcessInstanceListGrid.getColumnCount(); k++ ) {
      if ( idMatch ) {
        myProcessInstanceListGrid.getRowElement( i ).getCells().getItem( k ).getStyle().setBackgroundColor( BG_ROW_SELECTED );
      } else {
        myProcessInstanceListGrid.getRowElement( i ).getCells().getItem( k ).getStyle().clearBackgroundColor();
      }
    }
  }
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-process-runtime-client

public static void paintRowSelected( DataGrid<ProcessSummary> myProcessDefListGrid,
                   String nameProcessDef,
                   String versionProcessDef ) {
  for ( int i = 0; i < myProcessDefListGrid.getRowCount(); i++ ) {
    boolean nameMatch = false;
    boolean versionMatch = false;
    for ( int j = 0; j < myProcessDefListGrid.getColumnCount(); j++ ) {
      if ( myProcessDefListGrid.getRowElement( i ).getCells().getItem( j ).getInnerText().equals( nameProcessDef ) ) {
        nameMatch = true;
      }
      if ( myProcessDefListGrid.getRowElement( i ).getCells().getItem( j ).getInnerText().equals( versionProcessDef ) ) {
        versionMatch = true;
      }
    }
    for ( int k = 0; k < myProcessDefListGrid.getColumnCount(); k++ ) {
      if ( nameMatch && versionMatch ) {
        myProcessDefListGrid.getRowElement( i ).getCells().getItem( k ).getStyle().setBackgroundColor( BG_ROW_SELECTED );
      } else {
        myProcessDefListGrid.getRowElement( i ).getCells().getItem( k ).getStyle().clearBackgroundColor();
      }
    }
  }
}

相关文章

微信公众号

最新文章

更多

Style类方法