Java Code Examples for com.alee.managers.tooltip.TooltipManager#addTooltip()

The following examples show how to use com.alee.managers.tooltip.TooltipManager#addTooltip() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebComponent.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip )
{
    return TooltipManager.addTooltip ( this, icon, tooltip );
}
 
Example 2
Source File: WebStyledLabel.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final int delay )
{
    return TooltipManager.addTooltip ( this, tooltip, delay );
}
 
Example 3
Source File: WebToggleButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 4
Source File: WebPasswordField.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 5
Source File: WebComboBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay, final int delay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay, delay );
}
 
Example 6
Source File: WebLabel.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final String tooltip )
{
    return TooltipManager.addTooltip ( this, tooltip );
}
 
Example 7
Source File: WebRadioButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 8
Source File: WebTextField.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 9
Source File: WebToggleButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final int delay )
{
    return TooltipManager.addTooltip ( this, tooltip, delay );
}
 
Example 10
Source File: WebMenuBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 11
Source File: WebButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay, final int delay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay, delay );
}
 
Example 12
Source File: WebTristateCheckBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final String tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 13
Source File: WebSplitButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, icon, tooltip, tooltipWay );
}
 
Example 14
Source File: WebRadioButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip )
{
    return TooltipManager.addTooltip ( this, icon, tooltip );
}
 
Example 15
Source File: WebButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay, final int delay )
{
    return TooltipManager.addTooltip ( this, icon, tooltip, tooltipWay, delay );
}
 
Example 16
Source File: WebToolBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay );
}
 
Example 17
Source File: WebMenuBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip )
{
    return TooltipManager.addTooltip ( this, tooltip );
}
 
Example 18
Source File: ConfigurationDialog.java    From desktopclient-java with GNU General Public License v3.0 4 votes vote down vote up
NetworkPanel() {
    GroupPanel groupPanel = new GroupPanel(View.GAP_DEFAULT, false);
    groupPanel.setMargin(View.MARGIN_BIG);

    groupPanel.add(new WebLabel(Tr.tr("Network Settings")).setBoldFont());
    groupPanel.add(new WebSeparator(true, true));

    mConnectStartupBox = createCheckBox(Tr.tr("Connect on startup"),
            "",
            mConf.getBoolean(Config.MAIN_CONNECT_STARTUP));
    groupPanel.add(mConnectStartupBox);

    mConnectRetryBox = createCheckBox(Tr.tr("Retry on connection failure"),
            Tr.tr("Try automatic (re-)connect after connection failure"),
            mConf.getBoolean(Config.NET_RETRY_CONNECT));
    groupPanel.add(new GroupPanel(mConnectRetryBox, new WebSeparator()));

    mRequestAvatars = createCheckBox(Tr.tr("Download profile pictures"),
            Tr.tr("Download the profile pictures of your contacts"),
            mConf.getBoolean(Config.NET_REQUEST_AVATARS));
    groupPanel.add(new GroupPanel(mRequestAvatars, new WebSeparator()));

    mImgResizeMap = new LinkedHashMap<>();
    mImgResizeMap.put(-1, Tr.tr("Original"));
    mImgResizeMap.put(300 * 1000, Tr.tr("Small (0.3MP)"));
    mImgResizeMap.put(500 * 1000, Tr.tr("Medium (0.5MP)"));
    mImgResizeMap.put(800 * 1000, Tr.tr("Large (0.8MP)"));

    mMaxImgSizeBox = new WebComboBox(new ArrayList<>(mImgResizeMap.values()).toArray());
    int maxImgIndex = new ArrayList<>(mImgResizeMap.keySet()).indexOf(
            mConf.getInt(Config.NET_MAX_IMG_SIZE));
    if (maxImgIndex >= 0)
        mMaxImgSizeBox.setSelectedIndex(maxImgIndex);
    TooltipManager.addTooltip(mMaxImgSizeBox, Tr.tr("Reduce size of images before sending"));

    groupPanel.add(new GroupPanel(View.GAP_DEFAULT,
            new WebLabel(Tr.tr("Resize image attachments:")),
            mMaxImgSizeBox,
            new WebSeparator()));

    this.add(groupPanel);
}
 
Example 19
Source File: WebCheckBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final Icon icon, final String tooltip, final TooltipWay tooltipWay, final int delay )
{
    return TooltipManager.addTooltip ( this, icon, tooltip, tooltipWay, delay );
}
 
Example 20
Source File: WebSpinner.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public WebCustomTooltip addToolTip ( final JComponent tooltip, final TooltipWay tooltipWay, final int delay )
{
    return TooltipManager.addTooltip ( this, tooltip, tooltipWay, delay );
}