Revision 33355 branches/v2_0_0_prep/libraries/libUIComponent/src/org/gvsig/gui/beans/swing/JButton.java
JButton.java | ||
---|---|---|
45 | 45 |
import javax.swing.Icon; |
46 | 46 |
|
47 | 47 |
/** |
48 |
* According to the gvSIG's GUI style sheet all the buttons in the application will |
|
49 |
* have a normative size. No smaller than a concrete size, and big enough to contain |
|
50 |
* the text and avoiding the "..." characters. The button will grow up in width by |
|
51 |
* a set of widths defined in this style sheet, always choosing the smallest width that |
|
52 |
* can contain the text. If the biggest width is not enought for this purpose then the |
|
53 |
* button will automatically grow up to the smallest necessary width to fit the text.<br> |
|
48 |
* According to the gvSIG's GUI style sheet all the buttons in the application |
|
49 |
* will have a normative size. No smaller than a concrete size, and big enough |
|
50 |
* to contain the text and avoiding the "..." characters. The button will grow |
|
51 |
* up in width by a set of widths defined in this style sheet, always choosing |
|
52 |
* the smallest width that can contain the text. If the biggest width is not |
|
53 |
* enought for this purpose then the button will automatically grow up to the |
|
54 |
* smallest necessary width to fit the text.<br> |
|
54 | 55 |
* <p> |
55 |
* The button resizing is based on the <b>setText(String txt)</b> method. However,
|
|
56 |
* it is possible to use a custom size if you invoke one of <b>setSize(..)</b>,
|
|
57 |
* <b>setBorders(...)</b> or <b>setPreferredSize(...)</b> after invoking the
|
|
58 |
* <b>setText(...)<b> method. |
|
56 |
* The button resizing is based on the <b>setText(String txt)</b> method. |
|
57 |
* However, it is possible to use a custom size if you invoke one of
|
|
58 |
* <b>setSize(..)</b>, <b>setBorders(...)</b> or <b>setPreferredSize(...)</b>
|
|
59 |
* after invoking the <b>setText(...)<b> method.
|
|
59 | 60 |
* <p> |
60 | 61 |
* This class is just a standard javax.swing.JButton that handles this issue. |
61 | 62 |
* </p> |
62 |
* |
|
63 |
*
|
|
63 | 64 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
64 |
* |
|
65 |
* |
|
66 |
* @deprecated use the |
|
67 |
* org.gvsig.tools.swing.api.usability.UsabilitySwingManager. |
|
68 |
* createJButton() methods instead. You can get the instance of the |
|
69 |
* UsabilitySwingManager through the |
|
70 |
* org.gvsig.tools.swing.api.ToolsSwingLocator class. |
|
71 |
* |
|
65 | 72 |
*/ |
66 | 73 |
public class JButton extends javax.swing.JButton { |
67 | 74 |
private static final long serialVersionUID = -1635879317292710725L; |
Also available in: Unified diff