Package docking.theme.gui
Class ThemeTableContext<T>
java.lang.Object
docking.DefaultActionContext
docking.theme.gui.ThemeTableContext<T>
- Type Parameters:
T
- the resource type (Color, Font, or Icon)
- All Implemented Interfaces:
ActionContext
ActionContext for ThemeDialog tables
-
Constructor Summary
ConstructorDescriptionThemeTableContext
(ThemeValue<T> currentValue, ThemeValue<T> themeValue, ThemeTable themeTable) -
Method Summary
Modifier and TypeMethodDescriptionReturns the currentValue of the selected table rowReturns the theme table for this contextReturns the original theme value of the selected table rowboolean
Returns true if the current value is not the same as the original theme value for the selected table rowMethods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
-
Constructor Details
-
ThemeTableContext
public ThemeTableContext(ThemeValue<T> currentValue, ThemeValue<T> themeValue, ThemeTable themeTable)
-
-
Method Details
-
getThemeTable
Returns the theme table for this context- Returns:
- the table
-
getCurrentValue
Returns the currentValue of the selected table row- Returns:
- the currentValue of the selected table row
-
getThemeValue
Returns the original theme value of the selected table row- Returns:
- the original theme value of the selected table row
-
isChanged
public boolean isChanged()Returns true if the current value is not the same as the original theme value for the selected table row- Returns:
- true if the current value is not the same as the original theme value for the selected table row
-