trait UIElement extends Proxy with LazyPublisher
The base trait of all user interface elements. Subclasses belong to one
of two groups: top-level elements such as windows and dialogs, or
Component
s.
- Note
[Implementation] A UIElement automatically adds itself to the component cache on creation.
,[Java Swing] This trait does not have an exact counterpart in Java Swing. The peer is of type java.awt.Component since this is the least common upper bound of possible underlying peers.
- See also
java.awt.Component
- Alphabetic
- By Inheritance
- UIElement
- LazyPublisher
- Publisher
- Reactor
- Proxy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
peer: java.awt.Component
The underlying Swing peer.
Concrete Value Members
- def background: Color
- def background_=(c: Color): Unit
- def bounds: Rectangle
- def componentOrientation: ComponentOrientation
- def componentOrientation_=(x: ComponentOrientation): Unit
- def cursor: Cursor
- def cursor_=(c: Cursor): Unit
-
def
deafTo(ps: Publisher*): Unit
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
- Definition Classes
- Reactor
- def displayable: Boolean
-
def
equals(that: Any): Boolean
- Definition Classes
- Proxy → Any
- def font: Font
- def font_=(f: Font): Unit
- def foreground: Color
- def foreground_=(c: Color): Unit
-
def
hashCode(): Int
- Definition Classes
- Proxy → Any
- def ignoreRepaint: Boolean
- def ignoreRepaint_=(b: Boolean): Unit
-
def
listenTo(ps: Publisher*): Unit
Listen to the given publisher as long as
deafTo
isn't called for them.Listen to the given publisher as long as
deafTo
isn't called for them.- Definition Classes
- Reactor
- def locale: Locale
- def location: Point
- def locationOnScreen: Point
- def maximumSize: Dimension
- def maximumSize_=(x: Dimension): Unit
- def minimumSize: Dimension
- def minimumSize_=(x: Dimension): Unit
- def preferredSize: Dimension
- def preferredSize_=(x: Dimension): Unit
-
def
publish(e: Event): Unit
Notify all registered reactions.
Notify all registered reactions.
- Definition Classes
- Publisher
-
val
reactions: Reactions
All reactions of this reactor.
All reactions of this reactor.
- Definition Classes
- Reactor
- def repaint(rect: Rectangle): Unit
- def repaint(): Unit
-
def
self: java.awt.Component
- Definition Classes
- UIElement → Proxy
- def showing: Boolean
- def size: Dimension
-
def
subscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
-
def
toString(): String
- Definition Classes
- Proxy → Any
- def toolkit: Toolkit
-
def
unsubscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
- def validate(): Unit
- def visible: Boolean
- def visible_=(b: Boolean): Unit