当前位置: 首页>>代码示例>>Java>>正文


Java MainGui.getLinkLabelListener方法代码示例

本文整理汇总了Java中chatty.gui.MainGui.getLinkLabelListener方法的典型用法代码示例。如果您正苦于以下问题:Java MainGui.getLinkLabelListener方法的具体用法?Java MainGui.getLinkLabelListener怎么用?Java MainGui.getLinkLabelListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在chatty.gui.MainGui的用法示例。


在下文中一共展示了MainGui.getLinkLabelListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TokenDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenDialog(MainGui owner) {
    super(owner,"Login configuration",true);
    this.setResizable(false);
   
    this.setLayout(new GridBagLayout());
    
    accessLabel = new LinkLabel("Access [help:login (?)]:", owner.getLinkLabelListener());
    
    add(nameLabel, makeGridBagConstraints(0,0,1,1,GridBagConstraints.WEST));
    add(name, makeGridBagConstraints(0,1,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5)));
    
    add(accessLabel, makeGridBagConstraints(0,2,1,1,GridBagConstraints.WEST));
    add(access, makeGridBagConstraints(0,3,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5)));
    
    add(tokenInfo, makeGridBagConstraints(0,4,2,1,GridBagConstraints.WEST));
    add(deleteToken, makeGridBagConstraints(0,6,1,1,GridBagConstraints.WEST));
    add(requestToken, makeGridBagConstraints(0,6,2,1,GridBagConstraints.CENTER));
    add(verifyToken, makeGridBagConstraints(1,6,1,1,GridBagConstraints.WEST));
    add(done, makeGridBagConstraints(1,7,1,1,GridBagConstraints.EAST));
    
    ActionListener actionListener = owner.getActionListener();
    requestToken.addActionListener(actionListener);
    deleteToken.addActionListener(actionListener);
    verifyToken.addActionListener(actionListener);
    done.addActionListener(actionListener);

    pack();
}
 
开发者ID:pokemane,项目名称:TwitchChatClient,代码行数:29,代码来源:TokenDialog.java

