当前位置: 首页>>代码示例>>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;未经允许,请勿转载。