當前位置: 首頁>>代碼示例>>Java>>正文


Java Button.addMouseListener方法代碼示例

本文整理匯總了Java中org.eclipse.swt.widgets.Button.addMouseListener方法的典型用法代碼示例。如果您正苦於以下問題:Java Button.addMouseListener方法的具體用法?Java Button.addMouseListener怎麽用?Java Button.addMouseListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.swt.widgets.Button的用法示例。


在下文中一共展示了Button.addMouseListener方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addSelectionListenerToExpressionRadioButton

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addSelectionListenerToExpressionRadioButton(Button expressionRadioButton) 
{
	expressionRadioButton.addMouseListener(new MouseAdapter() {

		@Override
		public void mouseUp(MouseEvent e) {
			outputRecordCoundText.setEnabled(true);
			editButton.setEnabled(true);
			transformMapping.setExpression(true);
			propertyDialogButtonBar.enableApplyButton(true);
			if(!transformMapping.getExpressionEditorData().isValid())
			{
				expressionValidateDecorator.show();
			}
			OutputRecordCountUtility.INSTANCE.removeOperationFieldFromOutputList(transformMapping);
			OutputRecordCountUtility.INSTANCE.addExpressionOutputFieldToOuterListOfMappingWindow(transformMapping);
			setSchemaUpdated(false);
			outputList.clear();
			SchemaSyncUtility.INSTANCE.unionFilter(transformMapping.getOutputFieldList(), 
					outputList);
			OutputRecordCountUtility.INSTANCE.propagateOuputFieldsToSchemaTabFromTransformWidget(
					transformMapping,getSchemaForInternalPropagation(),getComponent(),outputList
					);
 		}
	});
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:27,代碼來源:OutputRecordCountWidget.java

示例2: addSelectionListenerToOperationRadioButton

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addSelectionListenerToOperationRadioButton(Button operationRadioButton) 
{
	operationRadioButton.addMouseListener(new MouseAdapter() 
	{
		@Override
		public void mouseUp(MouseEvent e) {
			outputRecordCoundText.setEnabled(false);
			editButton.setEnabled(false);
			transformMapping.setExpression(false);
			propertyDialogButtonBar.enableApplyButton(true);
			expressionValidateDecorator.hide();
			OutputRecordCountUtility.INSTANCE.removeExpressionFieldFromOutputList(transformMapping);
			OutputRecordCountUtility.INSTANCE.addOperationOutputFieldToOuterListOfMappingWindow(transformMapping);
			setSchemaUpdated(false);
			outputList.clear();
			SchemaSyncUtility.INSTANCE.unionFilter(transformMapping.getOutputFieldList(), 
					outputList);
			OutputRecordCountUtility.INSTANCE.propagateOuputFieldsToSchemaTabFromTransformWidget(
					transformMapping,getSchemaForInternalPropagation(),getComponent(),outputList
					);
		}
       });
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:24,代碼來源:OutputRecordCountWidget.java

示例3: addImportSchemaButton

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addImportSchemaButton(ELTSchemaSubgroupComposite buttonSubGroup) {

		importSchemaButton = new ELTDefaultButton("");
		SchemaButtonsSyncUtility.INSTANCE.buttonSize(importSchemaButton, macButtonWidth, macButtonHeight,
				windowButtonWidth, windowButtonHeight);
		buttonSubGroup.attachWidget(importSchemaButton);
		importSchemaButton.setImage(ImagePathConstant.IMPORT_SCHEMA_BUTTON);
		importSchemaButton.setToolTipText(Messages.IMPORT_SCHEMA_KEY_SHORTCUT_TOOLTIP);
		Button importButton = (Button) importSchemaButton.getSWTWidgetControl();
		importButton.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseDown(MouseEvent e) {
				importSchema(importButton);
			}
		});
	}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:18,代碼來源:ELTSchemaGridWidget.java

