|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.autocomplete.Util
public class Util
Utility methods for the auto-complete framework.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static boolean |
browse(URI uri)
Attempts to open a web browser to the specified URI. |
static String |
getHexString(Color c)
Returns a hex string for the specified color, suitable for HTML. |
static Rectangle |
getScreenBoundsForPoint(int x,
int y)
Returns the screen coordinates for the monitor that contains the specified point. |
static boolean |
startsWithIgnoreCase(String str,
String start)
Returns whether str starts with start,
ignoring case. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static boolean browse(URI uri)
uri - The URI to open. If this is null, nothing
happens and this method returns false.
false on JRE's older than 1.6.public static String getHexString(Color c)
c - The color.
#rrggbb",
or null if c is null.
public static Rectangle getScreenBoundsForPoint(int x,
int y)
x - The x-coordinate, in screen coordinates.y - The y-coordinate, in screen coordinates.
public static boolean startsWithIgnoreCase(String str,
String start)
str starts with start,
ignoring case.
str - The string to check.start - The prefix to check for.
str starts with start,
ignoring case.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||