/* End of _addPinToMap method /*
--- _createDialog ( ) method ---

This method creates the dialog
543216
function ( ) {
			//... main div ...
			_MainDiv = L.DomUtil.create ( 'div','PinEditDialog-MainDiv' );
			_MainDiv.innerHTML = options.exist ? _Translator.getText ('L.Marker.Pin.EditDialog.PinModification' ) : _Translator.getText ('L.Marker.Pin.EditDialog.NewPin' );
			L.DomEvent.on ( 
				_MainDiv,
				'keyup',
				function ( KeyBoardEvent ) { 
					if ( 'Escape' === KeyBoardEvent.key || 'Esc' === KeyBoardEvent.key) {
						Map.closePopup ( );
					}
				}
			);

			// Open file button
			// It's impossible to add a style to an 'input' with type 'file'...
			var openFileDiv = L.DomUtil.create( 'div', 'PinEditDialog-openFileDiv', _MainDiv );
			openFileDiv.id = 'cyPinEditDialog-openFileDiv';
			// see also the style in the index.css file. due to this *#@?§ Microsoft Edge, it's not possible to modify the style with JS

			// ...so we have an input with opacity = 0 ...
			var openInput = L.DomUtil.create( 'input', 'PinEditDialog-openFileInput', openFileDiv );
			openInput.type = 'file';
			openInput.id = 'cyPinEditDialog-openFileInput';
			// see also the style in the css file. due to this *#@?§ Microsoft Edge, it's not possible to modify the style with JS
			openInput.accept ='.json';

			// ... and at the same position a div...
			var openFileFakeDiv = L.DomUtil.create( 'div', 'PinEditDialog-openFileFakeDiv', openFileDiv );
			openFileFakeDiv.id = 'cyPinEditDialog-openFileFakeDiv';
			// see also the style in the css file. due to this *#@?§ Microsoft Edge, it's not possible to modify the style with JS

			// with a button
			var openFileButton = L.DomUtil.create( 'button', 'PinEditDialog-openFileButton', openFileFakeDiv );
			openFileButton.setAttribute( 'type' , 'button' );
			openFileButton.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.MyStyles' );
			
			// When the button is clicked, the input is also clicked
			L.DomEvent.on ( openFileButton, 'click', function ( e ) { openInput.click ( ); } );

			// and the event on the input is handled
			L.DomEvent.on ( openInput, 'change', onOpenFile);

			myStylesDiv = L.DomUtil.create( 'div', 'PinEditDialog-myStylesDiv', _MainDiv );
			myStylesDiv.id = 'cyPinEditDialog-myStylesDiv';

			if ( myStyles )
			{
				addStyleButtons (  );
			}
			// ... input...
			var TextDiv = L.DomUtil.create ( 'div', 'PinEditDialog-TextDiv', _MainDiv );
			
			var textAreaLabel = L.DomUtil.create( 'label',  'PinEditDialog-TextDiv', TextDiv );
			textAreaLabel.htmlFor = 'cyPinEditDialog-TextArea';
			textAreaLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Text') + '&nbsp;:&nbsp;';

			_TextArea = L.DomUtil.create( 'textarea', 'PinEditDialog-TextDiv', TextDiv );
			_TextArea.value = options.text;
			_TextArea.id = 'cyPinEditDialog-TextArea';
			L.DomEvent.on ( _TextArea, 'focus', function ( event ) { focusArea = _TextArea;} );	

			var addressDiv = L.DomUtil.create ( 'div', 'PinEditDialog-AddressDiv', _MainDiv );
			
			var addressLabel = L.DomUtil.create( 'label',  'PinEditDialog-AddressDiv', addressDiv );
			addressLabel.htmlFor = 'cyPinEditDialog-AddressInput';
			addressLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Address') + '&nbsp;:&nbsp;';

			_addressInput = _createInput ( 'text', options.address, '', addressDiv );
			_addressInput.value = options.address;
			_addressInput.id = 'cyPinEditDialog-AddressInput';
			L.DomEvent.on ( _addressInput, 'focus', function ( event ) { focusArea = _addressInput;} );	

			var urlDiv = L.DomUtil.create ( 'div', 'PinEditDialog-UrlDiv', _MainDiv );
			
			var urlLabel = L.DomUtil.create( 'label',  'PinEditDialog-UrlDiv', urlDiv );
			urlLabel.htmlFor = 'cyPinEditDialog-UrlInput';
			urlLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Link') + '&nbsp;:&nbsp;';

			_UrlInput = _createInput ( 'url', options.url, '', urlDiv );
			_UrlInput.id = 'cyPinEditDialog-UrlInput';
			L.DomEvent.on ( _UrlInput, 'focus', function ( event ) { focusArea = null;} );	

			var categoryDiv = L.DomUtil.create ( 'div', 'PinEditDialog-CategoryDiv', _MainDiv );

			var categoryLabel = L.DomUtil.create( 'label',  'PinEditDialog-CategoryDiv', categoryDiv );
			categoryLabel.htmlFor = 'cyPinEditDialog-CategorySelect';
			categoryLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Category') + '&nbsp;:&nbsp;';
			
			_CategorySelect = _createSelect ( categoryDiv );
			_CategorySelect.id = 'cyPinEditDialog-CategorySelect';
			L.DomEvent.on ( _CategorySelect, 'focus', function ( event ) { focusArea = null;} );	
			
			for (var Counter = 0; Counter < _Categories.length; Counter++) {
				var Option = _createOption ( _Categories.getAt ( Counter ).CategoryName, _CategorySelect );
				if ( options.pinCategory && _Categories.getAt ( Counter ).CategoryId === options.pinCategory.CategoryId ) {
					Option.setAttribute ( 'selected', true );
				}
			}

			var phoneDiv = L.DomUtil.create ( 'div', 'PinEditDialog-PhoneDiv', _MainDiv );
			
			var phoneLabel = L.DomUtil.create( 'label',  'PinEditDialog-PhoneDiv', phoneDiv );
			phoneLabel.htmlFor = 'cyPinEditDialog-PhoneInput';
			phoneLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Phone') + '&nbsp;:&nbsp;';

			_PhoneInput = _createInput ( 'tel', options.phone, '', phoneDiv );
			_PhoneInput.id = 'cyPinEditDialog-PhoneInput';
			L.DomEvent.on ( _PhoneInput, 'focus', function ( event ) { focusArea = _PhoneInput;} );	

			var distanceDiv = L.DomUtil.create ( 'div', 'PinEditDialog-DistanceDiv', _MainDiv );
			
			var distanceLabel = L.DomUtil.create( 'label',  'PinEditDialog-DistanceDiv', distanceDiv );
			distanceLabel.htmlFor = 'cyPinEditDialog-DistanceInput';
			distanceLabel.innerHTML = _Translator.getText ('L.Marker.Pin.EditDialog.Distance') + '&nbsp;:&nbsp;';

			_DistanceInput = _createInput ( 'number', options.distance, '', distanceDiv );
			_DistanceInput.id = 'cyPinEditDialog-DistanceInput';
			_DistanceInput.lang = "en"; // to avoid problems with numeric keyboard...
			L.DomEvent.on ( _DistanceInput, 'focus', function ( event ) { focusArea = null;} );	


			// ... and buttons
			var ButtonsDiv = L.DomUtil.create ( 'div', 'PinEditDialog-ButtonsDiv', _MainDiv );
			var	OkButton = _createButton ( 'PinEditDialog-OkButton', _Translator.getText ('L.Marker.Pin.EditDialog.Ok'), ButtonsDiv );
			
			// Event on the ok button...
			L.DomEvent.on ( 
				OkButton,
				'click',
				_addPinToMap
			);
			
			var	CancelButton = _createButton ( 'PinEditDialog-CancelButton', _Translator.getText ('L.Marker.Pin.EditDialog.Cancel'), ButtonsDiv );
			// Event on the cancel button
			L.DomEvent.on ( 
				CancelButton, 
				'click', 
				function ( ) { 
					Map.closePopup ( );
				}
			);	

			// Call to nominatim for the geocoding
			_NominatimCall ( );
		}
990900
def create_dialog(self):
        """"""
        self.bbox = QDialogButtonBox(QDialogButtonBox.Ok | 
                QDialogButtonBox.Cancel)
        self.idx_ok = self.bbox.button(QDialogButtonBox.Ok)
        self.idx_cancel = self.bbox.button(QDialogButtonBox.Cancel)

        filebutton = QPushButton()
        filebutton.setText('Choose')
        self.idx_filename = filebutton

        self.new_format = FormMenu(['EDF', 'Wonambi'])
        self.all_time = FormBool('Entire length of record')
        self.all_chan = FormBool('All channels')

        self.times = {}
        self.times['beg'] = FormFloat()
        self.times['end'] = FormFloat()

        chan_box = QListWidget()
        chan_box.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.idx_chan = chan_box

        filebutton.clicked.connect(self.save_as)
        self.all_time.connect(self.toggle_buttons)
        self.all_chan.connect(self.toggle_buttons)
        self.bbox.clicked.connect(self.button_clicked)

        self.all_time.set_value(True)
        self.all_chan.set_value(True)

        form = QFormLayout()
        form.addRow('Filename',
                    filebutton)
        #form.addRow('Format', self.new_format)
        form.addRow(self.all_time)
        form.addRow('Start time (sec)',
                    self.times['beg'])
        form.addRow('End time (sec)',
                    self.times['end'])
        form.addRow(self.all_chan)
        form.addRow('Channel(s)',
                    self.idx_chan)

        btnlayout = QHBoxLayout()
        btnlayout.addStretch(1)
        btnlayout.addWidget(self.bbox)

        vlayout = QVBoxLayout()
        vlayout.addLayout(form)
        vlayout.addStretch(1)
        vlayout.addLayout(btnlayout)

        self.setLayout(vlayout)
606394
protected Dialog createNewTCAPDialog(SccpAddress origAddress, SccpAddress destAddress, Long localTrId) throws CAPException {
        try {
            return this.capProviderImpl.getTCAPProvider().getNewDialog(origAddress, destAddress, localTrId);
        } catch (TCAPException e) {
            throw new CAPException(e.getMessage(), e);
        }
    }
265643
function performCreate(node,dialog,msg) {
    var params = {}
    node.status({fill:'blue', shape:'dot', text:'requesting create of new dialog template'});	 
    //if ('file' in msg.dialog_params && 'dialog_name' in msg.dialog_params) {
    if ('dialog_name' in msg.dialog_params) {  
      // extension supported : only XML
      // TODO : support other API format (json and encrypted crt)
      temp.open({suffix: '.xml'}, function (err, info) {
        if (err) throw err;
        //var fileBuffer = msg.dialog_params['file'];
        var fileBuffer = msg.payload;
        fs.writeFile(info.path, fileBuffer, function (err) {
            if (err) {
              console.error(err);
              throw err;
            }
            var aFileStream = fs.createReadStream(info.path);
            params.file = aFileStream;
            params.name = msg.dialog_params['dialog_name'];
            // Watson SDK call
            dialog.createDialog(params, function(err, dialog_data){
                  node.status({});
                  if (err) {
                    node.status({fill:'red', shape:'ring', text:'call to dialog service failed'}); 
                    node.error(err, msg);
                  } else {
                    msg.dialog = dialog_data;     
                    msg.payload = 'Check msg.dialog dialog data';
                    node.send(msg);
                  }       
            });  
        });
     });
    } /* else if (! 'file' in msg.dialog_params) {
      var errtxt = 'Missing Dialog template file';
      node.status({fill:'red', shape:'ring', text:errtxt}); 		
      node.error(errtxt, msg);
    }*/
    else {
      errtxt = 'dialog_name not specified';
      node.status({fill:'red', shape:'ring', text:errtxt}); 		
      node.error(errtxt, msg); 
    }   
  }
