1 |
/* BasicTextUI.java |
/* BasicTextUI.java -- |
2 |
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
104 |
super(null); |
super(null); |
105 |
} |
} |
106 |
|
|
107 |
|
// View methods. |
108 |
|
|
109 |
public ViewFactory getViewFactory() |
public ViewFactory getViewFactory() |
110 |
{ |
{ |
111 |
// FIXME: Handle EditorKit somehow. |
// FIXME: Handle EditorKit somehow. |
142 |
view.paint(g, s); |
view.paint(g, s); |
143 |
} |
} |
144 |
|
|
145 |
protected Rectangle modelToView(int position, Shape a, Position.Bias bias) |
public Shape modelToView(int position, Shape a, Position.Bias bias) |
146 |
throws BadLocationException |
throws BadLocationException |
147 |
{ |
{ |
148 |
|
if (view == null) |
149 |
|
return null; |
150 |
|
|
151 |
return ((PlainView) view).modelToView(position, a, bias).getBounds(); |
return ((PlainView) view).modelToView(position, a, bias).getBounds(); |
152 |
} |
} |
153 |
} |
} |
332 |
rootView.setView(null); |
rootView.setView(null); |
333 |
|
|
334 |
textComponent.removePropertyChangeListener(updateHandler); |
textComponent.removePropertyChangeListener(updateHandler); |
|
textComponent = null; |
|
335 |
|
|
336 |
uninstallDefaults(); |
uninstallDefaults(); |
337 |
uninstallListeners(); |
uninstallListeners(); |
338 |
uninstallKeyboardActions(); |
uninstallKeyboardActions(); |
339 |
|
|
340 |
|
textComponent = null; |
341 |
} |
} |
342 |
|
|
343 |
protected void uninstallDefaults() |
protected void uninstallDefaults() |
448 |
|
|
449 |
public View create(Element elem) |
public View create(Element elem) |
450 |
{ |
{ |
451 |
// subclasses have to implement this to get this functionality |
// Subclasses have to implement this to get this functionality. |
452 |
return null; |
return null; |
453 |
} |
} |
454 |
|
|
455 |
public View create(Element elem, int p0, int p1) |
public View create(Element elem, int p0, int p1) |
456 |
{ |
{ |
457 |
// subclasses have to implement this to get this functionality |
// Subclasses have to implement this to get this functionality. |
458 |
return null; |
return null; |
459 |
} |
} |
460 |
|
|