public final class LafLookup extends Object
sun.swing.DefaultLookup
class.
This class does basically the same except not allowing to change the way lookup works.Modifier and Type | Method and Description |
---|---|
static Object |
get(JComponent component,
ComponentUI ui,
String key)
Returns default
Object value for the specified key . |
static boolean |
getBoolean(JComponent component,
ComponentUI ui,
String key)
Returns default
boolean value for the specified key . |
static boolean |
getBoolean(JComponent component,
ComponentUI ui,
String key,
boolean defaultValue)
Returns default
boolean value for the specified key . |
static Border |
getBorder(JComponent component,
ComponentUI ui,
String key)
Returns default
Border value for the specified key . |
static Border |
getBorder(JComponent component,
ComponentUI ui,
String key,
Border defaultValue)
Returns default
Border value for the specified key . |
static Color |
getColor(JComponent component,
ComponentUI ui,
String key)
Returns default
Color value for the specified key . |
static Color |
getColor(JComponent component,
ComponentUI ui,
String key,
Color defaultValue)
Returns default
Color value for the specified key . |
static Icon |
getIcon(JComponent component,
ComponentUI ui,
String key)
Returns default
Icon value for the specified key . |
static Icon |
getIcon(JComponent component,
ComponentUI ui,
String key,
Icon defaultValue)
Returns default
Icon value for the specified key . |
static InputMap |
getInputMap(JComponent component,
int condition)
Returns
InputMap for the specified JComponent and event condition. |
static Insets |
getInsets(JComponent component,
ComponentUI ui,
String key)
Returns default
Insets value for the specified key . |
static Insets |
getInsets(JComponent component,
ComponentUI ui,
String key,
Insets defaultValue)
Returns default
Insets value for the specified key . |
static int |
getInt(JComponent component,
ComponentUI ui,
String key)
Returns default
int value for the specified key . |
static int |
getInt(JComponent component,
ComponentUI ui,
String key,
int defaultValue)
Returns default
int value for the specified key . |
@Nullable public static InputMap getInputMap(@NotNull JComponent component, int condition)
InputMap
for the specified JComponent
and event condition.component
- JComponent
condition
- event conditionInputMap
for the specified JComponent
and event condition.public static int getInt(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
int
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyint
value for the specified key
public static int getInt(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, int defaultValue)
int
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyint
value for the specified key
@Nullable public static Insets getInsets(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
Insets
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyInsets
value for the specified key
@Nullable public static Insets getInsets(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, @Nullable Insets defaultValue)
Insets
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyInsets
value for the specified key
public static boolean getBoolean(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
boolean
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyboolean
value for the specified key
public static boolean getBoolean(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, boolean defaultValue)
boolean
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyboolean
value for the specified key
@Nullable public static Color getColor(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
Color
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyColor
value for the specified key
@Nullable public static Color getColor(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, @Nullable Color defaultValue)
Color
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyColor
value for the specified key
@Nullable public static Icon getIcon(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
Icon
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyIcon
value for the specified key
@Nullable public static Icon getIcon(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, @Nullable Icon defaultValue)
Icon
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyIcon
value for the specified key
@Nullable public static Border getBorder(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
Border
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyBorder
value for the specified key
@Nullable public static Border getBorder(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key, @Nullable Border defaultValue)
Border
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keydefaultValue
- value used as default if there is no value provided for the keyBorder
value for the specified key
@Nullable public static Object get(@NotNull JComponent component, @NotNull ComponentUI ui, @NotNull String key)
Object
value for the specified key
.component
- JComponent
to return value forui
- ComponentUI
to return value forkey
- value keyObject
value for the specified key
Copyright © 2020. All rights reserved.