API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.accessibility. AccessibleTableModelChange View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

/*
 * @(#)AccessibleTableModelChange.java	1.12 06/04/07
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package javax.accessibility;

/**
 * The AccessibleTableModelChange interface describes a change to
 * the table model.  The attributes of the model change can be
 * obtained by the following methods:
 * <ul>
 * <li> public int getType()
 * <li> public int getFirstRow();
 * <li> public int getLastRow();
 * <li> public int getFirstColumn();
 * <li> public int getLastColumn();
 * </ul>
 * The model change type returned by getType() will be one of:
 * <ul>
 * <li> INSERT - one or more rows and/or columns have been inserted
 * <li> UPDATE - some of the table data has changed
 * <li> DELETE - one or more rows and/or columns have been deleted
 * </ul>
 * The affected area of the table can be determined by the other
 * four methods which specify ranges of rows and columns
 *
 * @see Accessible
 * @see Accessible#getAccessibleContext
 * @see AccessibleContext
 * @see AccessibleContext#getAccessibleTable
 *
 * @version     1.2 10/12/99
 * @author	Lynn Monsanto
 * @since 1.3
 */
public interface AccessibleTableModelChange {

    /** 
     * Identifies the insertion of new rows and/or columns. 
     */
    public static final int INSERT =  1;

    /** 
     * Identifies a change to existing data. 
     */
    public static final int UPDATE =  0;

    /** 
     * Identifies the deletion of rows and/or columns. 
     */
    public static final int DELETE = -1;
    
    /**
     *  Returns the type of event
     *
     *  @see #INSERT
     *  @see #UPDATE
     *  @see #DELETE
     */
    public int getType();

    /** 
     * Returns the first row that changed.
     */
    public int getFirstRow();
    
    /** 
     * Returns the last row that changed. 
     */
    public int getLastRow();
    
    /** 
     * Returns the first column that changed.
     */
    public int getFirstColumn();
    
    /** 
     * Returns the last column that changed. 
     */
    public int getLastColumn();
}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar