Java Doc for RowSorterEvent.java in  » 6.0-JDK-Core » swing » javax » swing » 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 » swing » javax.swing.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.EventObject
      javax.swing.event.RowSorterEvent

RowSorterEvent
public class RowSorterEvent extends java.util.EventObject (Code)
RowSorterEvent provides notification of changes to a RowSorter. Two types of notification are possible:
  • Type.SORT_ORDER_CHANGED: indicates the sort order has changed. This is typically followed by a notification of:
  • Type.SORTED: indicates the contents of the model have been transformed in some way. For example, the contents may have been sorted or filtered.

version:
   1.9 05/05/07
See Also:   javax.swing.RowSorter
since:
   1.6

Inner Class :public enum Type


Constructor Summary
public  RowSorterEvent(RowSorter source)
     Creates a RowSorterEvent of type SORT_ORDER_CHANGED.
public  RowSorterEvent(RowSorter source, Type type, int[] previousRowIndexToModel)
     Creates a RowSorterEvent.

Method Summary
public  intconvertPreviousRowIndexToModel(int index)
     Returns the location of index in terms of the model prior to the sort.
public  intgetPreviousRowCount()
     Returns the number of rows before the sort.
public  RowSortergetSource()
     Returns the source of the event as a RowSorter.
public  TypegetType()
     Returns the type of event.


Constructor Detail
RowSorterEvent
public RowSorterEvent(RowSorter source)(Code)
Creates a RowSorterEvent of type SORT_ORDER_CHANGED.
Parameters:
  source - the source of the change
throws:
  IllegalArgumentException - if source isnull



RowSorterEvent
public RowSorterEvent(RowSorter source, Type type, int[] previousRowIndexToModel)(Code)
Creates a RowSorterEvent.
Parameters:
  source - the source of the change
Parameters:
  type - the type of event
Parameters:
  previousRowIndexToModel - the mapping from model indices to view indices prior to the sort, may be null
throws:
  IllegalArgumentException - if source or type isnull




Method Detail
convertPreviousRowIndexToModel
public int convertPreviousRowIndexToModel(int index)(Code)
Returns the location of index in terms of the model prior to the sort. This method is only useful for events of type SORTED. This method will return -1 if the index is not valid, or the locations prior to the sort have not been provided.
Parameters:
  index - the index in terms of the view the index in terms of the model prior to the sort, or -1 ifthe location is not valid or the mapping was not provided.



getPreviousRowCount
public int getPreviousRowCount()(Code)
Returns the number of rows before the sort. This method is only useful for events of type SORTED and if the last locations have not been provided will return 0. the number of rows in terms of the view prior to the sort



getSource
public RowSorter getSource()(Code)
Returns the source of the event as a RowSorter. the source of the event as a RowSorter



getType
public Type getType()(Code)
Returns the type of event. the type of event



Fields inherited from java.util.EventObject
protected transient Object source(Code)(Java Doc)

Methods inherited from java.util.EventObject
public Object getSource()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.