@Override public void onDropFiles( FilesList files ) { deco.getElement().getStyle().clearBackgroundColor(); sendFiles( files ); }
@Override public void onDropFiles( FilesList files ) { deco.getElement().getStyle().clearBackgroundColor(); sendFiles( files ); }
@Override public void onDragLeave() { deco.getElement().getStyle().clearBackgroundColor(); }
private void onDragLeave() { deco.getElement().getStyle().clearBackgroundColor(); }
@Override public void onDragLeave() { deco.getElement().getStyle().clearBackgroundColor(); }
private void onDragLeave() { deco.getElement().getStyle().clearBackgroundColor(); }
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 ); }
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 ); }
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(); }
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");
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(); } } } }
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(); } } } }