|
|
|
@ -43,6 +43,11 @@ public class UILockMenuItem extends UIMenuItem implements EditLockChangeListener
|
|
|
|
|
@Override |
|
|
|
|
public void updateLockedState(EditLockChangeEvent event) { |
|
|
|
|
this.setToolTipText(event.isLocked() ? lockedTooltips : normalTooltips); |
|
|
|
|
if (event.isLocked()) { |
|
|
|
|
this.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, FineClientProperties.MENU_ITEM_TYPE_LOCK); |
|
|
|
|
} else { |
|
|
|
|
this.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, null); |
|
|
|
|
} |
|
|
|
|
this.repaint(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|