Commit b153bff8 authored by 9731301's avatar 9731301

complete request and respond pard and add some buttons and features

parent a23a0a5d
......@@ -75,6 +75,8 @@
<workItem from="1588425228961" duration="8554000" />
<workItem from="1588437622203" duration="6269000" />
<workItem from="1588522915548" duration="9323000" />
<workItem from="1589030581229" duration="11616000" />
<workItem from="1589063831974" duration="14071000" />
</task>
<servers />
</component>
......@@ -82,30 +84,30 @@
<option name="version" value="1" />
</component>
<component name="WindowStateProjectService">
<state x="309" y="122" key="#com.intellij.ide.util.MemberChooser" timestamp="1588443249650">
<state x="309" y="122" key="#com.intellij.ide.util.MemberChooser" timestamp="1589071976072">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="309" y="122" key="#com.intellij.ide.util.MemberChooser/0.0.1536.824@0.0.1536.824" timestamp="1588443249650" />
<state width="799" height="75" key="GridCell.Tab.0.bottom" timestamp="1588535347969">
<state x="309" y="122" key="#com.intellij.ide.util.MemberChooser/0.0.1536.824@0.0.1536.824" timestamp="1589071976072" />
<state width="1493" height="13" key="GridCell.Tab.0.bottom" timestamp="1589078975612">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="799" height="75" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1588535347969" />
<state width="799" height="75" key="GridCell.Tab.0.center" timestamp="1588535347968">
<state width="1493" height="13" key="GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824" timestamp="1589078975612" />
<state width="1493" height="13" key="GridCell.Tab.0.center" timestamp="1589078975612">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="799" height="75" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1588535347968" />
<state width="799" height="75" key="GridCell.Tab.0.left" timestamp="1588535347968">
<state width="1493" height="13" key="GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824" timestamp="1589078975612" />
<state width="1493" height="13" key="GridCell.Tab.0.left" timestamp="1589078975612">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="799" height="75" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1588535347968" />
<state width="799" height="75" key="GridCell.Tab.0.right" timestamp="1588535347969">
<state width="1493" height="13" key="GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824" timestamp="1589078975612" />
<state width="1493" height="13" key="GridCell.Tab.0.right" timestamp="1589078975612">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state width="799" height="75" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1588535347969" />
<state x="425" y="237" key="com.intellij.ide.util.TipDialog" timestamp="1588522979439">
<state width="1493" height="13" key="GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824" timestamp="1589078975612" />
<state x="425" y="237" key="com.intellij.ide.util.TipDialog" timestamp="1589064073545">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="425" y="237" key="com.intellij.ide.util.TipDialog/0.0.1536.824@0.0.1536.824" timestamp="1588522979439" />
<state x="425" y="237" key="com.intellij.ide.util.TipDialog/0.0.1536.824@0.0.1536.824" timestamp="1589064073545" />
<state x="46" y="145" width="672" height="678" key="search.everywhere.popup" timestamp="1588333540387">
<screen x="0" y="0" width="1536" height="824" />
</state>
......
This diff is collapsed.
/**
* @author Pasban
*/
import java.awt.*;
import java.util.*;
class VerticalFlowLayout implements LayoutManager {
public final static int CENTER = 0;
public final static int RIGHT = 1;
public final static int LEFT = 2;
public final static int BOTH = 3;
public final static int TOP = 1;
public final static int BOTTOM = 2;
private int vgap;
private int alignment;
private int anchor;
private Hashtable comps;
public VerticalFlowLayout() {
this(5, CENTER, TOP);
}
public VerticalFlowLayout(int vgap) {
this(vgap, CENTER, TOP);
}
public VerticalFlowLayout(int vgap, int alignment) {
this(vgap, alignment, TOP);
}
public VerticalFlowLayout(int vgap, int alignment, int anchor) {
this.vgap = vgap;
this.alignment = alignment;
this.anchor = anchor;
}
private Dimension layoutSize(Container parent, boolean minimum) {
Dimension dim = new Dimension(0, 0);
Dimension d;
synchronized (parent.getTreeLock()) {
int n = parent.getComponentCount();
for (int i = 0; i < n; i++) {
Component c = parent.getComponent(i);
if (c.isVisible()) {
d = minimum ? c.getMinimumSize() : c.getPreferredSize();
dim.width = Math.max(dim.width, d.width);
dim.height += d.height;
if (i > 0) {
dim.height += vgap;
}
}
}
}
Insets insets = parent.getInsets();
dim.width += insets.left + insets.right;
dim.height += insets.top + insets.bottom + vgap + vgap;
return dim;
}
public void layoutContainer(Container parent) {
Insets insets = parent.getInsets();
synchronized (parent.getTreeLock()) {
int n = parent.getComponentCount();
Dimension pd = parent.getSize();
int y = 0;
for (int i = 0; i < n; i++) {
Component c = parent.getComponent(i);
Dimension d = c.getPreferredSize();
if (c.isVisible()) {
y += d.height + vgap;
}
}
y -= vgap;
if (anchor == TOP) {
y = insets.top;
} else if (anchor == CENTER) {
y = (pd.height - y) / 2;
} else {
y = pd.height - y - insets.bottom;
}
for (int i = 0; i < n; i++) {
Component c = parent.getComponent(i);
Dimension d = c.getPreferredSize();
if (!c.isVisible()) {
continue;
}
int x = 1;
int wid = pd.width - 3;
c.setBounds(x, y, wid, d.height);
y += d.height + vgap;
}
}
}
public Dimension minimumLayoutSize(Container parent) {
return layoutSize(parent, false);
}
public Dimension preferredLayoutSize(Container parent) {
return layoutSize(parent, false);
}
public void addLayoutComponent(String name, Component comp) {
}
public void removeLayoutComponent(Component comp) {
}
public String toString() {
return getClass().getName() + "[vgap=" + vgap + " align=" + alignment + " anchor=" + anchor + "]";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment