|
|
@ -242,7 +242,10 @@ public class UIEastResizableContainer extends JPanel { |
|
|
|
* 伸缩右子面板时,触发此方法 |
|
|
|
* 伸缩右子面板时,触发此方法 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void onResize() { |
|
|
|
public void onResize() { |
|
|
|
// do nothing here
|
|
|
|
refreshContainer(); |
|
|
|
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void showContainer() { |
|
|
|
public void showContainer() { |
|
|
@ -251,10 +254,6 @@ public class UIEastResizableContainer extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
containerWidth = preferredWidth; |
|
|
|
containerWidth = preferredWidth; |
|
|
|
onResize(); |
|
|
|
onResize(); |
|
|
|
refreshContainer(); |
|
|
|
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void hideContainer() { |
|
|
|
public void hideContainer() { |
|
|
@ -264,10 +263,6 @@ public class UIEastResizableContainer extends JPanel { |
|
|
|
setPreferredWidth(containerWidth); |
|
|
|
setPreferredWidth(containerWidth); |
|
|
|
containerWidth = leftPaneWidth; |
|
|
|
containerWidth = leftPaneWidth; |
|
|
|
onResize(); |
|
|
|
onResize(); |
|
|
|
refreshContainer(); |
|
|
|
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private class TopToolPane extends JPanel { |
|
|
|
private class TopToolPane extends JPanel { |
|
|
|