示例2: TokenGetDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenGetDialog(MainGui owner) {
    super(owner,"Get login data",true);
    this.setResizable(false);
    this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    this.addWindowListener(owner.getWindowListener());
    
    info = new LinkLabel(INFO, owner.getLinkLabelListener());
    
    setLayout(new GridBagLayout());
    
    GridBagConstraints gbc;
    add(info,makeGridBagConstraints(0,0,2,1,GridBagConstraints.CENTER));
    
    // Default selected options
    includeReadUserAccess.setSelected(true);
    includeEditorAccess.setSelected(true);
    includeCommercialAccess.setSelected(true);
    includeShowSubsAccess.setSelected(true);
    includeFollowAccess.setSelected(true);
    
    // Options
    gbc = makeGridBagConstraints(0, 1, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(5,5,0,5);
    includeReadUserAccess.setToolTipText("To get notified when streams you "
            + "follow go online.");
    add(includeReadUserAccess, gbc);
    
    gbc = makeGridBagConstraints(0, 2, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeEditorAccess.setToolTipText("To be able to edit your channel's title and game.");
    add(includeEditorAccess,gbc);
    
    gbc = makeGridBagConstraints(0,3,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeCommercialAccess.setToolTipText("To be able to run commercials on your stream.");
    add(includeCommercialAccess,gbc);
    
    gbc = makeGridBagConstraints(0,4,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeShowSubsAccess.setToolTipText("To be able to show the list of your subscribers.");
    add(includeShowSubsAccess,gbc);
    
    gbc = makeGridBagConstraints(0,5,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,5,5);
    includeFollowAccess.setToolTipText("To be able to follow channels.");
    add(includeFollowAccess,gbc);
    
    // URL Display and Buttons
    gbc = makeGridBagConstraints(0,6,2,1,GridBagConstraints.CENTER);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    urlField.setEditable(false);
    add(urlField, gbc);
    gbc = makeGridBagConstraints(0,7,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,5,10,5);
    add(copyUrl,gbc);
    gbc = makeGridBagConstraints(1,7,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,0,10,5);
    add(openUrl,gbc);
    
    // Status and Close Button
    add(status,makeGridBagConstraints(0,8,2,1,GridBagConstraints.CENTER));
    add(close,makeGridBagConstraints(1,9,1,1,GridBagConstraints.EAST));
    
    openUrl.addActionListener(this);
    copyUrl.addActionListener(this);
    close.addActionListener(owner.getActionListener());
    
    includeEditorAccess.addItemListener(this);
    includeCommercialAccess.addItemListener(this);
    includeReadUserAccess.addItemListener(this);
    includeShowSubsAccess.addItemListener(this);
    includeFollowAccess.addItemListener(this);
    
    reset();
    updateUrl();
    
    pack();
}
 
开发者ID:chatty,项目名称:chatty,代码行数:80,代码来源:TokenGetDialog.java

示例3: AdminDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public AdminDialog(MainGui main, TwitchApi api) {
    super(main);
    setTitle("Channel Admin - No Channel");
    this.main = main;
    this.api = api;
    setResizable(false);
    addWindowListener(new WindowClosingListener());
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

    // Special objects
    infoText = new LinkLabel("Test",main.getLinkLabelListener());
    
    statusPanel = new StatusPanel(this, main, api);
    commercialPanel = new CommercialPanel(main);
    
    setLayout(new GridBagLayout());
    
    GridBagConstraints gbc;
    
    // Add to tab pane
    tabs = new JTabbedPane();
    tabs.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent e) {
            updateInfoText();
        }
    });
    tabs.addTab(Language.getString("admin.tab.status"), statusPanel);
    tabs.addTab(Language.getString("admin.tab.commercial"), commercialPanel);
    gbc = makeGbc(0,0,2,1);
    gbc.insets = new Insets(0,0,0,0);
    add(tabs, gbc);
    
    
    gbc = makeGbc(0,1,1,1);
    gbc.anchor = GridBagConstraints.WEST;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    add(infoText, gbc);
    
    gbc = makeGbc(1,1,1,1);
    //gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.anchor = GridBagConstraints.EAST;
    close.setMnemonic(KeyEvent.VK_C);
    add(close,gbc);
    
    
    close.addActionListener(actionListener);
    
    
    
    
    finishDialog();
    
    startUpdateTimer();
}
 
开发者ID:chatty,项目名称:chatty,代码行数:58,代码来源:AdminDialog.java

示例4: TokenDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenDialog(MainGui owner) {
    super(owner,"Login configuration",true);
    this.setResizable(false);
   
    this.setLayout(new GridBagLayout());
    
    accessLabel = new LinkLabel("Access [help:login (?)]:", owner.getLinkLabelListener());
    //tokenInfo = new JLabel();
    tokenInfo = new LinkLabel("", owner.getLinkLabelListener());
    foreignTokenInfo = new LinkLabel("<html><body style='width:170px'>"
                + "Login data set externally with -token parameter.", owner.getLinkLabelListener());
    foreignTokenInfo.setVisible(false);
    
    GridBagConstraints gbc;
    
    add(nameLabel, makeGridBagConstraints(0,0,1,1,GridBagConstraints.WEST));
    add(name, makeGridBagConstraints(0,1,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5)));
    
    add(accessLabel, makeGridBagConstraints(0,2,1,1,GridBagConstraints.WEST));
    
    gbc = makeGridBagConstraints(0,3,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5));
    add(access, gbc);
    
    gbc = makeGridBagConstraints(0,4,2,1,GridBagConstraints.WEST);
    add(tokenInfo, gbc);
    
    gbc = makeGridBagConstraints(0,5,2,1,GridBagConstraints.WEST);
    add(foreignTokenInfo, gbc);
    
    gbc = makeGridBagConstraints(0,6,1,1,GridBagConstraints.WEST);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    add(deleteToken, gbc);
    
    gbc = makeGridBagConstraints(0,6,2,1,GridBagConstraints.CENTER);
    add(requestToken, gbc);
    
    gbc = makeGridBagConstraints(1,6,1,1,GridBagConstraints.WEST);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    add(verifyToken, gbc);
    
    gbc = makeGridBagConstraints(1,7,1,1,GridBagConstraints.EAST);
    add(done, gbc);
    
    ActionListener actionListener = owner.getActionListener();
    requestToken.addActionListener(actionListener);
    deleteToken.addActionListener(actionListener);
    verifyToken.addActionListener(actionListener);
    done.addActionListener(actionListener);

    pack();
}
 
