|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
AttributeComponent.java | - | - | - | - |
|
1 |
/*
|
|
2 |
* SimplyHTML, a word processor based on Java, HTML and CSS
|
|
3 |
* Copyright (C) 2002 Ulrich Hilger
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or
|
|
6 |
* modify it under the terms of the GNU General Public License
|
|
7 |
* as published by the Free Software Foundation; either version 2
|
|
8 |
* of the License, or (at your option) any later version.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
18 |
*/
|
|
19 |
|
|
20 |
import javax.swing.text.AttributeSet;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Defines a set of methods common to components bound to AttributeSets.
|
|
24 |
*
|
|
25 |
* @author Ulrich Hilger
|
|
26 |
* @author Light Development
|
|
27 |
* @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
|
|
28 |
* @author <a href="mailto:info@lightdev.com">info@lightdev.com</a>
|
|
29 |
* @author published under the terms and conditions of the
|
|
30 |
* GNU General Public License,
|
|
31 |
* for details see file gpl.txt in the distribution
|
|
32 |
* package of this software
|
|
33 |
*
|
|
34 |
* @version stage 11, April 27, 2003
|
|
35 |
*/
|
|
36 |
|
|
37 |
public interface AttributeComponent { |
|
38 |
|
|
39 |
/**
|
|
40 |
* set the value of this <code>AttributeComponent</code>
|
|
41 |
*
|
|
42 |
* @param a the set of attributes possibly having an
|
|
43 |
* attribute this component can display
|
|
44 |
*
|
|
45 |
* @return true, if the set of attributes had a matching attribute,
|
|
46 |
* false if not
|
|
47 |
*/
|
|
48 |
public boolean setValue(AttributeSet a); |
|
49 |
|
|
50 |
/**
|
|
51 |
* get the value of this <code>AttributeComponent</code>
|
|
52 |
*
|
|
53 |
* @return the value selected from this component
|
|
54 |
*/
|
|
55 |
public AttributeSet getValue();
|
|
56 |
|
|
57 |
public AttributeSet getValue(boolean includeUnchanged); |
|
58 |
|
|
59 |
} |
|