Class FlatUIDefaultsInspector
java.lang.Object
com.formdev.flatlaf.extras.FlatUIDefaultsInspector
A simple UI defaults inspector that shows a window with all UI defaults used
in current look and feel.
To use it in an application install it with:
FlatUIDefaultsInspector.install( "ctrl shift alt Y" );This can be done e.g. in the main() method and allows enabling (and disabling) the UI defaults inspector with the given keystroke.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JMenuItemprivate JMenuItemprivate JMenuItemprivate Propertiesprivate FlatTextFieldprivate JLabelprivate JPanelprivate static JFrameprivate static final intprivate final PropertyChangeListenerprivate final PropertyChangeListenerprivate JPanelprivate booleanprivate JScrollPaneprivate JTableprivate JPopupMenuprivate JLabel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopyKey()private voidprivate voidcopyToClipboard(int column) private voidprivate JFramestatic JComponentCreates a UI defaults inspector panel that can be embedded into any window.private voiddelegateKey(int keyCode, String actionKey) private static voidensureOnScreen(JFrame frame) private voidprivate PreferencesgetPrefs()private FlatUIDefaultsInspector.Item[]static voidhide()private voidstatic voidInstalls a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g.private voidprivate voidprivate Propertiesprivate voidrefresh()private ColorresolveDerivedColor(UIDefaults defaults, String key, Color color, Color[] pBaseColor) private voidsaveWindowBounds(JFrame frame) static voidshow()private voidprivate StringtypeOfValue(Object value) private static voidupdateWindowTitle(JFrame frame)
-
Field Details
-
KEY_MODIFIERS_MASK
private static final int KEY_MODIFIERS_MASK- See Also:
-
inspectorFrame
-
lafListener
-
lafDefaultsListener
-
refreshPending
private boolean refreshPending -
derivedColorKeys
-
panel
-
filterPanel
-
filterLabel
-
filterField
-
valueTypeLabel
-
valueTypeField
-
scrollPane
-
table
-
tablePopupMenu
-
copyKeyMenuItem
-
copyValueMenuItem
-
copyKeyAndValueMenuItem
-
-
Constructor Details
-
FlatUIDefaultsInspector
private FlatUIDefaultsInspector()
-
-
Method Details
-
install
Installs a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g. "ctrl shift alt Y").- Parameters:
activationKeys- a keystroke (e.g. "ctrl shift alt Y"), ornullto use "ctrl shift alt Y"
-
show
public static void show() -
hide
public static void hide() -
createInspectorPanel
Creates a UI defaults inspector panel that can be embedded into any window. -
createFrame
-
delegateKey
-
ensureOnScreen
-
lafChanged
-
lafDefaultsChanged
-
refresh
private void refresh() -
getUIDefaultsItems
-
resolveDerivedColor
-
loadDerivedColorKeys
-
updateWindowTitle
-
saveWindowBounds
-
getPrefs
-
filterChanged
private void filterChanged() -
typeOfValue
-
tableMousePressed
-
copyKey
private void copyKey() -
copyValue
private void copyValue() -
copyKeyAndValue
private void copyKeyAndValue() -
copyToClipboard
private void copyToClipboard(int column) -
initComponents
private void initComponents()
-