AWT AdjustmentEvent Class

  • Post author:
  • Post category:AWT
  • Post comments:3 Comments
AdjustmentEvent Class

Introduction

The AdjustmentEvent Class represents the adjustment event emitted by Adjustable objects.

Class declaration

Following is the declaration for java.awt.event.AdjustmentEvent class:

public class AdjustmentEvent
   extends AWTEvent

Field

Following are the fields for java.awt.Component class:

  • static int ADJUSTMENT_FIRST — Marks the first integer id for the range of adjustment event ids.
  • static int ADJUSTMENT_LAST — Marks the last integer id for the range of adjustment event ids.
  • static int ADJUSTMENT_VALUE_CHANGED — The adjustment value changed event.
  • static int BLOCK_DECREMENT — The block decrement adjustment type.
  • static int BLOCK_INCREMENT — The block increment adjustment type.
  • static int TRACK — The absolute tracking adjustment type.
  • static int UNIT_DECREMENT — The unit decrement adjustment type.
  • static int UNIT_INCREMENT — The unit increment adjustment type.

Class constructors

S.N.Constructor & Description
1AdjustmentEvent(Adjustable source, int id, int type, int value)Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.
2AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.

Class methods

S.N.Method & Description
1Adjustable getAdjustable()Returns the Adjustable object where this event originated.
2int getAdjustmentType()Returns the type of adjustment which caused the value changed event.
3int getValue()Returns the current value in the adjustment event.
4boolean getValueIsAdjusting()Returns true if this is one of multiple adjustment events.
5String paramString()Returns a string representing the state of this Event.

Methods inherited

This interface inherits methods from the following classes:

  • java.awt.AWTEvent
  • java.util.EventObject
  • java.lang.Object

Previous Page:-Click Here

This Post Has 3 Comments

  1. I have seen that car insurance organizations know the cars and trucks which are susceptible to accidents and also other risks. They also know what form of cars are inclined to higher risk and the higher risk they have the higher the actual premium charge. Understanding the uncomplicated basics regarding car insurance will let you choose the right sort of insurance policy that could take care of your wants in case you become involved in an accident. Many thanks sharing your ideas with your blog.

Leave a Reply