use of com.biglybt.ui.swt.skin.SWTSkinObjectButton in project BiglyBT by BiglySoftware.
the class SBC_TagsOverview method skinObjectInitialShow.
// @see SkinView#skinObjectInitialShow(SWTSkinObject, java.lang.Object)
@Override
public Object skinObjectInitialShow(SWTSkinObject skinObject, Object params) {
initColumns();
SWTSkinObjectButton soAddTagButton = (SWTSkinObjectButton) getSkinObject("add-tag");
if (soAddTagButton != null) {
soAddTagButton.addSelectionListener(new ButtonListenerAdapter() {
// @see SWTSkinButtonUtility.ButtonListenerAdapter#pressed(SWTSkinButtonUtility, SWTSkinObject, int)
@Override
public void pressed(SWTSkinButtonUtility buttonUtility, SWTSkinObject skinObject, int stateMask) {
TagUIUtilsV3.showCreateTagDialog(null);
}
});
}
new InfoBarUtil(skinObject, "tagsview.infobar", false, "tags.infobar", "tags.view.infobar") {
@Override
public boolean allowShow() {
return true;
}
};
return null;
}
Aggregations