package com.onaro.sanscreen.client.view.common.highlights; import org.eclipse.core.runtime.IAdaptable; import com.onaro.commons.swing.table.OnaroTableModel; import com.onaro.sanscreen.client.view.tabular.AdaptablePropertyHighlight; /** * Used to change the row highlighting to gray for dead/offline devices * @param AdapterClass * @see AdaptablePropertyHighlight */ public class DeadPropertyHighlight extends AdaptablePropertyHighlight { public static final String PROP_DEAD = "dead"; //$NON-NLS-1$ private static final String STYLE_NAME = "deadDeviceRow"; //$NON-NLS-1$ /** * Constructor for dead device highlight for a table model and object type * @param {@link OnaroTableModel} * @param AdaptedType */ public DeadPropertyHighlight(OnaroTableModel tableModel, Class adaptedType) { super(tableModel, adaptedType, PROP_DEAD, Boolean.TRUE); setStyleName(STYLE_NAME); setGroupHighlight(false); } }