Showing 7,775 of 7,775 total issues
Method insertBefore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean insertBefore(Component newChild, Component refChild) {
if (newChild instanceof Rows) {
if (super.insertBefore(newChild, refChild)) {
_rows = (Rows) newChild;
return true;
Method insertBefore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean insertBefore(Component newChild, Component refChild) {
if (newChild instanceof Caption) {
refChild = getFirstChild();
//always makes caption as the first child
if (super.insertBefore(newChild, refChild)) {
Method addToolbar
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean addToolbar(String name, Toolbar toolbar) {
Component refChild = null;
if ("tbar".equals(name)) {
if (_tbar != null)
throw new UiException("Only one top toolbar child is allowed: " + this);
Method ungroup
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void ungroup(boolean ascending) {
final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr != null) {
final Listbox listbox = getListbox();
Method service
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_OPEN)) {
OpenEvent evt = OpenEvent.getOpenEvent(request);
_open = evt.isOpen();
Method setValue
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setValue(Comparable<?> series, Comparable<?> category, Number value) {
List<Comparable<?>> key = new ArrayList<Comparable<?>>(2);
key.add(series);
key.add(category);
Method insertBefore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean insertBefore(Component child, Component refChild) {
boolean sel = !getChildren().stream().filter(Component::isVisible).findAny().isPresent(), desel = false;
final Tab newtab = (Tab) child;
if (!sel && newtab.isSelected()) {
if (newtab.getTabbox() != null) // B65-ZK-1597
Method setThreadLocals
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
private void setThreadLocals() {
if (_threadLocals != null) {
try {
Class cls = Classes
Function ZTAG
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'ZTAG': function (selector) {
var tag = selector.substring(1);
return function (elem, context, xml, wgt) {
wgt = wgt || zk.Widget.$(elem, {exact: true});
Function timer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.timer = function(callback, delay, then) {
var found = false,
t0,
t1 = d3_timer_queue;
Function d3_svg_line
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_line(projection) {
var x = d3_svg_lineX,
y = d3_svg_lineY,
interpolate = "linear",
interpolator = d3_svg_lineInterpolators[interpolate],
Function d3_svg_lineMonotoneTangents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_lineMonotoneTangents(points) {
var tangents = [],
d,
a,
b,
Function d3_layout_forceAccumulate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_layout_forceAccumulate(quad, alpha, charges) {
var cx = 0,
cy = 0;
quad.charge = 0;
if (!quad.leaf) {
Function attr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var ret, hooks,
nType = elem.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
Function _draw
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_draw(opts: EffectMaskOptions, $anchor: zk.JQZK): void {
var maskId = opts.id || 'z_applymask',
progbox = jq(maskId, zk)[0];
if (progbox) return;
Function undoVParent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
undoVParent(): this {
if (this.hasVParent()) {
var el = this.jq[0],
p = el['z_vp'] as undefined | string,
agt = el['z_vpagt'] as string,
Function _mousewheelX
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mousewheelX(evt: zk.Event, delta: number, deltaX: number, deltaY: number): void {
if (deltaX) {
evt.stop();
var opts = this.opts,
steps = opts.startStep,
Function slideOut
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slideOut(wgt: zk.Widget, opts?: zk.SlideOptions): this {
if (_checkAnimated(this, wgt, opts, 'slideOut'))
return this;
var anchor = opts ? opts.anchor || 't' : 't',
Function _mousewheelY
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mousewheelY(evt: zk.Event, delta: number, deltaX: number, deltaY: number): void {
if (deltaY) {
evt.stop();
var opts = this.opts,
steps = opts.startStep,
Function _eval
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _eval(wgt: zk.Widget, s: string | null, args: unknown): string | null {
if (s)
for (var j = 0, k: number, l: number, t: string, last = s.length - 1, s2: string | undefined; ;) {
k = s.indexOf('#{', j);
if (k < 0) {