|
|
|
@ -18,12 +18,12 @@ public class RecommendSearchPane extends TemplateResourcePanel {
|
|
|
|
|
|
|
|
|
|
public RecommendSearchPane(TemplateResource templateResource) { |
|
|
|
|
super(); |
|
|
|
|
this.templateResource = templateResource; |
|
|
|
|
setTemplateResource(templateResource); |
|
|
|
|
initComponent(); |
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.setBorder(BorderFactory.createLineBorder(new Color(0xe8e8e9), 1)); |
|
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
|
this.add(southPane, BorderLayout.SOUTH); |
|
|
|
|
this.add(getNorthPane(), BorderLayout.NORTH); |
|
|
|
|
this.add(getSouthPane(), BorderLayout.SOUTH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initComponent() { |
|
|
|
@ -33,12 +33,13 @@ public class RecommendSearchPane extends TemplateResourcePanel {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void createSouthPane() { |
|
|
|
|
southPane = new JPanel(new FlowLayout(FlowLayout.LEFT)); |
|
|
|
|
setSouthPane(new JPanel(new FlowLayout(FlowLayout.LEFT))); |
|
|
|
|
JPanel southPane = getSouthPane(); |
|
|
|
|
southPane.setBackground(Color.WHITE); |
|
|
|
|
JLabel recommend = new JLabel(Toolkit.i18nText("Fine-Design_Report_AlphaFine_Template_Resource_Recommend_For_You")); |
|
|
|
|
southPane.add(recommend); |
|
|
|
|
|
|
|
|
|
List<String> searchKeys = templateResource.getRecommendSearchKey(); |
|
|
|
|
List<String> searchKeys = getTemplateResource().getRecommendSearchKey(); |
|
|
|
|
|
|
|
|
|
for (String key : searchKeys) { |
|
|
|
|
JLabel keyLabel = new SearchKeyLabel(key); |
|
|
|
|