01: /*
02: * TextContainer.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.interfaces;
13:
14: /**
15: *
16: * @author support@sql-workbench.net
17: */
18: public interface TextContainer {
19: String getText();
20:
21: String getSelectedText();
22:
23: void setSelectedText(String aText);
24:
25: void setText(String aText);
26:
27: void setCaretPosition(int pos);
28:
29: int getCaretPosition();
30:
31: int getSelectionStart();
32:
33: int getSelectionEnd();
34:
35: void select(int start, int end);
36:
37: void setEditable(boolean flag);
38: }
|