站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Actions.ButtonActionConnector (UI Utilities API) - NetBeans API Javadoc (Current Development Version)

org.openide.awt 6.11.0

org.openide.awt
Interface Actions.ButtonActionConnector

Enclosing class:
Actions

public static interface Actions.ButtonActionConnector

SPI for supplying alternative implementation of connection between actions and presenters. The implementations of this interface are being looked up in the default lookup. If there is no implemenation in the lookup the default implementation is used.

Since:
org.openide.awt 6.9
See Also:
Lookup.getDefault()

Method Summary
 boolean connect(AbstractButton button, Action action)
          Connects the action to the supplied button.
 boolean connect(JMenuItem item, Action action, boolean popup)
          Connects the action to the supplied JMenuItem.
 

Method Detail

connect

boolean connect(AbstractButton button,
                Action action)
Connects the action to the supplied button.

Returns:
true if the connection was successful and no further actions are needed. If false is returned the default connect implementation is called

connect

boolean connect(JMenuItem item,
                Action action,
                boolean popup)
Connects the action to the supplied JMenuItem.

Returns:
true if the connection was successful and no further actions are needed. If false is returned the default connect implementation is called

org.openide.awt 6.11.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.