source: branches/2.2/jabberit_messenger/java_source/src/nu/fw/jeti/plugins/xhtml/fontchooser/AttributeComponent.java @ 3102

Revision 3102, 2.0 KB checked in by amuller, 14 years ago (diff)

Ticket #986 - Efetuado merge para o Branch 2.2( atualizacao do modulo)

  • Property svn:executable set to *
Line 
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
20package nu.fw.jeti.plugins.xhtml.fontchooser;
21
22import javax.swing.text.AttributeSet;
23
24/**
25 * Defines a set of methods common to components bound to AttributeSets.
26 *
27 * @author Ulrich Hilger
28 * @author Light Development
29 * @author <a href="http://www.lightdev.com">http://www.lightdev.com</a>
30 * @author <a href="mailto:info@lightdev.com">info@lightdev.com</a>
31 * @author published under the terms and conditions of the
32 *      GNU General Public License,
33 *      for details see file gpl.txt in the distribution
34 *      package of this software
35 *
36 * @version stage 9, release 4, January 12, 2003
37 */
38
39public interface AttributeComponent {
40
41  /**
42   * set the value of this <code>AttributeComponent</code>
43   *
44   * @param a  the set of attributes possibly having an
45   *          attribute this component can display
46   *
47   * @return true, if the set of attributes had a matching attribute,
48   *            false if not
49   */
50  public boolean setValue(AttributeSet a);
51
52  /**
53   * get the value of this <code>AttributeComponent</code>
54   *
55   * @return the value selected from this component
56   */
57  public AttributeSet getValue();
58
59  public AttributeSet getValue(boolean includeUnchanged);
60
61}
62/*
63 * Overrides for emacs
64 * Local variables:
65 * tab-width: 4
66 * End:
67 */
Note: See TracBrowser for help on using the repository browser.