616280
protected String createDialogRowsHtml(int startIndex, int endIndex) {

        StringBuffer result = new StringBuffer((endIndex - startIndex) * 8);
        for (int i = startIndex; i <= endIndex; i++) {
            CmsWidgetDialogParameter base = getWidgets().get(i);
            result.append(createDialogRowHtml(base));
        }
        return result.toString();
    }
362783
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mConfigResId = getArguments().getInt(EXTRA_CONFIG);

        //setStyle(DialogFragment.STYLE_NO_TITLE, R.style.Theme_AppCompat_Light);
    }
278429
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String title = this.getIntent().getStringExtra(TITLE_EXTRA);
        if(title == null) title = getApplicationName(this);
        CredentialView credentialView = new CredentialView(this,title);
        DivideDrawer.attach(this,credentialView);
        BackendServices.addLoginListener(new LoginListener() {
            @Override
            public void onNext(BackendUser backendUser) {
                if (backendUser != null) {
                    DebugAuthActivity.this.finish();
                }
            }
        });

        this.closeOptionsMenu();
    }
129136
public void showAddNodeDialog() {
        jcrService().getPrimaryTypes(node.getRepository(),
                node.getWorkspace(),
                null,
                false, new AsyncCallback<String[]>() {
            @Override
            public void onFailure(Throwable caught) {
                SC.say(caught.getMessage());
            }

            @Override
            public void onSuccess(String[] result) {
                addNodeDialog.setPrimaryTypes(result);
                addNodeDialog.showModal();
            }
        });
    }
