Package org.gjt.sp.jedit.gui.statusbar
Interface Widget
-
- All Superinterfaces:
java.util.function.Predicate<StatusBarEventType>
- All Known Implementing Classes:
LastModifiedWidgetFactory.LastModifiedWidget,SelectionLengthWidgetFactory.SelectionLengthWidget
public interface Widget extends java.util.function.Predicate<StatusBarEventType>
Status Bar Widget interface.- Since:
- jEdit 4.3pre14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description javax.swing.JComponentgetComponent()Returns the component that will be inserted in the status bardefault voidpropertiesChanged()a callback telling that the properties have been changed, the widget can update itself if neededdefault booleantest(StatusBarEventType statusBarEventType)Returns true if the widget must be updated fore the given eventdefault voidupdate()A refresh is asked to the widget
-
-
-
Method Detail
-
getComponent
javax.swing.JComponent getComponent()
Returns the component that will be inserted in the status bar- Returns:
- a JComponent
-
propertiesChanged
default void propertiesChanged()
a callback telling that the properties have been changed, the widget can update itself if needed
-
update
default void update()
A refresh is asked to the widget
-
test
default boolean test(StatusBarEventType statusBarEventType)
Returns true if the widget must be updated fore the given event- Specified by:
testin interfacejava.util.function.Predicate<StatusBarEventType>- Parameters:
statusBarEventType- the event- Returns:
- true if the widget must be updated
-
-