本文整理汇总了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
);
}
});
}
示例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
);
}
});
}
示例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);
}
});
}
示例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);
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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);
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
});
}
示例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();
}
});
}