You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
package com.fr.design.actions.server; |
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
import com.fr.design.dialog.BasicPane; |
|
import com.fr.design.gui.ilable.UILabel; |
|
import com.fr.design.gui.itextfield.UITextField; |
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
import com.fr.design.present.StyleArrayPane; |
|
import com.fr.general.Inter; |
|
|
|
import javax.swing.*; |
|
import java.awt.*; |
|
|
|
public class StyleManagerPane extends BasicPane { |
|
private UITextField StyleTextField; |
|
private StyleArrayPane styleArrayPane; |
|
|
|
public StyleManagerPane(){ |
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
JPanel stylePathPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
this.add(stylePathPane, BorderLayout.NORTH); |
|
|
|
stylePathPane.add(new UILabel(Inter.getLocText("FR-Designer_Save_Path") + ":"), BorderLayout.WEST); |
|
this.StyleTextField = new UITextField(); |
|
stylePathPane.add(StyleTextField, BorderLayout.CENTER); |
|
this.StyleTextField.setEditable(false); |
|
|
|
styleArrayPane = new StyleArrayPane(); |
|
this.add(styleArrayPane, BorderLayout.CENTER); |
|
} |
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return Inter.getLocText("ServerM-Predefined_Styles"); |
|
} |
|
|
|
public void populate(ServerPreferenceConfig configManager) { |
|
//todo 原来界面上显示的xml路径 |
|
// this.StyleTextField.setText(WorkContext.getCurrent().getPath() + File.separator + |
|
// ProjectConstants.RESOURCES_NAME + |
|
// File.separator + configManager.fileName()); |
|
this.styleArrayPane.populate(configManager); |
|
} |
|
|
|
public void update(ServerPreferenceConfig configManager) { |
|
this.styleArrayPane.update(configManager); |
|
} |
|
} |