Scala Library
|
|
scala/swing/Component.scala
]
abstract
class
Component
extends
UIElement with
PublisherValue Summary | |
var
|
initP : javax.swing.JComponent |
override lazy val
|
peer : javax.swing.JComponent |
Values and Variables inherited from Publisher | |
listeners |
Values and Variables inherited from Reactor | |
reactions |
Method Summary | |
def
|
border : javax.swing.border.Border |
def
|
border_= (b : javax.swing.border.Border) : Unit |
def
|
enabled : Boolean |
def
|
enabled_= (b : Boolean) : Unit |
def
|
inputVerifier : (Component) => Boolean |
def
|
inputVerifier_= (v : (Component) => Boolean) : Unit |
def
|
opaque : Boolean |
def
|
opaque_= (b : Boolean) : Unit |
protected def
|
paint (g : java.awt.Graphics) : Unit |
protected def
|
paintComponent
(g : java.awt.Graphics) : Unit
For custom painting, users should usually override this method.
|
def
|
requestFocus : Unit |
def
|
revalidate : Unit |
override def
|
toString
: java.lang.String
Returns a string representation of the object.
|
def
|
tooltip : java.lang.String |
def
|
tooltip_= (t : java.lang.String) : Unit |
def
|
xLayoutAlignment
: Double
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to
align components relative to each other.
|
def
|
xLayoutAlignment_= (x : Double) : Unit |
def
|
yLayoutAlignment : Double |
def
|
yLayoutAlignment_= (y : Double) : Unit |
Methods inherited from Publisher | |
subscribe, unsubscribe, publish |
Methods inherited from Reactor | |
listenTo, deafTo |
Methods inherited from UIElement | |
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, repaint |
Methods inherited from Proxy | |
hashCode, equals |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
protected trait
|
SuperMixin
extends javax.swing.JComponent with AnyRef
This trait is used to redirect certain calls from the peer to the wrapper
and back. Useful to expose methods that can be customized by overriding.
|
Object Summary | |
object
|
Mouse
extends AnyRef
Contains publishers for various mouse events. They are separated for
efficiency reasons.
|
Value Details |
Method Details |
def
xLayoutAlignment : Double
def
yLayoutAlignment : Double
def
border : javax.swing.border.Border
def
border_=(b : javax.swing.border.Border) : Unit
def
opaque : Boolean
def
enabled : Boolean
def
tooltip : java.lang.String
def
tooltip_=(t : java.lang.String) : Unit
def
revalidate : Unit
def
requestFocus : Unit
protected
def
paintComponent(g : java.awt.Graphics) : Unit
protected
def
paint(g : java.awt.Graphics) : Unit
override
def
toString : java.lang.String
The default representation is platform dependent.
Scala Library
|
|