Action getCustomEditorAction() { if (customEditorAction == null) { customEditorAction = new CustomEditorAction(this); } return customEditorAction; }
/** * Shows a modal dialog with the custom editor of given property the same * way as property sheet, just like * it would be invoked when clicking the [...] button next to a property in * the property sheet. */ @Override public void showDialog(Property property, Object[] beans) { new CustomEditorAction(new Invoker(property, beans)) .actionPerformed(new ActionEvent(property, ActionEvent.ACTION_PERFORMED, "invokeCustomEditor")); // NOI18N }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
Action getCustomEditorAction() { if (customEditorAction == null) { customEditorAction = new CustomEditorAction(this); } return customEditorAction; }
/** Creates a new instance of CustomEditorAction */ public CustomEditorAction(Invoker invoker) { this.invoker = invoker; putValue(SMALL_ICON, PropUtils.getCustomButtonIcon()); }
Action getCustomEditorAction() { if (customEditorAction == null) { customEditorAction = new CustomEditorAction(this); } return customEditorAction; }
Action getCustomEditorAction() { if (customEditorAction == null) { PropertyModel mdl = null; if (modelRef != null) { mdl = modelRef.get(); } customEditorAction = new CustomEditorAction(new Invoker(), mdl); getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.CTRL_DOWN_MASK, false), "invokeCustomEditor" ); //NOI18N //XXX this could be done lazily getActionMap().put("invokeCustomEditor", customEditorAction); //NOI18N // System.err.println("Installed custom editor action"); } return customEditorAction; }
Action getCustomEditorAction() { if (customEditorAction == null) { PropertyModel mdl=null;; if (modelRef != null) { mdl = (PropertyModel)modelRef.get(); } customEditorAction = new CustomEditorAction(new Invoker(), mdl); getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.CTRL_DOWN_MASK, false), "invokeCustomEditor"); //NOI18N //XXX this could be done lazily getActionMap().put("invokeCustomEditor", customEditorAction); //NOI18N // System.err.println("Installed custom editor action"); } return customEditorAction; }
Action getCustomEditorAction() { if (customEditorAction == null) { PropertyModel mdl=null;; if (modelRef != null) { mdl = (PropertyModel)modelRef.get(); } customEditorAction = new CustomEditorAction(new Invoker(), mdl); getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.CTRL_DOWN_MASK, false), "invokeCustomEditor"); //NOI18N //XXX this could be done lazily getActionMap().put("invokeCustomEditor", customEditorAction); //NOI18N // System.err.println("Installed custom editor action"); } return customEditorAction; }