806311
public MAPDialogOam createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
            AddressString destReference) throws MAPException {
        return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
    }
1283494
@NonNull
    private ListDialog.OnItemSelectedListener createItemSelectedListener() {
        return new ListDialog.OnItemSelectedListener() {

            @Override
            public void onItemSelected(final int position) {
                ColorPalettePreference.this.selectedIndex = position;
                ColorPalettePreference.this.onClick(getDialog(), DialogInterface.BUTTON_POSITIVE);

                if (getDialog() != null) {
                    getDialog().dismiss();
                }
            }

        };
    }
624510
@Override
	public void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		final RelativeLayout rl = new RelativeLayout(this);

		this.mMapView = new MapView(this);
		this.mMapView.setTilesScaledToDpi(true);
		rl.addView(this.mMapView, new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT));

		/* Itemized Overlay */
		{
			/* Create a static ItemizedOverlay showing a some Markers on some cities. */
			final ArrayList<OverlayItem> items = new ArrayList<>();
			items.add(new OverlayItem("Hannover", "SampleDescription", new GeoPoint(52.370816, 9.735936)));
			items.add(new OverlayItem("Berlin", "SampleDescription", new GeoPoint(52.518333, 13.408333)));
			items.add(new OverlayItem("Washington", "SampleDescription", new GeoPoint(38.895000, -77.036667)));
			items.add(new OverlayItem("San Francisco", "SampleDescription", new GeoPoint(37.779300, -122.419200)));
			items.add(new OverlayItem("Tolaga Bay", "SampleDescription", new GeoPoint(-38.371000, 178.298000)));

			/* OnTapListener for the Markers, shows a simple Toast. */
			this.mMyLocationOverlay = new ItemizedIconOverlay<>(items,
					new ItemizedIconOverlay.OnItemGestureListener<OverlayItem>() {
						@Override
						public boolean onItemSingleTapUp(final int index, final OverlayItem item) {
							Toast.makeText(
									SampleWithMinimapItemizedoverlay.this,
									"Item '" + item.getTitle() + "' (index=" + index
											+ ") got single tapped up", Toast.LENGTH_LONG).show();
							return true; // We 'handled' this event.
						}

						@Override
						public boolean onItemLongPress(final int index, final OverlayItem item) {
							Toast.makeText(
									SampleWithMinimapItemizedoverlay.this,
									"Item '" + item.getTitle() + "' (index=" + index
											+ ") got long pressed", Toast.LENGTH_LONG).show();
							return true;
						}
					}, getApplicationContext());
			this.mMapView.getOverlays().add(this.mMyLocationOverlay);
		}

		/* MiniMap */
		{
			final MinimapOverlay miniMapOverlay = new MinimapOverlay(this,
					mMapView.getTileRequestCompleteHandler());
			this.mMapView.getOverlays().add(miniMapOverlay);
		}

		/* list of items currently displayed */
		{
			final MapEventsReceiver mReceive = new MapEventsReceiver() {
				@Override
				public boolean singleTapConfirmedHelper(GeoPoint p) {
					return false;
				}

				@Override
				public boolean longPressHelper(final GeoPoint p) {
					final List<OverlayItem> displayed = mMyLocationOverlay.getDisplayedItems();
					final StringBuilder buffer = new StringBuilder();
					String sep = "";
					for (final OverlayItem item : displayed) {
						buffer.append(sep).append('\'').append(item.getTitle()).append('\'');
						sep = ", ";
					}
					Toast.makeText(
							SampleWithMinimapItemizedoverlay.this,
							"Currently displayed: " + buffer.toString(), Toast.LENGTH_LONG).show();
					return true;
				}
			};
			mMapView.getOverlays().add(new MapEventsOverlay(mReceive));

			final RotationGestureOverlay rotationGestureOverlay = new RotationGestureOverlay(mMapView);
			rotationGestureOverlay.setEnabled(true);
			mMapView.getOverlays().add(rotationGestureOverlay);
		}

		this.setContentView(rl);

		// Default location and zoom level
		IMapController mapController = mMapView.getController();
		mapController.setZoom(5.);
		GeoPoint startPoint = new GeoPoint(50.936255, 6.957779);
		mapController.setCenter(startPoint);
	}
