public void setDisabled(boolean isDisabled) { super.setDisabled(isDisabled); if (this.haveButtonImage(this.mDisabledImage, this.mDisabledRect)) { markDirty(null); } ; }
public void update() { super.update(); markDirty(null); if (((isDown) && (isOver))) { this.mButtonListener.buttonDownTick(this.mId); } ; if (((((!(isDown)) && (!(isOver)))) && ((this.mOverAlpha > 0)))) { if (this.mOverAlphaSpeed > 0) { this.mOverAlpha = (this.mOverAlpha - this.mOverAlphaSpeed); if (this.mOverAlpha < 0) { this.mOverAlpha = 0; } ; } else { this.mOverAlpha = 0; } ; markDirty(null); } else { if (((((isOver) && ((this.mOverAlphaFadeInSpeed > 0)))) && ((this.mOverAlpha < 1)))) { this.mOverAlpha = (this.mOverAlpha + this.mOverAlphaFadeInSpeed); if (this.mOverAlpha > 1) { this.mOverAlpha = 1; } ; markDirty(null); } ; } ; }
public void onMouseUp(int x, int y) { super.onMouseUp(x, y); if (((isOver) && (widgetManager.hasFocus))) { this.mButtonListener.buttonRelease(this.mId); } ; markDirty(null); }
public void onMouseEnter() { super.onMouseEnter(); if ((((this.mOverAlphaFadeInSpeed == 0)) && ((this.mOverAlpha > 0)))) { this.mOverAlpha = 0; } ; if ((((isDown || this.haveButtonImage( this.mOverImage, this.mOverRect))))) // || (!((colors[COLOR_LABEL_HILITE] == colors[COLOR_LABEL]))))) { markDirty(null); } ; // Color aColor= (Color)colors.elementAt(COLOR_LABEL_HILITE); this.mButtonListener.buttonMouseEnter(this.mId); }
public void onMouseLeave() { super.onMouseLeave(); if ((((this.mOverAlphaSpeed == 0)) && ((this.mOverAlpha > 0)))) { this.mOverAlpha = 0; } else { if ((((this.mOverAlphaSpeed > 0)) && ((this.mOverAlpha == 0)))) { this.mOverAlpha = 1; } ; } ; if (((((isDown) || (this.haveButtonImage( this.mOverImage, this.mOverRect)))))) // || (!((colors[COLOR_LABEL_HILITE] == colors[COLOR_LABEL]))))) { markDirty(null); } ; this.mButtonListener.buttonMouseLeave(this.mId); }
public void onMouseMove(int x, int y) { super.onMouseMove(x, y); this.mButtonListener.buttonMouseMove(this.mId, x, y); }
public void onMouseDown(int x, int y) { super.onMouseDown(x, y); this.mButtonListener.buttonPress(this.mId); markDirty(null); }