01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Evgeniya G. Maenkova
19: * @version $Revision$
20: */package javax.swing;
21:
22: import java.awt.Rectangle;
23: import javax.swing.text.Document;
24:
25: public class ExtJTextArea extends JTextArea {
26: private static final long serialVersionUID = 1L;
27:
28: public int flag = 0;
29:
30: public boolean wasCallInvalidate = false;
31:
32: public boolean wasCallRevalidate = false;
33:
34: public ExtJTextArea() {
35: super ();
36: }
37:
38: public ExtJTextArea(final Document doc) {
39: super (doc);
40: }
41:
42: public ExtJTextArea(final Document doc, final String text,
43: final int rows, final int columns) {
44: super (doc, text, rows, columns);
45: }
46:
47: public ExtJTextArea(final int rows, final int columns) {
48: super (rows, columns);
49: }
50:
51: public ExtJTextArea(final String s) {
52: super (s);
53: }
54:
55: public ExtJTextArea(final String text, final int rows,
56: final int columns) {
57: super (text, rows, columns);
58: }
59:
60: @Override
61: public void invalidate() {
62: wasCallInvalidate = true;
63: super .invalidate();
64: }
65:
66: @Override
67: public void revalidate() {
68: wasCallRevalidate = true;
69: super .revalidate();
70: }
71:
72: @Override
73: public void scrollRectToVisible(final Rectangle aRect) {
74: flag = 1;
75: super.scrollRectToVisible(aRect);
76: }
77: }
|