777223
public static JDialog newJDialog(@NonNull JOptionPane pane, String title)
	{
		return newJDialog(null, pane, title);
	}
808582
@Override
    public void onCreate(Bundle savedInstanceState) {
		// Call superclass creator.
        super.onCreate(savedInstanceState);
        
		// Set layout.
        this.setContentView(R.layout.dialog_file_chooser);
		
		// Set the background color.
        LinearLayout layout = (LinearLayout) this.findViewById(R.id.rootLayout);
        layout.setBackgroundColor(getResources().getColor(R.color.daidalos_backgroud));

		// Initialize fields.
		this.useBackButton = false;
		
        // Create the core of the file chooser.
        this.core = new FileChooserCore(this);
        
        // Verify if the optional parameters has been defined.
        String folderPath = null;
        Bundle extras = this.getIntent().getExtras();
        if(extras != null) {
    		if(extras.containsKey(INPUT_START_FOLDER)) folderPath = extras.getString(INPUT_START_FOLDER);
            if(extras.containsKey(INPUT_REGEX_FILTER)) core.setFilter(extras.getString(INPUT_REGEX_FILTER));
            if(extras.containsKey(INPUT_SHOW_ONLY_SELECTABLE)) core.setShowOnlySelectable(extras.getBoolean(INPUT_SHOW_ONLY_SELECTABLE));
            if(extras.containsKey(INPUT_FOLDER_MODE)) core.setFolderMode(extras.getBoolean(INPUT_FOLDER_MODE));
            if(extras.containsKey(INPUT_CAN_CREATE_FILES)) core.setCanCreateFiles(extras.getBoolean(INPUT_CAN_CREATE_FILES));
            if(extras.containsKey(INPUT_LABELS)) core.setLabels((FileChooserLabels) extras.get(INPUT_LABELS));
            if(extras.containsKey(INPUT_SHOW_CONFIRMATION_ON_CREATE)) core.setShowConfirmationOnCreate(extras.getBoolean(INPUT_SHOW_CONFIRMATION_ON_CREATE));
            if(extras.containsKey(INPUT_SHOW_CONFIRMATION_ON_SELECT)) core.setShowConfirmationOnSelect(extras.getBoolean(INPUT_SHOW_CONFIRMATION_ON_SELECT));
            if(extras.containsKey(INPUT_SHOW_FULL_PATH_IN_TITLE)) core.setShowFullPathInTitle(extras.getBoolean(INPUT_SHOW_FULL_PATH_IN_TITLE));
            if(extras.containsKey(INPUT_USE_BACK_BUTTON_TO_NAVIGATE)) this.useBackButton = extras.getBoolean(INPUT_USE_BACK_BUTTON_TO_NAVIGATE);
        }

        // Load the files of a folder.
        core.loadFolder(folderPath);
        this.startFolder = this.core.getCurrentFolder();
        
        // Add a listener for when a file is selected.
        core.addListener(new FileChooserCore.OnFileSelectedListener() {
			public void onFileSelected(File folder, String name) {
				// Pass the data through an intent.
				Intent intent = new Intent();
				Bundle bundle = new Bundle();
				bundle.putSerializable(OUTPUT_FILE_OBJECT, folder);
				bundle.putString(OUTPUT_NEW_FILE_NAME, name);
				intent.putExtras(bundle);
				
                setResult(RESULT_OK, intent);
                finish();				
			}
			public void onFileSelected(File file) {
				// Pass the data through an intent.
				Intent intent = new Intent();
				Bundle bundle = new Bundle();
				bundle.putSerializable(OUTPUT_FILE_OBJECT, file);
				intent.putExtras(bundle);
				
                setResult(RESULT_OK, intent);
                finish();	
			}
		});
    }
