/** * {@inheritDoc} */ public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getClientId() == null) ? 0 : getClientId().hashCode()); result = prime * result + ((_id == null) ? 0 : _id.hashCode()); return result; }
/** * {@inheritDoc} */ public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getClientId() == null) ? 0 : getClientId().hashCode()); result = prime * result + ((_id == null) ? 0 : _id.hashCode()); return result; }
/** * {@inheritDoc} */ public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final AbstractComponent other = (AbstractComponent) obj; if (getClientId() == null) { if (other.getClientId() != null) return false; } else if (!getClientId().equals(other.getClientId())) return false; if (_id == null) { if (other._id != null) return false; } else if (!_id.equals(other._id)) return false; return true; } }
/** * {@inheritDoc} */ public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final AbstractComponent other = (AbstractComponent) obj; if (getClientId() == null) { if (other.getClientId() != null) return false; } else if (!getClientId().equals(other.getClientId())) return false; if (_id == null) { if (other._id != null) return false; } else if (!_id.equals(other._id)) return false; return true; } }
/** * Renders the (unique) id attribute for this component. * * @param writer * The writer to render attribute in. * @param cycle * The current request. */ protected void renderIdAttribute(IMarkupWriter writer, IRequestCycle cycle) { String id = getClientId(); if (id != null) writer.attribute("id", id); }
/** * Renders the (unique) id attribute for this component. * * @param writer * The writer to render attribute in. * @param cycle * The current request. */ protected void renderIdAttribute(IMarkupWriter writer, IRequestCycle cycle) { String id = getClientId(); if (id != null) writer.attribute("id", id); }