mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ParameterInfoUIContextEx: cleanup
GitOrigin-RevId: ecad2cdee84042b8c489f7824dbb06aca96b5386
This commit is contained in:
committed by
intellij-monorepo-bot
parent
38d29880a1
commit
51fbd9bce1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2019 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,25 +24,26 @@ import java.util.EnumSet;
|
||||
|
||||
/**
|
||||
* Richer interface for describing a popup hint contents.
|
||||
* User: dcheryasov
|
||||
*
|
||||
* @author dcheryasov
|
||||
*/
|
||||
public interface ParameterInfoUIContextEx extends ParameterInfoUIContext {
|
||||
|
||||
/**
|
||||
* Set the contents and formatting of a one-line, multi-formatted popup hint.
|
||||
* @param texts pieces ot text to be put together, each individually formattable.
|
||||
* @param flags a set of Flags; flags[i] describes formatting of texts[i].
|
||||
*
|
||||
* @param texts pieces ot text to be put together, each individually formattable.
|
||||
* @param flags a set of Flags; flags[i] describes formatting of texts[i].
|
||||
* @param background background color of the hint.
|
||||
*/
|
||||
String setupUIComponentPresentation(String[] texts, EnumSet<Flag>[] flags, Color background);
|
||||
|
||||
enum Flag {
|
||||
HIGHLIGHT, DISABLE, STRIKEOUT // more to come
|
||||
HIGHLIGHT, DISABLE, STRIKEOUT
|
||||
}
|
||||
|
||||
/**
|
||||
* Escape function for convert custom tags to html.
|
||||
* @param escapeFunction
|
||||
* @param escapeFunction Escape function to convert custom tags to HTML.
|
||||
*/
|
||||
void setEscapeFunction(@Nullable Function<? super String, String> escapeFunction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user