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

The following examples show how to use com.alee.managers.tooltip.TooltipManager#removeTooltips() . 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: ContactDetails.java    From desktopclient-java with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void updateOnEDT(Observable o, Object arg) {
    // may have changed: avatar...
    mAvatarImage.update();
    // ...contact name...
    mNameField.setText(mContact.getName());
    mNameField.setInputPrompt(mContact.getName());
    Contact.Subscription subscription = mContact.getSubScription();
    String auth = Tr.tr("Unknown");
    switch(subscription) {
        case PENDING: auth = Tr.tr("Awaiting reply"); break;
        case SUBSCRIBED: auth = Tr.tr("Authorized"); break;
        case UNSUBSCRIBED: auth = Tr.tr("Not authorized"); break;
    }
    // ...subscription...
    mSubscrButton.setVisible(subscription != Contact.Subscription.SUBSCRIBED);
    mSubscrButton.setEnabled(subscription == Contact.Subscription.UNSUBSCRIBED);
    mSubscrStatus.setText(auth);
    // ...and/or key
    String hasKey = "<html>";
    if (mContact.hasKey()) {
        hasKey += Tr.tr("Available")+"</html>";
        TooltipManager.removeTooltips(mKeyStatus);
        mFPArea.setText(Utils.fingerprint(mContact.getFingerprint()));
        mFPLabel.setVisible(true);
        mFPArea.setVisible(true);
    } else {
        hasKey += "<font color='red'>"+Tr.tr("Not Available")+"</font></html>";
        String keyText = Tr.tr("The public key for this contact could not yet be received");
        TooltipManager.addTooltip(mKeyStatus, keyText);
        mFPLabel.setVisible(false);
        mFPArea.setVisible(false);
    }
    mKeyStatus.setText(hasKey);
    mUpdateButton.setEnabled(mContact.isKontalkUser() &&
            subscription == Contact.Subscription.SUBSCRIBED);
}
 
Example 2
Source File: WebSpinner.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 3
Source File: WebToggleButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 4
Source File: WebPasswordField.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 5
Source File: WebProgressBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 6
Source File: WebProgressBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 7
Source File: WebComboBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 8
Source File: WebSpinner.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 9
Source File: WebToggleButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 10
Source File: WebComponent.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 11
Source File: WebComponent.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 12
Source File: WebFormattedTextField.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 13
Source File: WebTextField.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 14
Source File: WebCheckBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 15
Source File: WebComboBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 16
Source File: WebSplitButton.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 17
Source File: WebMenuBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ()
{
    TooltipManager.removeTooltips ( this );
}
 
Example 18
Source File: WebCheckBox.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 19
Source File: WebMenuBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final List<WebCustomTooltip> tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}
 
Example 20
Source File: WebToolBar.java    From weblaf with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeToolTips ( final WebCustomTooltip... tooltips )
{
    TooltipManager.removeTooltips ( this, tooltips );
}