1 19 20 package org.netbeans.core.windows.services; 21 22 import org.openide.DialogDescriptor; 23 import org.openide.util.HelpCtx; 24 25 import java.awt.*; 26 import java.awt.event.ActionListener ; 27 28 30 34 final class NbDialog extends NbPresenter { 35 static final long serialVersionUID =-4508637164126678997L; 36 37 41 public NbDialog (DialogDescriptor d, Frame owner) { 42 super (d, owner, d.isModal ()); 43 } 44 45 49 public NbDialog (DialogDescriptor d, Dialog owner) { 50 super (d, owner, d.isModal ()); 51 } 52 53 55 protected HelpCtx getHelpCtx () { 56 return ((DialogDescriptor)descriptor).getHelpCtx (); 57 } 58 59 61 protected int getOptionsAlign () { 62 return ((DialogDescriptor)descriptor).getOptionsAlign (); 63 } 64 65 67 protected ActionListener getButtonListener () { 68 return ((DialogDescriptor)descriptor).getButtonListener (); 69 } 70 71 73 protected Object [] getClosingOptions () { 74 return ((DialogDescriptor)descriptor).getClosingOptions (); 75 } 76 77 } 78 | Popular Tags |