Search in sources :

Example 1 with SWTSkinObjectButton

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;
}
Also used : SWTSkinObject(com.biglybt.ui.swt.skin.SWTSkinObject) SWTSkinButtonUtility(com.biglybt.ui.swt.skin.SWTSkinButtonUtility) SWTSkinObjectButton(com.biglybt.ui.swt.skin.SWTSkinObjectButton) ButtonListenerAdapter(com.biglybt.ui.swt.skin.SWTSkinButtonUtility.ButtonListenerAdapter)

Aggregations

SWTSkinButtonUtility (com.biglybt.ui.swt.skin.SWTSkinButtonUtility)1 ButtonListenerAdapter (com.biglybt.ui.swt.skin.SWTSkinButtonUtility.ButtonListenerAdapter)1 SWTSkinObject (com.biglybt.ui.swt.skin.SWTSkinObject)1 SWTSkinObjectButton (com.biglybt.ui.swt.skin.SWTSkinObjectButton)1