private void associateHelp(JComponent comp, HelpCtx help) { if ((help != null) && !help.equals(HelpCtx.DEFAULT_HELP) && (help.getHelpID() != null)) { HelpCtx.setHelpIDString(comp, help.getHelpID()); } else { HelpCtx.setHelpIDString(comp, null); } } }
private void doSetHelpCtx(final HelpCtx helpCtx ) { if ((wizardPanel != null) && (helpCtx != null)) { HelpCtx.setHelpIDString(wizardPanel, helpCtx.getHelpID()); } // we call the inherited method after setting the ID // on the panel becuase super.setHelpCtx fires the change super.setHelpCtx(helpCtx); }
/** @param comp component * @param action the action */ public Bridge(JComponent comp, Action action) { if(comp == null || action == null) { throw new IllegalArgumentException( "None of the arguments can be null: comp=" + comp + //NOI18N ", action=" + action); // NOI18N } this.comp = comp; this.action = action; actionL = WeakListeners.propertyChange(this, action); // associate context help, if applicable // [PENDING] probably belongs in ButtonBridge.updateState to make it dynamic HelpCtx help = findHelp(action); if ((help != null) && !help.equals(HelpCtx.DEFAULT_HELP) && (help.getHelpID() != null)) { HelpCtx.setHelpIDString(comp, help.getHelpID()); } }
/** Creates a new instance of DuplicateTiledLayerDialog */ public NewSimpleTiledLayerDialog(ImageResource imgRes, int[][] grid, int tileWidth, int tileHeight) { super(""); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.NewSimpleTiledLayerDialog"); this.imgRes = imgRes; this.grid = grid; this.tileWidth = tileWidth; this.tileHeight = tileHeight; }
/** Creates a new instance of NewAnimatedTileDialog */ public NewAnimatedTileDialog(ImageResource imgRes, int tileWidth, int tileHeight) { super(""); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.NewAnimatedTileDialog"); this.imageResource = imgRes; this.tileWidth = tileWidth; this.tileHeight = tileHeight; }
public RenameTiledLayerDialog(TiledLayer tiledLayer) { super(tiledLayer.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.RenameTiledLayerDialog"); this.tiledLayer = tiledLayer; }
public RenameAnimatedTileDialog(AnimatedTile tile) { super(tile.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.RenameAnimatedTileDialog"); this.tile = tile; }
public RenameSpriteDialog(Sprite sprite) { super(sprite.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.RenameSpriteDialog"); this.sprite = sprite; }
private void updateHelpID() { if (helpId == null) { return; } if (getContentPane() instanceof JComponent) { HelpCtx.setHelpIDString((JComponent)getContentPane(), helpId); } if (helpButton != null) { HelpCtx.setHelpIDString(helpButton, helpId); } }
/** Creates a new instance of DuplicateTiledLayerDialog */ public DuplicateTiledLayerDialog(TiledLayer tiledLayer) { super(tiledLayer.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.DuplicateTiledLayerDialog"); this.tiledLayer = tiledLayer; }
public RenameSequenceDialog(Sequence sequence) { super(sequence.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.RenameSequenceDialog"); this.sequence = sequence; }
public RenameSceneDialog(Scene scene) { super(scene.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.RenameSceneDialog"); this.scene = scene; }
public NewSequenceDialog(SequenceContainer sequenceContainer, Sequence toCopy) { super(toCopy == null ? "" : toCopy.getName()); HelpCtx.setHelpIDString(this, "org.netbeans.modules.vmd.game.dialog.NewSequenceDialog"); this.sequenceContainer = sequenceContainer; this.sequence = toCopy; }
public Popup (Action toolsAction) { super(); this.toolsAction = toolsAction; HelpCtx.setHelpIDString (menu, ToolsAction.class.getName ()); // This can be probably swapped as the popup is short time entity and our hack // will be called just once and very early after the constructor. // run(); putClientProperty("hack.preShowUpdater", this); }
private void associateHelp (JComponent comp, HelpCtx help) { if (help != null && ! help.equals (HelpCtx.DEFAULT_HELP) && help.getHelpID () != null) HelpCtx.setHelpIDString (comp, help.getHelpID ()); else HelpCtx.setHelpIDString (comp, null); }
private void associateHelp (JComponent comp, HelpCtx help) { if (help != null && ! help.equals (HelpCtx.DEFAULT_HELP) && help.getHelpID () != null) HelpCtx.setHelpIDString (comp, help.getHelpID ()); else HelpCtx.setHelpIDString (comp, null); }
private void updateHelpID() { if (helpId == null) { return; } if (getJDialog().getContentPane() != null) { Container contentPane = getJDialog().getContentPane(); if (contentPane instanceof JComponent) { HelpCtx.setHelpIDString((JComponent) contentPane, helpId); } } }
public void setHelpCtx (final HelpCtx helpCtx) { if ((wizardPanel != null) && (helpCtx != null)) { HelpCtx.setHelpIDString(wizardPanel, helpCtx.getHelpID()); } // we call the inherited method after setting the ID // on the panel becuase super.setHelpCtx fires the change super.setHelpCtx(helpCtx); }
public JMenuItem getPopupPresenter() { JMenu mainItem = new JMenuPlus(); Mnemonics.setLocalizedText(mainItem, getName()); HelpCtx.setHelpIDString (mainItem, ImportAction.class.getName()); mainItem.addMenuListener(new MainItemListener()); return mainItem; }
public JMenuItem getMenuPresenter () { JMenu mainItem = new JMenuPlus(); Mnemonics.setLocalizedText(mainItem, getName()); mainItem.setIcon (SystemAction.get(ImportAction.class).getIcon()); HelpCtx.setHelpIDString (mainItem, ImportAction.class.getName()); mainItem.addMenuListener(new MainItemListener()); return mainItem; }