Browse Source

无任务,代码规范

master
yaoh.wu 7 years ago
parent
commit
1e0038267d
  1. 2
      designer-base/src/com/fr/design/remote/RemoteDesignAuthorityCreator.java
  2. 11
      designer-base/src/com/fr/design/remote/button/IconButton.java
  3. 11
      designer-base/src/com/fr/design/remote/ui/AuthorityListControlPane.java
  4. 18
      designer-base/src/com/fr/design/remote/ui/UserManagerPane.java
  5. 4
      designer-base/src/com/fr/design/remote/ui/list/AddedMemberList.java
  6. 9
      designer-base/src/com/fr/design/remote/ui/list/AddedMemberListCellRender.java
  7. 4
      designer-base/src/com/fr/design/remote/ui/list/AddingMemberList.java
  8. 9
      designer-base/src/com/fr/design/remote/ui/list/AddingMemberListCellRender.java

2
designer-base/src/com/fr/design/remote/RemoteDesignAuthorityCreator.java

@ -3,7 +3,7 @@ package com.fr.design.remote;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.report.DesignAuthority; import com.fr.report.DesignAuthority;
import javax.swing.*; import javax.swing.Icon;
public class RemoteDesignAuthorityCreator { public class RemoteDesignAuthorityCreator {

11
designer-base/src/com/fr/design/remote/button/IconButton.java

@ -4,8 +4,15 @@ import com.fr.base.BaseUtils;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import javax.swing.*; import javax.swing.JButton;
import java.awt.*; import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
public final class IconButton extends JButton { public final class IconButton extends JButton {
public IconButton() { public IconButton() {

11
designer-base/src/com/fr/design/remote/ui/AuthorityListControlPane.java

@ -24,10 +24,17 @@ import com.fr.general.Inter;
import com.fr.report.DesignAuthority; import com.fr.report.DesignAuthority;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import javax.swing.*; import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener; import javax.swing.event.ListSelectionListener;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

18
designer-base/src/com/fr/design/remote/ui/UserManagerPane.java

@ -11,16 +11,28 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.layout.TableLayout; import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper; import com.fr.design.layout.TableLayoutHelper;
import com.fr.design.remote.ui.list.*; import com.fr.design.remote.ui.list.AddedMemberList;
import com.fr.design.remote.ui.list.AddedMemberListCellRender;
import com.fr.design.remote.ui.list.AddingMemberList;
import com.fr.design.remote.ui.list.AddingMemberListCellRender;
import com.fr.design.remote.ui.list.MemberListSelectedChangeListener;
import com.fr.env.RemoteDesignMember; import com.fr.env.RemoteDesignMember;
import com.fr.env.operator.decision.DecisionOperator; import com.fr.env.operator.decision.DecisionOperator;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.third.guava.collect.ImmutableList; import com.fr.third.guava.collect.ImmutableList;
import javax.swing.*; import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JPanel;
import javax.swing.ListSelectionModel;
import javax.swing.SwingWorker;
import javax.swing.border.EmptyBorder; import javax.swing.border.EmptyBorder;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter; import java.awt.event.KeyAdapter;

4
designer-base/src/com/fr/design/remote/ui/list/AddedMemberList.java

@ -2,8 +2,8 @@ package com.fr.design.remote.ui.list;
import com.fr.env.RemoteDesignMember; import com.fr.env.RemoteDesignMember;
import javax.swing.*; import javax.swing.DefaultListModel;
import java.awt.*; import java.awt.Point;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.util.Vector; import java.util.Vector;

9
designer-base/src/com/fr/design/remote/ui/list/AddedMemberListCellRender.java

@ -5,8 +5,13 @@ import com.fr.design.gui.ilable.UILabel;
import com.fr.design.remote.button.IconButton; import com.fr.design.remote.button.IconButton;
import com.fr.env.RemoteDesignMember; import com.fr.env.RemoteDesignMember;
import javax.swing.*; import javax.swing.BorderFactory;
import java.awt.*; import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
public class AddedMemberListCellRender extends JPanel implements ListCellRenderer<RemoteDesignMember> { public class AddedMemberListCellRender extends JPanel implements ListCellRenderer<RemoteDesignMember> {

4
designer-base/src/com/fr/design/remote/ui/list/AddingMemberList.java

@ -2,8 +2,8 @@ package com.fr.design.remote.ui.list;
import com.fr.env.RemoteDesignMember; import com.fr.env.RemoteDesignMember;
import javax.swing.*; import javax.swing.DefaultListModel;
import java.awt.*; import java.awt.Point;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.util.Vector; import java.util.Vector;

9
designer-base/src/com/fr/design/remote/ui/list/AddingMemberListCellRender.java

@ -5,8 +5,13 @@ import com.fr.design.gui.icheckbox.UICheckBox;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.env.RemoteDesignMember; import com.fr.env.RemoteDesignMember;
import javax.swing.*; import javax.swing.BorderFactory;
import java.awt.*; import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
public class AddingMemberListCellRender extends JPanel implements ListCellRenderer<RemoteDesignMember> { public class AddingMemberListCellRender extends JPanel implements ListCellRenderer<RemoteDesignMember> {

Loading…
Cancel
Save