/** * Creates a busy message covering the specified target. A busy message consists of a mask the * covers and prevents interaction with the target component and a message centered within the * mask. * * @param target The target of the busy message. * @param message The message to be displayed. If null, any existing message is removed. */ public static void busy(BaseUIComponent target, String message) { if (message == null || message.isEmpty()) { target.removeMask(); } else { target.addMask(message); } }
/** * Show or hide the design mode mask. */ public void update() { boolean shouldShow = shouldShow(); if (visible != shouldShow) { visible = shouldShow; BaseUIComponent target = element.getMaskTarget(); if (visible) { Menupopup contextMenu = ElementUI.getDesignContextMenu(target); String displayName = element.getDisplayName(); target.addMask(displayName, contextMenu); } else { target.removeMask(); } } }
root.removeMask(); Scenario scenario = getSelectedScenario(); Action action = (Action) event.getData();