UIElement

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 Components.

The base trait of all user interface elements. Subclasses belong to one of two groups: top-level elements such as windows and dialogs, or Components.

See also

java.awt.Component

Note

[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.

[Implementation] A UIElement automatically adds itself to the component cache on creation.

Companion
object
trait LazyPublisher
trait Publisher
trait Reactor
trait Proxy
class Object
trait Matchable
class Any

Value members

Abstract methods

def peer: Component

The underlying Swing peer.

The underlying Swing peer.

Concrete methods

def background_=(c: Color): Unit
def componentOrientation: ComponentOrientation
def componentOrientation_=(x: ComponentOrientation): Unit
def cursor: Cursor
def cursor_=(c: Cursor): Unit
def displayable: Boolean
def font: Font
def font_=(f: Font): Unit
def foreground_=(c: Color): Unit
def ignoreRepaint: Boolean
def ignoreRepaint_=(b: Boolean): Unit
def locale: Locale
def maximumSize_=(x: Dimension): Unit
def minimumSize_=(x: Dimension): Unit
def preferredSize_=(x: Dimension): Unit
def repaint(): Unit
def repaint(rect: Rectangle): Unit
def self: Any
def showing: Boolean
def toolkit: Toolkit
def validate(): Unit
def visible: Boolean
def visible_=(b: Boolean): Unit

Inherited methods

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.

Inherited from
Reactor
override def equals(that: Any): Boolean
Definition Classes
Proxy -> Any
Inherited from
Proxy
override def hashCode(): Int
Definition Classes
Proxy -> Any
Inherited from
Proxy
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.

Inherited from
Reactor
def publish(e: Event): Unit

Notify all registered reactions.

Notify all registered reactions.

Inherited from
Publisher
override def subscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inherited from
LazyPublisher
override def toString(): String
Definition Classes
Proxy -> Any
Inherited from
Proxy
override def unsubscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inherited from
LazyPublisher

Inherited fields

protected val listeners: RefSet[Reaction]
Inherited from
Publisher

All reactions of this reactor.

All reactions of this reactor.

Inherited from
Reactor