1063736
public static void showDialog(final CmsUUID referenceId, final AsyncCallback<String> createModeCallback) {

        CmsRpcAction<CmsListInfoBean> action = new CmsRpcAction<CmsListInfoBean>() {

            @Override
            public void execute() {

                start(0, true);
                CmsCoreProvider.getVfsService().getPageInfo(referenceId, this);

            }

            @Override
            protected void onResponse(CmsListInfoBean result) {

                stop(false);
                Boolean isFolder = result.getIsFolder();
                if ((isFolder != null) && isFolder.booleanValue()) {
                    createModeCallback.onSuccess(null);
                } else {
                    (new CmsCreateModeSelectionDialog(result, createModeCallback)).center();
                }

            }
        };
        action.execute();

    }
993500
@Override
    protected String createDialogHtml(String dialog) {

        StringBuffer result = new StringBuffer(1024);

        // create table
        result.append(createWidgetTableStart());

        // show error header once if there were validation errors
        result.append(createWidgetErrorHeader());

        if (dialog.equals(PAGES[0])) {
            result.append(dialogBlockStart(key("label.moduleinformation")));
            result.append(createWidgetTableStart());
            result.append(createDialogRowsHtml(0, 7));
            result.append(createWidgetTableEnd());
            result.append(dialogBlockEnd());
            result.append(dialogBlockStart(key("label.modulecreator")));
            result.append(createWidgetTableStart());
            result.append(createDialogRowsHtml(8, 9));
            result.append(createWidgetTableEnd());
            result.append(dialogBlockEnd());
            result.append(dialogBlockStart(key("label.moduleexportmode")));
            result.append(createWidgetTableStart());
            result.append(createDialogRowsHtml(10, 10));
            result.append(createWidgetTableEnd());
            result.append(dialogBlockEnd());
            if (CmsStringUtil.isEmpty(m_module.getName())) {
                result.append(dialogBlockStart(key("label.modulefolder")));
                result.append(createWidgetTableStart());
                result.append(createDialogRowsHtml(11, 17));
                result.append(createWidgetTableEnd());
                result.append(dialogBlockEnd());
            }
        }

        // close table
        result.append(createWidgetTableEnd());

        return result.toString();
    }
