Java Doc for AdjustmentEvent.java in  » 6.0-JDK-Core » AWT » java » awt » event » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.AWTEvent
   java.awt.event.AdjustmentEvent

AdjustmentEvent
public class AdjustmentEvent extends AWTEvent (Code)
The adjustment event emitted by Adjustable objects.
See Also:   java.awt.Adjustable
See Also:   AdjustmentListener
author:
   Amy Fowler
version:
   1.37 06/05/07
since:
   1.1


Field Summary
final public static  intADJUSTMENT_FIRST
     Marks the first integer id for the range of adjustment event ids.
final public static  intADJUSTMENT_LAST
     Marks the last integer id for the range of adjustment event ids.
final public static  intADJUSTMENT_VALUE_CHANGED
     The adjustment value changed event.
final public static  intBLOCK_DECREMENT
     The block decrement adjustment type.
final public static  intBLOCK_INCREMENT
     The block increment adjustment type.
final public static  intTRACK
     The absolute tracking adjustment type.
final public static  intUNIT_DECREMENT
     The unit decrement adjustment type.
final public static  intUNIT_INCREMENT
     The unit increment adjustment type.
 Adjustableadjustable
     The adjustable object that fired the event.
 intadjustmentType
     The adjustmentType describes how the adjustable object value has changed.
 booleanisAdjusting
     The isAdjusting is true if the event is one of the series of multiple adjustment events.
 intvalue
     value will contain the new value of the adjustable object.

Constructor Summary
public  AdjustmentEvent(Adjustable source, int id, int type, int value)
     Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.
public  AdjustmentEvent(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.

Note that passing in an invalid id results in unspecified behavior.


Method Summary
public  AdjustablegetAdjustable()
     Returns the Adjustable object where this event originated.
public  intgetAdjustmentType()
     Returns the type of adjustment which caused the value changed event.
public  intgetValue()
     Returns the current value in the adjustment event.
public  booleangetValueIsAdjusting()
     Returns true if this is one of multiple adjustment events.
public  StringparamString()
    

Field Detail
ADJUSTMENT_FIRST
final public static int ADJUSTMENT_FIRST(Code)
Marks the first integer id for the range of adjustment event ids.



ADJUSTMENT_LAST
final public static int ADJUSTMENT_LAST(Code)
Marks the last integer id for the range of adjustment event ids.



ADJUSTMENT_VALUE_CHANGED
final public static int ADJUSTMENT_VALUE_CHANGED(Code)
The adjustment value changed event.



BLOCK_DECREMENT
final public static int BLOCK_DECREMENT(Code)
The block decrement adjustment type.



BLOCK_INCREMENT
final public static int BLOCK_INCREMENT(Code)
The block increment adjustment type.



TRACK
final public static int TRACK(Code)
The absolute tracking adjustment type.



UNIT_DECREMENT
final public static int UNIT_DECREMENT(Code)
The unit decrement adjustment type.



UNIT_INCREMENT
final public static int UNIT_INCREMENT(Code)
The unit increment adjustment type.



adjustable
Adjustable adjustable(Code)
The adjustable object that fired the event.
See Also:   AdjustmentEvent.getAdjustable



adjustmentType
int adjustmentType(Code)
The adjustmentType describes how the adjustable object value has changed. This value can be increased/decreased by a block or unit amount where the block is associated with page increments/decrements, and a unit is associated with line increments/decrements.
See Also:   AdjustmentEvent.getAdjustmentType



isAdjusting
boolean isAdjusting(Code)
The isAdjusting is true if the event is one of the series of multiple adjustment events.
since:
   1.4
See Also:   AdjustmentEvent.getValueIsAdjusting



value
int value(Code)
value will contain the new value of the adjustable object. This value will always be in a range associated adjustable object.
See Also:   AdjustmentEvent.getValue




Constructor Detail
AdjustmentEvent
public AdjustmentEvent(Adjustable source, int id, int type, int value)(Code)
Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null.
Parameters:
  source - the Adjustable object where theevent originated
Parameters:
  id - the event type
Parameters:
  type - the adjustment type
Parameters:
  value - the current value of the adjustment
throws:
  IllegalArgumentException - if source is null




AdjustmentEvent
public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting)(Code)
Constructs an AdjustmentEvent object with the specified Adjustable source, event type, adjustment type, and value.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null.
Parameters:
  source - the Adjustable object where theevent originated
Parameters:
  id - the event type
Parameters:
  type - the adjustment type
Parameters:
  value - the current value of the adjustment
Parameters:
  isAdjusting - true if the event is oneof a series of multiple adjusting events,otherwise false
throws:
  IllegalArgumentException - if source is null
since:
   1.4





Method Detail
getAdjustable
public Adjustable getAdjustable()(Code)
Returns the Adjustable object where this event originated. the Adjustable object where this event originated



getAdjustmentType
public int getAdjustmentType()(Code)
Returns the type of adjustment which caused the value changed event. It will have one of the following values: one of the adjustment values listed above



getValue
public int getValue()(Code)
Returns the current value in the adjustment event. the current value in the adjustment event



getValueIsAdjusting
public boolean getValueIsAdjusting()(Code)
Returns true if this is one of multiple adjustment events. true if this is one of multipleadjustment events, otherwise returns false
since:
   1.4



paramString
public String paramString()(Code)



Fields inherited from java.awt.AWTEvent
final public static long ACTION_EVENT_MASK(Code)(Java Doc)
final public static long ADJUSTMENT_EVENT_MASK(Code)(Java Doc)
final public static long COMPONENT_EVENT_MASK(Code)(Java Doc)
final public static long CONTAINER_EVENT_MASK(Code)(Java Doc)
final public static long FOCUS_EVENT_MASK(Code)(Java Doc)
final public static long HIERARCHY_BOUNDS_EVENT_MASK(Code)(Java Doc)
final public static long HIERARCHY_EVENT_MASK(Code)(Java Doc)
final public static long INPUT_METHOD_EVENT_MASK(Code)(Java Doc)
final public static long INVOCATION_EVENT_MASK(Code)(Java Doc)
final public static long ITEM_EVENT_MASK(Code)(Java Doc)
final public static long KEY_EVENT_MASK(Code)(Java Doc)
final public static long MOUSE_EVENT_MASK(Code)(Java Doc)
final public static long MOUSE_MOTION_EVENT_MASK(Code)(Java Doc)
final public static long MOUSE_WHEEL_EVENT_MASK(Code)(Java Doc)
final public static long PAINT_EVENT_MASK(Code)(Java Doc)
final public static int RESERVED_ID_MAX(Code)(Java Doc)
final public static long TEXT_EVENT_MASK(Code)(Java Doc)
final public static long WINDOW_EVENT_MASK(Code)(Java Doc)
final public static long WINDOW_FOCUS_EVENT_MASK(Code)(Java Doc)
final public static long WINDOW_STATE_EVENT_MASK(Code)(Java Doc)
protected boolean consumed(Code)(Java Doc)
protected int id(Code)(Java Doc)

Methods inherited from java.awt.AWTEvent
protected void consume()(Code)(Java Doc)
public int getID()(Code)(Java Doc)
protected boolean isConsumed()(Code)(Java Doc)
public String paramString()(Code)(Java Doc)
public void setSource(Object newSource)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.