After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 344 B |
After Width: | Height: | Size: 240 B |
After Width: | Height: | Size: 232 B |
After Width: | Height: | Size: 406 B |
After Width: | Height: | Size: 221 B |
After Width: | Height: | Size: 197 B |
After Width: | Height: | Size: 326 B |
After Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 118 B |
After Width: | Height: | Size: 166 B |
@ -1 +1 @@ |
|||||||
package com.fr.design.mainframe;
import com.fr.design.constants.LayoutConstants;
import com.fr.design.designer.TargetComponent;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-12
* Time: 下午6:21
*/
public abstract class AuthorityEditPane extends JPanel {
protected static final int TOP_GAP = 11;
protected static final int LEFT_GAP = 8;
protected static final int ALIGNMENT_GAP = -3;
protected UILabel type = null;
protected UILabel name = null;
protected JPanel checkPane = null;
private TargetComponent target;
public AuthorityEditPane(TargetComponent target) {
protected static final int TOP_GAP = 11;
protected static final int TOP_GAP = 11;
protected static final int TOP_GAP = 11;
protected static final int TOP_GAP = 11;
protected static final int LEFT_GAP = 8;
protected static final int TOP_GAP = 11;
protected static final int ALIGNMENT_GAP = -3;
protected static final int TOP_GAP = 11;
protected static final int TOP_GAP = 11;
protected UILabel type = null;
protected static final int TOP_GAP = 11;
protected UILabel name = null;
protected static final int TOP_GAP = 11;
protected JPanel checkPane = null;
protected static final int TOP_GAP = 11;
private TargetComponent target;
protected static final int TOP_GAP = 11;
public AuthorityEditPane(TargetComponent target) {
protected static final int LEFT_GAP = 8;
protected static final int LEFT_GAP = 8;
protected static final int TOP_GAP = 11;
protected static final int LEFT_GAP = 8;
protected static final int LEFT_GAP = 8;
protected static final int LEFT_GAP = 8;
protected static final int ALIGNMENT_GAP = -3;
protected static final int LEFT_GAP = 8;
protected static final int LEFT_GAP = 8;
protected UILabel type = null;
protected static final int LEFT_GAP = 8;
protected UILabel name = null;
protected static final int LEFT_GAP = 8;
protected JPanel checkPane = null;
protected static final int LEFT_GAP = 8;
private TargetComponent target;
protected static final int LEFT_GAP = 8;
public AuthorityEditPane(TargetComponent target) {
protected static final int ALIGNMENT_GAP = -3;
protected static final int TOP_GAP = 11;
public AuthorityEditPane(TargetComponent target) {
protected static final int ALIGNMENT_GAP = -3;
protected static final int TOP_GAP = 11;
double f = TableLayout.FILL;
double p = TableLayout.PREFERRED;
protected static final int LEFT_GAP = 8;
protected static final int LEFT_GAP = 8;
new Component[]{type},
protected static final int ALIGNMENT_GAP = -3;
protected static final int ALIGNMENT_GAP = -3;
protected UILabel type = null;
protected static final int LEFT_GAP = 8;
protected UILabel name = null;
protected static final int LEFT_GAP = 8;
protected JPanel checkPane = null;
double[] columnSize = {f};
protected static final int LEFT_GAP = 8;
public AuthorityEditPane(TargetComponent target) {
protected static final int ALIGNMENT_GAP = -3;
protected static final int TOP_GAP = 11;
public AuthorityEditPane(TargetComponent target) {
protected static final int ALIGNMENT_GAP = -3;
protected JPanel checkPane = null;
* 更新权限编辑面板的具体内容:类型、名称、权限面板
*/
public void populateDetials() {
populateType();
protected static final int LEFT_GAP = 8;
protected static final int ALIGNMENT_GAP = -3;
protected UILabel type = null;
protected static final int TOP_GAP = 11;
public AuthorityEditPane(TargetComponent target) {
protected UILabel name = null;
public abstract void populateName();
public abstract JPanel populateCheckPane();
} |
package com.fr.design.mainframe;
import com.fr.design.constants.LayoutConstants;
import com.fr.design.designer.TargetComponent;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-12
* Time: 下午6:21
*/
public abstract class AuthorityEditPane extends JPanel {
protected static final int TOP_GAP = 11;
protected static final int LEFT_GAP = 4;
protected UILabel type = null;
protected static final int TOP_GAP = 11;
protected UILabel type = null;
protected static final int LEFT_GAP = 8;
protected UILabel type = null;
protected static final int ALIGNMENT_GAP = -3;
protected UILabel type = null;
protected UILabel type = null;
protected UILabel type = null;
protected UILabel type = null;
protected UILabel name = null;
protected UILabel type = null;
protected JPanel checkPane = null;
protected UILabel type = null;
private TargetComponent target;
protected UILabel type = null;
protected UILabel type = null;
public AuthorityEditPane(TargetComponent target) {
protected UILabel name = null;
protected UILabel name = null;
protected static final int TOP_GAP = 11;
protected UILabel name = null;
protected static final int LEFT_GAP = 8;
protected UILabel name = null;
protected static final int ALIGNMENT_GAP = -3;
protected UILabel name = null;
protected UILabel name = null;
protected UILabel type = null;
protected UILabel name = null;
protected UILabel name = null;
protected UILabel name = null;
protected JPanel checkPane = null;
protected UILabel name = null;
private TargetComponent target;
protected UILabel name = null;
public AuthorityEditPane(TargetComponent target) {
protected JPanel checkPane = null;
protected JPanel checkPane = null;
protected static final int TOP_GAP = 11;
protected JPanel checkPane = null;
protected static final int LEFT_GAP = 8;
protected JPanel checkPane = null;
protected static final int ALIGNMENT_GAP = -3;
protected JPanel checkPane = null;
protected JPanel checkPane = null;
protected UILabel type = null;
protected JPanel checkPane = null;
protected UILabel name = null;
protected JPanel checkPane = null;
protected JPanel checkPane = null;
protected JPanel checkPane = null;
private TargetComponent target;
protected JPanel checkPane = null;
public AuthorityEditPane(TargetComponent target) {
private TargetComponent target;
private TargetComponent target;
protected static final int TOP_GAP = 11;
new Component[]{checkPane, null},
private TargetComponent target;
protected static final int ALIGNMENT_GAP = -3;
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_SMALL, LayoutConstants.VGAP_MEDIUM);
protected JPanel checkPane = null;
protected static final int LEFT_GAP = 8;
protected UILabel type = null;
private TargetComponent target;
protected UILabel type = null;
private TargetComponent target;
protected UILabel name = null;
private TargetComponent target;
protected JPanel checkPane = null;
public void populateDetials() {
private TargetComponent target;
public AuthorityEditPane(TargetComponent target) {
public AuthorityEditPane(TargetComponent target) {
public AuthorityEditPane(TargetComponent target) {
protected static final int TOP_GAP = 11;
public AuthorityEditPane(TargetComponent target) {
protected static final int LEFT_GAP = 8;
public AuthorityEditPane(TargetComponent target) {
protected static final int ALIGNMENT_GAP = -3;
protected JPanel checkPane = null;
protected static final int LEFT_GAP = 8;
protected UILabel type = null;
public AuthorityEditPane(TargetComponent target) {
protected UILabel type = null;
public AuthorityEditPane(TargetComponent target) {
protected UILabel type = null;
protected UILabel type = null;
public AuthorityEditPane(TargetComponent target) {
protected UILabel name = null;
public abstract JPanel populateCheckPane();
} |
@ -1 +1 @@ |
|||||||
package com.fr.design.mainframe;
import com.fr.design.constants.UIConstants;
import com.fr.design.designer.TargetComponent;
import com.fr.design.gui.icontainer.UIScrollPane;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-12
* Time: 下午6:14
*/
public class AuthorityPropertyPane extends JPanel {
private static final int TITLE_HEIGHT = 19;
private AuthorityEditPane authorityEditPane = null;
public AuthorityPropertyPane(TargetComponent t) {
this.setLayout(new BorderLayout());
this.setBorder(null);
UILabel authorityTitle = new UILabel(Inter.getLocText(new String[]{"DashBoard-Potence", "Edit"})) {
@Override
public Dimension getPreferredSize() {
return new Dimension(super.getPreferredSize().width, TITLE_HEIGHT);
}
};
authorityTitle.setHorizontalAlignment(SwingConstants.CENTER);
authorityTitle.setVerticalAlignment(SwingConstants.CENTER);
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
northPane.add(authorityTitle, BorderLayout.CENTER);
northPane.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, UIConstants.LINE_COLOR));
this.add(northPane, BorderLayout.NORTH);
authorityEditPane = t.createAuthorityEditPane();
UIScrollPane scrollPane = new UIScrollPane(authorityEditPane);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
this.add(scrollPane, BorderLayout.CENTER);
}
public void populate() {
authorityEditPane.populateDetials();
}
} |
package com.fr.design.mainframe;
import com.fr.design.constants.UIConstants;
import com.fr.design.designer.TargetComponent;
import com.fr.design.gui.icontainer.UIScrollPane;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-12
* Time: 下午6:14
*/
public class AuthorityPropertyPane extends JPanel {
private static final int TITLE_HEIGHT = 19;
private AuthorityEditPane authorityEditPane = null;
public AuthorityPropertyPane(TargetComponent t) {
this.setLayout(new BorderLayout());
this.setBorder(null);
UILabel authorityTitle = new UILabel(Inter.getLocText(new String[]{"DashBoard-Potence", "Edit"})) {
@Override
public Dimension getPreferredSize() {
return new Dimension(super.getPreferredSize().width, TITLE_HEIGHT);
}
};
authorityTitle.setHorizontalAlignment(SwingConstants.CENTER);
authorityTitle.setVerticalAlignment(SwingConstants.CENTER);
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
northPane.add(authorityTitle, BorderLayout.CENTER);
northPane.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, UIConstants.LINE_COLOR));
// this.add(northPane, BorderLayout.NORTH);
authorityEditPane = t.createAuthorityEditPane();
UIScrollPane scrollPane = new UIScrollPane(authorityEditPane);
scrollPane.setBorder(null);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
this.add(scrollPane, BorderLayout.CENTER);
}
public void populate() {
authorityEditPane.populateDetials();
}
} |
@ -1 +1 @@ |
|||||||
package com.fr.design.mainframe;
import com.fr.design.constants.UIConstants;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-22
* Time: 上午10:05
*/
public class NoSupportAuthorityEdit extends AuthorityEditPane {
private static final int TITLE_HEIGHT = 19;
public NoSupportAuthorityEdit() {
super(HistoryTemplateListPane.getInstance().getCurrentEditingTemplate());
this.setLayout(new BorderLayout());
this.setBorder(null);
UILabel title = new UILabel(Inter.getLocText(new String[]{"DashBoard-Potence", "Edit"})) {
@Override
public Dimension getPreferredSize() {
return new Dimension(super.getPreferredSize().width, TITLE_HEIGHT);
}
};
title.setHorizontalAlignment(SwingConstants.CENTER);
title.setVerticalAlignment(SwingConstants.CENTER);
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
northPane.add(title, BorderLayout.CENTER);
northPane.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, UIConstants.LINE_COLOR));
this.add(northPane, BorderLayout.NORTH);
this.add(createTextPane(), BorderLayout.CENTER);
}
private JPanel createTextPane() {
JPanel panel = new JPanel(new BorderLayout());
UILabel uiLabel = new UILabel(Inter.getLocText("not_support_authority_edit"));
uiLabel.setHorizontalAlignment(SwingConstants.CENTER);
uiLabel.setVerticalAlignment(SwingConstants.CENTER);
panel.add(uiLabel, BorderLayout.CENTER);
return panel;
}
@Override
public void populateType() {
}
@Override
public void populateName() {
}
@Override
public JPanel populateCheckPane() {
return null;
}
} |
package com.fr.design.mainframe;
import com.fr.design.constants.UIConstants;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.Inter;
import javax.swing.*;
import java.awt.*;
/**
* Author : daisy
* Date: 13-9-22
* Time: 上午10:05
*/
public class NoSupportAuthorityEdit extends AuthorityEditPane {
private static final int TITLE_HEIGHT = 19;
public NoSupportAuthorityEdit() {
super(HistoryTemplateListPane.getInstance().getCurrentEditingTemplate());
this.setLayout(new BorderLayout());
this.setBorder(null);
UILabel title = new UILabel(Inter.getLocText(new String[]{"DashBoard-Potence", "Edit"})) {
@Override
public Dimension getPreferredSize() {
return new Dimension(super.getPreferredSize().width, TITLE_HEIGHT);
}
};
title.setHorizontalAlignment(SwingConstants.CENTER);
title.setVerticalAlignment(SwingConstants.CENTER);
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
northPane.add(title, BorderLayout.CENTER);
northPane.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, UIConstants.LINE_COLOR));
// this.add(northPane, BorderLayout.NORTH);
this.add(createTextPane(), BorderLayout.CENTER);
}
private JPanel createTextPane() {
JPanel panel = new JPanel(new BorderLayout());
UILabel uiLabel = new UILabel(Inter.getLocText("not_support_authority_edit"));
uiLabel.setHorizontalAlignment(SwingConstants.CENTER);
uiLabel.setVerticalAlignment(SwingConstants.CENTER);
panel.add(uiLabel, BorderLayout.CENTER);
return panel;
}
@Override
public void populateType() {
}
@Override
public void populateName() {
}
@Override
public JPanel populateCheckPane() {
return null;
}
} |