325483
private OnClickListener createDialogPreferenceClickListener() {
        return new OnClickListener() {

            @Override
            public void onClick(final DialogInterface dialog, final int which) {
                String button = getString(
                        which == DialogInterface.BUTTON_POSITIVE ? android.R.string.ok :
                                android.R.string.cancel);
                String text = String.format(getString(R.string.dialog_dismissed_toast), button);
                Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT).show();
            }

        };
    }
52047
@Override
    protected BaseDialogFragment.Builder build(BaseDialogFragment.Builder builder) {
        final CharSequence title = getTitle();
        if (!TextUtils.isEmpty(title)) {
            builder.setTitle(title);
        }

        final CharSequence message = getMessage();
        if (!TextUtils.isEmpty(message)) {
            builder.setMessage(message);
        }

        final CharSequence positiveButtonText = getPositiveButtonText();
        if (!TextUtils.isEmpty(positiveButtonText)) {
            builder.setPositiveButton(positiveButtonText, new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    for (IPositiveButtonDialogListener listener : getPositiveButtonDialogListeners()) {
                        listener.onPositiveButtonClicked(mRequestCode);
                    }
                    dismiss();
                }
            });
        }

        final CharSequence negativeButtonText = getNegativeButtonText();
        if (!TextUtils.isEmpty(negativeButtonText)) {
            builder.setNegativeButton(negativeButtonText, new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    for (INegativeButtonDialogListener listener : getNegativeButtonDialogListeners()) {
                        listener.onNegativeButtonClicked(mRequestCode);
                    }
                    dismiss();
                }
            });
        }

        final CharSequence neutralButtonText = getNeutralButtonText();
        if (!TextUtils.isEmpty(neutralButtonText)) {
            builder.setNeutralButton(neutralButtonText, new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    for (INeutralButtonDialogListener listener : getNeutralButtonDialogListeners()) {
                        listener.onNeutralButtonClicked(mRequestCode);
                    }
                    dismiss();
                }
            });
        }

        return builder;
    }