39 |
package javax.swing.text.html; |
package javax.swing.text.html; |
40 |
|
|
41 |
import java.io.Reader; |
import java.io.Reader; |
42 |
|
import java.io.Serializable; |
43 |
|
|
44 |
import javax.swing.text.BadLocationException; |
import javax.swing.text.BadLocationException; |
45 |
import javax.swing.text.MutableAttributeSet; |
import javax.swing.text.MutableAttributeSet; |
46 |
|
import javax.swing.text.StyledEditorKit; |
47 |
|
|
48 |
/** |
/** |
49 |
* This class is NOT implemented. This file currently holds only |
* This class is NOT implemented. This file currently holds only |
50 |
* declarations of the two enclosing classes, necessary for testing |
* declarations of the two enclosing classes, necessary for testing |
51 |
* the implemented javax.swing.text.html.parser package. |
* the implemented javax.swing.text.html.parser package. |
52 |
|
* |
53 |
* @author No authorship is taken, implement the class and be! |
* @author No authorship is taken, implement the class and be! |
54 |
* TODO: replace this header after implementing the class. |
* TODO: replace this header after implementing the class. |
55 |
*/ |
*/ |
56 |
public class HTMLEditorKit |
public class HTMLEditorKit |
57 |
|
extends StyledEditorKit |
58 |
|
implements Serializable, Cloneable |
59 |
{ |
{ |
60 |
/** |
/** |
61 |
* The abstract HTML parser declaration. |
* The abstract HTML parser declaration. |
158 |
* is found or if the parser concludes that the one should be present |
* is found or if the parser concludes that the one should be present |
159 |
* in the current position. |
* in the current position. |
160 |
* @param tag The tag being handled |
* @param tag The tag being handled |
161 |
* @param position The tag position in the text bein parsed |
* @param position The tag position in the text being parsed |
162 |
*/ |
*/ |
163 |
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, |
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, |
164 |
int position |
int position |
175 |
{ |
{ |
176 |
} |
} |
177 |
} |
} |
178 |
} |
|
179 |
|
/** |
180 |
|
* Use serialVersionUID (v1.4) for interoperability. |
181 |
|
*/ |
182 |
|
private static final long serialVersionUID = 8751997116710384592L; |
183 |
|
|
184 |
|
/** |
185 |
|
* Default cascading stylesheed file ("default.css"). |
186 |
|
*/ |
187 |
|
public static final String DEFAULT_CSS = "default.css"; |
188 |
|
|
189 |
|
/** |
190 |
|
* The <b>bold</b> action identifier. |
191 |
|
*/ |
192 |
|
public static final String BOLD_ACTION = "html-bold-action"; |
193 |
|
|
194 |
|
/** |
195 |
|
* The <i>italic</i> action identifier. |
196 |
|
*/ |
197 |
|
public static final String ITALIC_ACTION = "html-italic-action"; |
198 |
|
|
199 |
|
/** |
200 |
|
* The <font color="#FF0000">color</font> action indentifier |
201 |
|
* (passing the color as an argument). |
202 |
|
*/ |
203 |
|
public static final String COLOR_ACTION = "html-color-action"; |
204 |
|
|
205 |
|
/** |
206 |
|
* The <font size="+1">increase</font> font action identifier. |
207 |
|
*/ |
208 |
|
public static final String FONT_CHANGE_BIGGER = "html-font-bigger"; |
209 |
|
|
210 |
|
/** |
211 |
|
* The <font size="-1">decrease</font> font action identifier. |
212 |
|
*/ |
213 |
|
public static final String FONT_CHANGE_SMALLER = "html-font-smaller"; |
214 |
|
|
215 |
|
/** |
216 |
|
* Align images at the bottom. |
217 |
|
*/ |
218 |
|
public static final String IMG_ALIGN_BOTTOM = "html-image-align-bottom"; |
219 |
|
|
220 |
|
/** |
221 |
|
* Align images at the middle. |
222 |
|
*/ |
223 |
|
public static final String IMG_ALIGN_MIDDLE = "html-image-align-middle"; |
224 |
|
|
225 |
|
/** |
226 |
|
* Align images at the top. |
227 |
|
*/ |
228 |
|
public static final String IMG_ALIGN_TOP = "html-image-align-top"; |
229 |
|
|
230 |
|
/** |
231 |
|
* Align images at the border. |
232 |
|
*/ |
233 |
|
public static final String IMG_BORDER = "html-image-border"; |
234 |
|
|
235 |
|
/** |
236 |
|
* The "logical style" action identifier, passing that style as parameter. |
237 |
|
*/ |
238 |
|
public static final String LOGICAL_STYLE_ACTION = "html-logical-style-action"; |
239 |
|
|
240 |
|
/** |
241 |
|
* The "ident paragraph left" action. |
242 |
|
*/ |
243 |
|
public static final String PARA_INDENT_LEFT = "html-para-indent-left"; |
244 |
|
|
245 |
|
/** |
246 |
|
* The "ident paragraph right" action. |
247 |
|
*/ |
248 |
|
public static final String PARA_INDENT_RIGHT = "html-para-indent-right"; |
249 |
|
} |