001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.unifiedGui.interfaces;
032:
033: /**
034: * @author Dirk
035: *
036: * date: 04.06.2005 project: WiSer-Framework
037: *
038: * <p>
039: * IUnTextInputComponent is the common interface to text input widgets.
040: * </p>
041: */
042: public interface IUnTextInputComponent {
043: /**
044: * <p>
045: * Stores a selection intervall
046: * </p>
047: */
048: class SelectionInterval {
049: public int pcm_begin = 0;
050: public int pcm_len = 0;
051:
052: public SelectionInterval(int xBegin, int xLen) {
053: this .pcm_begin = xBegin;
054: this .pcm_len = xLen;
055: }
056: }
057:
058: /**
059: * <p>
060: * Sets the valid input signs for this widget
061: * </p>
062: * <p>
063: *
064: * </p>
065: * <p>
066: *
067: * @param xSigns
068: * String which contains all valid signs
069: * </p>
070: */
071: public void pcmf_setInputFilter(String xSigns);
072:
073: /**
074: * <p>
075: * Removes the filter
076: * </p>
077: * <p>
078: *
079: * </p>
080: * <p>
081: * </p>
082: */
083: public void pcmf_removeInputFilter();
084:
085: /**
086: * <p>
087: * Retirns the input filter
088: * </p>
089: * <p>
090: *
091: * @return input filter
092: * </p>
093: * <p>
094: * </p>
095: */
096: public String pcmf_getInputFilter();
097:
098: /**
099: * <p>
100: * Marks the text in the inputfiled as selected
101: * </p>
102: * <p>
103: *
104: * </p>
105: * <p>
106: * </p>
107: */
108: public void pcmf_setSelected();
109:
110: /**
111: * <p>
112: * Removes the text selection
113: * </p>
114: * <p>
115: *
116: * </p>
117: * <p>
118: * </p>
119: */
120: public void pcmf_unSelect();
121:
122: /**
123: *
124: * <p>
125: * Sets a selection interval
126: * </p>
127: * <p>
128: */
129: public void pcmf_setSelectionInterval(SelectionInterval xInterval);
130:
131: /**
132: *
133: * <p>
134: * Sets the caret position
135: * </p>
136: * <p>
137: */
138: public void pcmf_setCaretPosition(int xPos);
139: }
|