Rev 1814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1814 | Rev 1830 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package pt.estgp.estgweb.services.courses.coursereport.documentmodel; |
1 | package pt.estgp.estgweb.utils.documentBuilder; |
2 | 2 | ||
3 | /** |
3 | /** |
4 | * Created by jorgemachado on 11/10/17. |
4 | * Created by jorgemachado on 11/10/17. |
5 | */ |
5 | */ |
6 | public class GenericTextSection extends DocumentSection |
6 | public class GenericTextSection extends DocumentSection |
7 | { |
7 | { |
8 | 1.5.0/docs/api/java/awt/TextComponent.html">TextComponent textComponent = new 1.5.0/docs/api/java/awt/TextComponent.html">TextComponent(); |
8 | public GenericTextSection() |
9 | CustomPane customPane = new CustomPane(); |
9 | { |
10 | 10 | ||
11 | public 1.5.0/docs/api/java/awt/TextComponent.html">TextComponent getTextComponent() { |
- | |
12 | return textComponent; |
- | |
13 | } |
11 | } |
14 | 12 | ||
15 | public void setTextComponent(1.5.0/docs/api/java/awt/TextComponent.html">TextComponent textComponent) { |
13 | public GenericTextSection(1.5.0/docs/api/java/lang/String.html">String title) |
- | 14 | { |
|
16 | this.textComponent = textComponent; |
15 | super(title); |
- | 16 | init(); |
|
17 | } |
17 | } |
18 | 18 | ||
19 | public CustomPane getCustomPane() { |
19 | public void init() |
- | 20 | { |
|
- | 21 | super.getComponents().add(new 1.5.0/docs/api/java/awt/TextComponent.html">TextComponent()); |
|
20 | return customPane; |
22 | super.getComponents().add(new CustomPane()); |
21 | } |
23 | } |
22 | 24 | ||
23 | public void setCustomPane(CustomPane customPane) { |
- | |
24 | this.customPane = customPane; |
- | |
25 | } |
- | |
26 | } |
25 | } |