Browse Source

lock图标逻辑修改

newui
renekton 6 months ago
parent
commit
31afea2624
  1. 1
      designer-base/src/main/java/com/fr/design/actions/server/ConnectionListAction.java
  2. 1
      designer-base/src/main/java/com/fr/design/actions/server/GlobalTableDataAction.java
  3. 1
      designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java

1
designer-base/src/main/java/com/fr/design/actions/server/ConnectionListAction.java

@ -116,7 +116,6 @@ public class ConnectionListAction extends UpdateAction {
Object object = this.getValue(UILockMenuItem.class.getName()); Object object = this.getValue(UILockMenuItem.class.getName());
if (object == null && !(object instanceof UILockMenuItem)) { if (object == null && !(object instanceof UILockMenuItem)) {
UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.CONNECTION_LOCKED_TOOLTIPS, null, LockItem.CONNECTION); UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.CONNECTION_LOCKED_TOOLTIPS, null, LockItem.CONNECTION);
menuItem.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, null);
// 设置名字用作单元测 // 设置名字用作单元测
menuItem.setName(getName()); menuItem.setName(getName());
setPressedIcon4Button(menuItem); setPressedIcon4Button(menuItem);

1
designer-base/src/main/java/com/fr/design/actions/server/GlobalTableDataAction.java

@ -177,7 +177,6 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
Object object = this.getValue(UILockMenuItem.class.getName()); Object object = this.getValue(UILockMenuItem.class.getName());
if (object == null && !(object instanceof UILockMenuItem)) { if (object == null && !(object instanceof UILockMenuItem)) {
UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.SERVER_TABLEDATA_LOCKED_TOOLTIPS, null, LockItem.SERVER_TABLE_DATA); UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.SERVER_TABLEDATA_LOCKED_TOOLTIPS, null, LockItem.SERVER_TABLE_DATA);
menuItem.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, null);
// 设置名字用作单元测 // 设置名字用作单元测
menuItem.setName(getName()); menuItem.setName(getName());
setPressedIcon4Button(menuItem); setPressedIcon4Button(menuItem);

1
designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java

@ -33,7 +33,6 @@ public class UILockMenuItem extends UIMenuItem implements EditLockChangeListener
this.lockedTooltips = lockedTooltips; this.lockedTooltips = lockedTooltips;
this.normalTooltips = normalTooltips; this.normalTooltips = normalTooltips;
this.lockItem = lockItem; this.lockItem = lockItem;
this.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, FineClientProperties.MENU_ITEM_TYPE_LOCK);
} }
public LockItem getLockItem() { public LockItem getLockItem() {

Loading…
Cancel
Save