Skip to content

Commit fedeea6

Browse files
authored
Merge pull request #16 from openworld42/develop
overworked Parser: text, javadoc, typos
2 parents 07a5e22 + 23dde77 commit fedeea6

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/template/ui/Gbc.java

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,25 @@
102102
*
103103
* @author Heinz Silberbauer
104104
*/
105+
@SuppressWarnings("serial")
105106
public class Gbc extends GridBagConstraints {
106-
107-
private static final long serialVersionUID = 1L;
108107

109108
// constants
110109

110+
/** the token for top side placement */
111111
public static final char TOP = 't';
112+
/** the token for left side placement */
112113
public static final char LEFT = 'l';
114+
/** the token for bottom side placement */
113115
public static final char BOTTOM = 'b';
116+
/** the token for right side placement */
114117
public static final char RIGHT = 'r';
115118

119+
/** the default insets, unless set to other values */
116120
public static final Insets DEFAULT_INSETS = new Insets(4, 4, 4, 4);
117-
118-
// static variables
119-
120-
private static int defaultInset = 4;
121+
/** the default insets value for a component, unless set to another value */
122+
private static int defaultInset = 4;
123+
/** the default insets value for the borders, unless set to another value */
121124
private static int defaultBorderInset = 8;
122125

123126
/**
@@ -253,7 +256,8 @@ public Gbc(int gridX, int gridY) {
253256
*
254257
* @param direction the direction character to be searched for
255258
* @param tokens may contain one or more direction characters
256-
* for border spacing
259+
* for border spacing
260+
* @return the default border inset
257261
*/
258262
protected int checkForBorderInset(char direction, String tokens) {
259263

@@ -272,7 +276,8 @@ protected int checkForBorderInset(char direction, String tokens) {
272276
* The token string may be empty or <code>null</code>.
273277
*
274278
* @param token the token string containing zero or more
275-
* direction characters
279+
* direction characters
280+
* @return the default border inset
276281
*/
277282
protected Insets createInsetsFrom(String token) {
278283

0 commit comments

Comments
 (0)