Class FocusDecorator
java.lang.Object
dev.visdb.seesaw.decorators.BaseAnyDecorator
dev.visdb.seesaw.decorators.BaseDecorator
dev.visdb.seesaw.decorators.FocusDecorator
- All Implemented Interfaces:
AnyDecorator, Decorator, FocusListener, EventListener
- Direct Known Subclasses:
BackgroundDecorator, BorderDecorator
Base class for decorators that use Focus.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Decorator
Decorator.DecoratorStyle -
Field Summary
Fields inherited from interface Decorator
nullDecorator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidIf the component is of the SsComponent, then decorate().protected ComponentReturn the Component that gets focus when the associated SsComponent is focused.voidApply decorationvoidRemove decorationvoidinstall(SsComponent comp) Install this decorator into the component.voidRemove decorator/listeners from component.Methods inherited from class BaseDecorator
handleTextDecorator, setDecorateTextEnabledMethods inherited from class BaseAnyDecorator
decoComp, getSsComponent, jCompMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnyDecorator
getSsComponentMethods inherited from interface Decorator
decorate, getDecoratorStyle, setDecorateTextEnabled
-
Constructor Details
-
FocusDecorator
public FocusDecorator()
-
-
Method Details
-
focusGained
Apply decoration- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
Remove decoration- Specified by:
focusLostin interfaceFocusListener
-
install
Install this decorator into the component. Installs listeners- Specified by:
installin interfaceAnyDecorator- Overrides:
installin classBaseAnyDecorator- Parameters:
comp- the component
-
uninstall
Remove decorator/listeners from component.- Specified by:
uninstallin interfaceAnyDecorator- Overrides:
uninstallin classBaseAnyDecorator
-
focusComp
-
checkFocusChange
If the component is of the SsComponent, then decorate().- Parameters:
c-
-