|
|
@ -18,6 +18,7 @@ import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUIPaintUtils; |
|
|
|
import com.fr.design.utils.gui.GUIPaintUtils; |
|
|
|
import com.fr.general.FRFont; |
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
import com.fr.plugin.context.PluginRuntime; |
|
|
|
import com.fr.plugin.context.PluginRuntime; |
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
@ -108,6 +109,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
AUTHORITY_EDITION, // 权限编辑
|
|
|
|
AUTHORITY_EDITION, // 权限编辑
|
|
|
|
AUTHORITY_EDITION_DISABLED // 权限编辑
|
|
|
|
AUTHORITY_EDITION_DISABLED // 权限编辑
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private PropertyMode currentMode; // 当前模式(根据不同模式,显示不同的可用面板)
|
|
|
|
private PropertyMode currentMode; // 当前模式(根据不同模式,显示不同的可用面板)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -400,6 +402,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
private void updatePropertyItemMap() { |
|
|
|
private void updatePropertyItemMap() { |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
for (PropertyItem item : propertyItemMap.values()) { |
|
|
|
item.updateStatus(); |
|
|
|
item.updateStatus(); |
|
|
|
|
|
|
|
item.updateTitle(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -734,6 +737,23 @@ public class EastRegionContainerPane extends UIEastResizableContainer { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void updateTitle() { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
if ("widgetSettings".equals(name)) { |
|
|
|
|
|
|
|
if (currentMode == PropertyMode.FORM) { |
|
|
|
|
|
|
|
title = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Component_Settings"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
title = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Widget_Settings"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
button.setToolTipText(title); |
|
|
|
|
|
|
|
UILabel uiLabel = (UILabel) ((BorderLayout)popupToolPane.contentPane.getLayout()).getLayoutComponent(BorderLayout.WEST); |
|
|
|
|
|
|
|
uiLabel.setText(title); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void reAddContentArea() { |
|
|
|
public void reAddContentArea() { |
|
|
|
propertyPanel.add(contentArea, BorderLayout.CENTER); |
|
|
|
propertyPanel.add(contentArea, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|