@ -357,6 +357,9 @@ public class OnlineWidgetBlock extends AbstractOnlineWidgetBlock {
if (isUnusable) {
paintUnusableMask((Graphics2D) g);
}
if (this.parentPane != null) {
this.parentPane.refreshShowPaneUI();
protected void paintUnusableMask(Graphics2D g2d) {
@ -393,14 +396,12 @@ public class OnlineWidgetBlock extends AbstractOnlineWidgetBlock {
g2d.setColor(oldColor);
g2d.setFont(oldFont);
@Override
public void repaint() {
super.repaint();
this.parentPane.refreshUI();
class WidgetDownloadProcess implements com.fr.design.extra.Process<Double> {
@ -242,7 +242,7 @@ public abstract class AbstractOnlineWidgetSelectPane extends AbstractWidgetSele
return this.getParent();
public void refreshUI() {
OnlineWidgetRepoPane.getInstance().repaint();
public void refreshShowPaneUI() {
OnlineWidgetRepoPane.getInstance().refreshShowPaneUI();
@ -228,6 +228,12 @@ public class OnlineWidgetRepoPane extends BasicPane {
public void refreshShowPaneUI(){
if (componentTabPane != null) {
this.componentTabPane.refreshShowPaneUI();
public void completeEmbedFilter(){
@ -87,6 +87,13 @@ public class OnlineWidgetTabPane extends JPanel {
this.cardLayout.show(centerPane, ComponentShareUtil.needShowEmbedFilterPane() ? COMPONENT_EMBED : COMPONENT);
if (embedFilterShowPane != null) {
this.embedFilterShowPane.refreshUI();
public void removeTabChangeListener(TabChangeListener listener) {
tabChangeListeners.remove(listener);
@ -86,7 +86,7 @@ public class EmbedPane extends JPanel {
protected void paintBorder(Graphics g, UIButton b) {
Color oldColor = g.getColor();
g.setColor(SEARCH_BUTTON_COLOR);
g.drawRoundRect(0, 0, b.getWidth(), b.getHeight(), 2, 2);
g.drawRoundRect(0, 0, b.getWidth() - 4, b.getHeight() - 4, 2, 2);
g.setColor(oldColor);
});
@ -36,6 +36,12 @@ public class OnlineEmbedFilterShowPane extends JPanel {
selectPane.animate();
public void refreshUI(){
if (embedPane != null) {
this.repaint();
if (embedPane!= null && embedPane.isShowing()){
this.remove(embedPane);