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.JComponent
getComponent()
Returns the component that will be inserted in the status bardefault void
propertiesChanged()
a callback telling that the properties have been changed, the widget can update itself if neededdefault boolean
test(StatusBarEventType statusBarEventType)
Returns true if the widget must be updated fore the given eventdefault void
update()
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:
test
in interfacejava.util.function.Predicate<StatusBarEventType>
- Parameters:
statusBarEventType
- the event- Returns:
- true if the widget must be updated
-
-