/** * Construct a new {@link DefaultSelectionEventManager} that allows selection * only for the columns in the specified whitelist. * * @param <T> the data type of the display * @param whitelistedColumns the columns to include in the whitelist * @return a {@link DefaultSelectionEventManager} instance */ public static <T> DefaultSelectionEventManager<T> createWhitelistManager( int... whitelistedColumns) { return new DefaultSelectionEventManager<T>(new WhitelistEventTranslator<T>( whitelistedColumns)); }
public SelectAction translateSelectionEvent(CellPreviewEvent<T> event) { return isColumnWhitelisted(event.getColumn()) ? SelectAction.DEFAULT : SelectAction.IGNORE; } }
/** * Construct a new {@link WhitelistEventTranslator}. * * @param whitelistedColumns the columns to whitelist */ public WhitelistEventTranslator(int... whitelistedColumns) { if (whitelistedColumns != null) { for (int i : whitelistedColumns) { setColumnWhitelisted(i, true); } } }
/** * Construct a new {@link DefaultSelectionEventManager} that allows selection * only for the columns in the specified whitelist. * * @param <T> the data type of the display * @param whitelistedColumns the columns to include in the whitelist * @return a {@link DefaultSelectionEventManager} instance */ public static <T> DefaultSelectionEventManager<T> createWhitelistManager( int... whitelistedColumns) { return new DefaultSelectionEventManager<T>(new WhitelistEventTranslator<T>( whitelistedColumns)); }
public SelectAction translateSelectionEvent(CellPreviewEvent<T> event) { return isColumnWhitelisted(event.getColumn()) ? SelectAction.DEFAULT : SelectAction.IGNORE; } }
/** * Construct a new {@link WhitelistEventTranslator}. * * @param whitelistedColumns the columns to whitelist */ public WhitelistEventTranslator(int... whitelistedColumns) { if (whitelistedColumns != null) { for (int i : whitelistedColumns) { setColumnWhitelisted(i, true); } } }
/** * Construct a new {@link DefaultSelectionEventManager} that allows selection * only for the columns in the specified whitelist. * * @param <T> the data type of the display * @param whitelistedColumns the columns to include in the whitelist * @return a {@link DefaultSelectionEventManager} instance */ public static <T> DefaultSelectionEventManager<T> createWhitelistManager( int... whitelistedColumns) { return new DefaultSelectionEventManager<T>(new WhitelistEventTranslator<T>( whitelistedColumns)); }
public SelectAction translateSelectionEvent(CellPreviewEvent<T> event) { return isColumnWhitelisted(event.getColumn()) ? SelectAction.DEFAULT : SelectAction.IGNORE; } }
/** * Construct a new {@link WhitelistEventTranslator}. * * @param whitelistedColumns the columns to whitelist */ public WhitelistEventTranslator(int... whitelistedColumns) { if (whitelistedColumns != null) { for (int i : whitelistedColumns) { setColumnWhitelisted(i, true); } } }