/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights every second row group * background with a color depending on LF. The row groups between are not * highlighted, that is typically, they will show the container's * background. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createSimpleStriping(int rowsPerGroup) { return new UIColorHighlighter(new RowGroupHighlightPredicate( rowsPerGroup)); }
/** * Creates and returns a Highlighter which highlights every second row group * background with a color depending on LF. The row groups between are not * highlighted, that is typically, they will show the container's * background. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createSimpleStriping(int rowsPerGroup) { return new UIColorHighlighter(new RowGroupHighlightPredicate( rowsPerGroup)); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights every second row * background with a color depending on the LookAndFeel. The rows between * are not highlighted, that is typically, they will show the container's * background. * * @return a Highlighter striping every second row background. */ public static Highlighter createSimpleStriping() { ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return hl; }
/** * Creates and returns a Highlighter which highlights every second row * background with a color depending on the LookAndFeel. The rows between * are not highlighted, that is typically, they will show the container's * background. * * @return a Highlighter striping every second row background. */ public static Highlighter createSimpleStriping() { ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return hl; }
/** * Creates and returns a Highlighter which highlights every second row * background with a color depending on the LookAndFeel. The rows between * are not highlighted, that is typically, they will show the container's * background. * * @return a Highlighter striping every second row background. */ public static Highlighter createSimpleStriping() { ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return hl; }
/** * Creates and returns a Highlighter which highlights every second row * background with a color depending on the LookAndFeel. The rows between * are not highlighted, that is typically, they will show the container's * background. * * @return a Highlighter striping every second row background. */ public static Highlighter createSimpleStriping() { ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return hl; }
/** * Creates and returns a Highlighter which highlights every second row group * background with a color depending on LF. The row groups between are not * highlighted, that is typically, they will show the container's * background. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createSimpleStriping(int rowsPerGroup) { return new UIColorHighlighter(new RowGroupHighlightPredicate( rowsPerGroup)); }
/** * Creates and returns a Highlighter which highlights * with alternate background. The first is Color.WHITE, the second * with the color depending on LF. * * @return a Highlighter striping every second row background. */ public static Highlighter createAlternateStriping() { ColorHighlighter first = new ColorHighlighter(HighlightPredicate.EVEN, Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights every second row * background with a color depending on the LookAndFeel. The rows between * are not highlighted, that is typically, they will show the container's * background. * * @return a Highlighter striping every second row background. */ public static Highlighter createSimpleStriping() { ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return hl; }
/** * Creates and returns a Highlighter which highlights every second row group * background with a color depending on LF. The row groups between are not * highlighted, that is typically, they will show the container's * background. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createSimpleStriping(int rowsPerGroup) { return new UIColorHighlighter(new RowGroupHighlightPredicate( rowsPerGroup)); }
/** * Creates and returns a Highlighter which highlights * with alternate background. The first is Color.WHITE, the second * with the color depending on LF. * * @return a Highlighter striping every second row background. */ public static Highlighter createAlternateStriping() { ColorHighlighter first = new ColorHighlighter(HighlightPredicate.EVEN, Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. The first is Color.WHITE, the second * with the color depending on LF. * * @return a Highlighter striping every second row background. */ public static Highlighter createAlternateStriping() { ColorHighlighter first = new ColorHighlighter(HighlightPredicate.EVEN, Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. The first is Color.WHITE, the second * with the color depending on LF. * * @return a Highlighter striping every second row background. */ public static Highlighter createAlternateStriping() { ColorHighlighter first = new ColorHighlighter(HighlightPredicate.EVEN, Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. The first is Color.WHITE, the second * with the color depending on LF. * * @return a Highlighter striping every second row background. */ public static Highlighter createAlternateStriping() { ColorHighlighter first = new ColorHighlighter(HighlightPredicate.EVEN, Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(HighlightPredicate.ODD); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights every second row group * background with a color depending on LF. The row groups between are not * highlighted, that is typically, they will show the container's * background. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createSimpleStriping(int rowsPerGroup) { return new UIColorHighlighter(new RowGroupHighlightPredicate( rowsPerGroup)); }