本文整理了Java中org.eclipse.swt.widgets.Button.addMouseListener()
方法的一些代码示例,展示了Button.addMouseListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.addMouseListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:addMouseListener
暂无
代码示例来源:origin: caoxinyu/RedisClient
button.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
button_1.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
代码示例来源:origin: caoxinyu/RedisClient
button.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
button_1.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
代码示例来源:origin: caoxinyu/RedisClient
btnOk.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent arg0) {
btnCancel.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent arg0) {
代码示例来源:origin: caoxinyu/RedisClient
button.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
button_1.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
代码示例来源:origin: caoxinyu/RedisClient
button.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
button_1.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
代码示例来源:origin: caoxinyu/RedisClient
btnOk.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent arg0) {
btnCancel.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent arg0) {
代码示例来源:origin: apache/axis2-java
browseButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleBrowse();
代码示例来源:origin: apache/axis2-java
browseButton.setText(ServiceArchiver.getResourceString("general.browse"));
browseButton.setLayoutData(gd);
browseButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleBrowse();
代码示例来源:origin: apache/axis2-java
browseButton.setLayoutData(gd);
browseButton.setText(ServiceArchiver.getResourceString("general.browse"));
browseButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleBrowse();
addButton.setLayoutData(gd);
addButton.setText(ServiceArchiver.getResourceString("page6.add"));
addButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleAdd();
removeButton.setLayoutData(gd);
removeButton.setText(ServiceArchiver.getResourceString("page6.remove"));
removeButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleRemove();
代码示例来源:origin: fredyw/win-youtube-dl
openButton.setText("Open...");
final DirectoryDialog directoryDialog = new DirectoryDialog(parent, SWT.OPEN);
openButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseDown(MouseEvent e) {
downloadButton.setLayoutData(gridData);
downloadButton.setText("Download");
downloadButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseDown(MouseEvent e) {
updateButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseDown(MouseEvent e) {
代码示例来源:origin: apache/axis2-java
browseButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleBrowse();
代码示例来源:origin: apache/axis2-java
browseButton.addMouseListener(new MouseAdapter(){
public void mouseUp(MouseEvent e) {
handleBrowse();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
private Button createDropdownButton(final Composite parent, int id, String label, MouseListener mouseListener) {
char textEmbedding = parent.getOrientation() == SWT.LEFT_TO_RIGHT ? '\u202a' : '\u202b';
Button button = createButton(parent, id, textEmbedding + label + '\u202c', false);
if (Util.isMac()) {
// Button#setOrientation(int) is a no-op on the Mac. Use a Unicode BLACK DOWN-POINTING SMALL TRIANGLE.
button.setText(button.getText() + " \u25BE"); //$NON-NLS-1$
} else {
int dropDownOrientation = parent.getOrientation() == SWT.LEFT_TO_RIGHT ? SWT.RIGHT_TO_LEFT : SWT.LEFT_TO_RIGHT;
button.setOrientation(dropDownOrientation);
button.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_BUTTON_MENU));
button.addMouseListener(mouseListener);
}
return button;
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
@Override
public void createControl(Composite parent) {
Composite comp = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_HORIZONTAL);
setControl(comp);
SWTFactory.createWrapLabel(comp, WizardMessages.SelectApiBaselineTypeWizardPage_select_baseline_source, 1);
locationIsDirectory = SWTFactory.createRadioButton(comp, WizardMessages.SelectApiBaselineTypeWizardPage_source_installation_directory);
locationIsTarget = SWTFactory.createRadioButton(comp, WizardMessages.SelectApiBaselineTypeWizardPage_source_target_platform);
locationIsDirectory.setSelection(true);
SelectionListener typeListener = new SelectionListener() {
@Override
public void widgetSelected(SelectionEvent e) {
update();
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
widgetSelected(e);
}
};
MouseListener mouseClickListener = MouseListener.mouseDoubleClickAdapter(e -> {
update();
getContainer().showPage(getNextPage());
});
locationIsTarget.addSelectionListener(typeListener);
locationIsTarget.addMouseListener(mouseClickListener);
locationIsDirectory.addSelectionListener(typeListener);
locationIsDirectory.addMouseListener(mouseClickListener);
update();
PlatformUI.getWorkbench().getHelpSystem().setHelp(comp, IApiToolsHelpContextIds.APIPROFILES_WIZARD_PAGE);
Dialog.applyDialogFont(comp);
}
代码示例来源:origin: stefanhaustein/flowgrid
Button button = new Button(parent, SWT.PUSH);
button.setText(port.name());
button.addMouseListener(new MouseAdapter() {
内容来源于网络,如有侵权,请联系作者删除!