下面列出了怎么用org.eclipse.draw2d.Clickable的API类实例代码及写法,或者点击链接到github查看源代码。
public void addButton(Clickable button) {
button.setPreferredSize(BUTTON_SIZE, BUTTON_SIZE);
add(button);
}
/**
* @return The Clickable that is used to expand/collapse the drawer.
*/
public Clickable getCollapseToggle() {
return collapseToggle;
}
/**
* Add a button to the tool bar. New button will be added to the 'end' of
* the tool bar.
*
* @param button
* New button
*/
public void addToolbarButton(final Clickable button) {
toolbar.addButton(button);
}