示例4: addExportSchemaButton

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addExportSchemaButton(ELTSchemaSubgroupComposite buttonSubGroup) {

		exportSchemaButton = new ELTDefaultButton("");
		SchemaButtonsSyncUtility.INSTANCE.buttonSize(exportSchemaButton, macButtonWidth, macButtonHeight,
				windowButtonWidth, windowButtonHeight);
		buttonSubGroup.attachWidget(exportSchemaButton);
		exportSchemaButton.setImage(ImagePathConstant.EXPORT_SCHEMA_BUTTON);
		exportSchemaButton.setToolTipText(Messages.EXPORT_SCHEMA_KEY_SHORTCUT_TOOLTIP);
		Button exportButton = (Button) exportSchemaButton.getSWTWidgetControl();
		exportButton.addMouseListener(new MouseAdapter() {

			@Override
			public void mouseDown(MouseEvent e) {
				exportSchemaIntoFile(exportButton);
			}
		});
	}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:18,代碼來源:ELTSchemaGridWidget.java

示例5: attachDownButtonListerner

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachDownButtonListerner(Button downButton) {
	downButton.addMouseListener(new MouseAdapter() {
      
		@Override
		public void mouseUp(MouseEvent e) {
			moveRowDown();
		}
	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:11,代碼來源:SecondaryColumnKeysDialog.java

示例6: attachUpButtonListener

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachUpButtonListener(Button upButton) {
	upButton.addMouseListener(new MouseAdapter() {

       	@Override
		public void mouseUp(MouseEvent e) {
       		moveRowUp();
       	}
	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:11,代碼來源:SecondaryColumnKeysDialog.java

示例7: attachDeleteButtonListener

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachDeleteButtonListener(final Button deleteButton) {
	deleteButton.addMouseListener(new MouseAdapter() {
		
		@Override
		public void mouseUp(MouseEvent e) {
			deleteRow();
		}

	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:12,代碼來源:SecondaryColumnKeysDialog.java

示例8: attachAddButtonListern

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachAddButtonListern(Button addButton) {
	addButton.addMouseListener(new MouseAdapter() {
		
		@Override
		public void mouseUp(MouseEvent e) {
			addNewRow();
		}

	});
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:11,代碼來源:SecondaryColumnKeysDialog.java

示例9: addButtonListenerForOperationClassComposite

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void addButtonListenerForOperationClassComposite(
		final MappingSheetRow mappingSheetRow,
		final TableViewer operationOutputtableViewer, Button addLabel) {
	addLabel.setToolTipText(Messages.ADD_SCHEMA_TOOLTIP);
	addLabel.addMouseListener(new MouseAdapter() {
		@Override
		public void mouseUp(MouseEvent e) {
			operationOutputTableAddButton(mappingSheetRow,
					operationOutputtableViewer);
			}
	});
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:13,代碼來源:TransformDialog.java

示例10: attachDownButtonListerner

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachDownButtonListerner(Button downButton) {
	
	downButton.addMouseListener(new MouseAdapter() {
		
           @Override
		public void mouseUp(MouseEvent e) {
           	moveRowDown();
           }
	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:12,代碼來源:RuntimePropertyDialog.java

示例11: attachUpButtonListener

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachUpButtonListener(Button upButton) {
	upButton.addMouseListener(new MouseAdapter() {
		

		@Override
		public void mouseUp(MouseEvent e) {
			moveRowUp();
		}
	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:12,代碼來源:RuntimePropertyDialog.java

示例12: attachDeleteButtonListener

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachDeleteButtonListener(final Button deleteButton) {
	deleteButton.addMouseListener(new MouseAdapter() {
           
		@Override
		public void mouseUp(MouseEvent e) {
			deleteRow();
		}

	});

}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:12,代碼來源:RuntimePropertyDialog.java

示例13: attachAddButtonListern

import org.eclipse.swt.widgets.Button; //導入方法依賴的package包/類
private void attachAddButtonListern(Button addButton) {
	addButton.addMouseListener(new MouseAdapter() {
           @Override
		public void mouseUp(MouseEvent e) {
           	addNewRow();
           }

	});
}
 
開發者ID:capitalone,項目名稱:Hydrograph,代碼行數:10,代碼來源:RuntimePropertyDialog.java


注:本文中的org.eclipse.swt.widgets.Button.addMouseListener方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。