开发者ID:chatty,项目名称:chatty,代码行数:52,代码来源:TokenDialog.java

示例5: TokenGetDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenGetDialog(MainGui owner) {
    super(owner,"Get login data",true);
    this.setResizable(false);
    this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    this.addWindowListener(owner.getWindowListener());
    
    info = new LinkLabel(INFO, owner.getLinkLabelListener());
    
    setLayout(new GridBagLayout());
    
    GridBagConstraints gbc;
    add(info,makeGridBagConstraints(0,0,2,1,GridBagConstraints.CENTER));
    
    // Default selected options
    includeReadUserAccess.setSelected(true);
    includeEditorAccess.setSelected(true);
    includeCommercialAccess.setSelected(true);
    includeShowSubsAccess.setSelected(true);
    
    // Options
    gbc = makeGridBagConstraints(0, 1, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(5,5,0,5);
    includeReadUserAccess.setToolTipText("To get notified when streams you "
            + "follow go online.");
    add(includeReadUserAccess, gbc);
    gbc = makeGridBagConstraints(0, 2, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeEditorAccess.setToolTipText("To be able to edit your channel's title and game.");
    add(includeEditorAccess,gbc);
    gbc = makeGridBagConstraints(0,3,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeCommercialAccess.setToolTipText("To be able to run commercials on your stream.");
    add(includeCommercialAccess,gbc);
    gbc = makeGridBagConstraints(0,4,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,5,5);
    includeShowSubsAccess.setToolTipText("To be able to show the list of your subscribers.");
    add(includeShowSubsAccess,gbc);
    
    // URL Display and Buttons
    gbc = makeGridBagConstraints(0,5,2,1,GridBagConstraints.CENTER);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    urlField.setEditable(false);
    add(urlField, gbc);
    gbc = makeGridBagConstraints(0,6,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,5,10,5);
    add(copyUrl,gbc);
    gbc = makeGridBagConstraints(1,6,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,0,10,5);
    add(openUrl,gbc);
    
    // Status and Close Button
    add(status,makeGridBagConstraints(0,7,2,1,GridBagConstraints.CENTER));
    add(close,makeGridBagConstraints(1,8,1,1,GridBagConstraints.EAST));
    
    openUrl.addActionListener(this);
    copyUrl.addActionListener(this);
    close.addActionListener(owner.getActionListener());
    
    includeEditorAccess.addItemListener(this);
    includeCommercialAccess.addItemListener(this);
    includeReadUserAccess.addItemListener(this);
    includeShowSubsAccess.addItemListener(this);
    
    reset();
    updateUrl();
    
    pack();
}
 
开发者ID:partouf,项目名称:Chatty-Twitch-Client,代码行数:70,代码来源:TokenGetDialog.java

示例6: TokenDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenDialog(MainGui owner) {
    super(owner,"Login configuration",true);
    this.setResizable(false);
   
    this.setLayout(new GridBagLayout());
    
    accessLabel = new LinkLabel("Access [help:login (?)]:", owner.getLinkLabelListener());
    //tokenInfo = new JLabel();
    tokenInfo = new LinkLabel("", owner.getLinkLabelListener());
    
    GridBagConstraints gbc;
    
    add(nameLabel, makeGridBagConstraints(0,0,1,1,GridBagConstraints.WEST));
    add(name, makeGridBagConstraints(0,1,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5)));
    
    add(accessLabel, makeGridBagConstraints(0,2,1,1,GridBagConstraints.WEST));
    
    gbc = makeGridBagConstraints(0,3,2,1,GridBagConstraints.CENTER,new Insets(0,5,5,5));
    add(access, gbc);
    
    gbc = makeGridBagConstraints(0,4,2,1,GridBagConstraints.WEST);
    add(tokenInfo, gbc);
    
    gbc = makeGridBagConstraints(0,6,1,1,GridBagConstraints.WEST);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    add(deleteToken, gbc);
    
    gbc = makeGridBagConstraints(0,6,2,1,GridBagConstraints.CENTER);
    add(requestToken, gbc);
    
    gbc = makeGridBagConstraints(1,6,1,1,GridBagConstraints.WEST);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    add(verifyToken, gbc);
    
    gbc = makeGridBagConstraints(1,7,1,1,GridBagConstraints.EAST);
    add(done, gbc);
    
    ActionListener actionListener = owner.getActionListener();
    requestToken.addActionListener(actionListener);
    deleteToken.addActionListener(actionListener);
    verifyToken.addActionListener(actionListener);
    done.addActionListener(actionListener);

    pack();
}
 
开发者ID:partouf,项目名称:Chatty-Twitch-Client,代码行数:46,代码来源:TokenDialog.java

示例7: TokenGetDialog

import chatty.gui.MainGui; //导入方法依赖的package包/类
public TokenGetDialog(MainGui owner) {
    super(owner,"Get login data",true);
    this.setResizable(false);
    this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    this.addWindowListener(owner.getWindowListener());
    
    info = new LinkLabel(INFO, owner.getLinkLabelListener());
    
    setLayout(new GridBagLayout());
    
    updateUrl();
    GridBagConstraints gbc;
    add(info,makeGridBagConstraints(0,0,2,1,GridBagConstraints.CENTER));
    
    gbc = makeGridBagConstraints(0, 1, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(5,5,0,5);
    includeReadUserAccess.setSelected(true);
    includeReadUserAccess.setToolTipText("To get notified when streams you "
            + "follow go online.");
    add(includeReadUserAccess, gbc);
    gbc = makeGridBagConstraints(0, 2, 2, 1, GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,0,5);
    includeEditorAccess.setToolTipText("To be able to edit your channel's title and game.");
    add(includeEditorAccess,gbc);
    gbc = makeGridBagConstraints(0,3,2,1,GridBagConstraints.WEST);
    gbc.insets = new Insets(0,5,5,5);
    includeCommercialAccess.setToolTipText("To be able to run commercials on your stream.");
    add(includeCommercialAccess,gbc);
    gbc = makeGridBagConstraints(0,4,2,1,GridBagConstraints.CENTER);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    urlField.setEditable(false);
    add(urlField, gbc);
    gbc = makeGridBagConstraints(0,5,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,5,10,5);
    add(copyUrl,gbc);
    gbc = makeGridBagConstraints(1,5,1,1,GridBagConstraints.EAST);
    gbc.insets = new Insets(0,0,10,5);
    add(openUrl,gbc);
    add(status,makeGridBagConstraints(0,6,2,1,GridBagConstraints.CENTER));
    add(close,makeGridBagConstraints(1,7,1,1,GridBagConstraints.EAST));
    
    openUrl.addActionListener(this);
    copyUrl.addActionListener(this);
    close.addActionListener(owner.getActionListener());
    
    includeEditorAccess.addItemListener(this);
    includeCommercialAccess.addItemListener(this);
    includeReadUserAccess.addItemListener(this);
    
    reset();
    updateUrl();
    
    pack();
}
 
开发者ID:pokemane,项目名称:TwitchChatClient,代码行数:56,代码来源:TokenGetDialog.java


注:本文中的chatty.gui.MainGui.getLinkLabelListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。