本文整理匯總了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();
}
});
}