class BorderPanel extends Panel with LayoutContainer
A container that arranges its children around a central component that takes most of the space. The other children are placed on one of four borders: north, east, south, west.
- See also
javax.swing.BorderLayout
- Alphabetic
- By Inheritance
- BorderPanel
- LayoutContainer
- Panel
- Wrapper
- Container
- Component
- UIElement
- LazyPublisher
- Publisher
- Reactor
- Proxy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BorderPanel()
Type Members
-
type
Constraints = BorderPanel.Position.Value
The type of component constraints for this container.
The type of component constraints for this container.
- Definition Classes
- BorderPanel → LayoutContainer
-
trait
SuperMixin
extends JComponent
This trait is used to redirect certain calls from the peer to the wrapper and back.
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.
- Attributes
- protected
- Definition Classes
- Component
-
class
Content
extends BufferWrapper[Component]
- Attributes
- protected
- Definition Classes
- Wrapper
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
_contents: Content
- Attributes
- protected
- Definition Classes
- Wrapper
-
def
add(c: Component, l: Constraints): Unit
Adds a component with the given constraints to the underlying layout manager and the component peer.
Adds a component with the given constraints to the underlying layout manager and the component peer. This method needs to interact properly with method
constraintsFor
, i.e., it might need to remove previously held components in order to maintain layout consistency. SeeBorderPanel
for an example.- Attributes
- protected
- Definition Classes
- BorderPanel → LayoutContainer
-
def
areValid(c: Constraints): (Boolean, String)
Checks whether the given constraints are valid.
Checks whether the given constraints are valid. Additionally returns an error string that is only fetched if the constraints aren't valid.
- Attributes
- protected
- Definition Classes
- BorderPanel → LayoutContainer
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
background: Color
- Definition Classes
- UIElement
-
def
background_=(c: Color): Unit
- Definition Classes
- UIElement
-
def
border: Border
- Definition Classes
- Component
-
def
border_=(b: Border): Unit
- Definition Classes
- Component
-
def
bounds: java.awt.Rectangle
- Definition Classes
- UIElement
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
componentOrientation: ComponentOrientation
- Definition Classes
- UIElement
-
def
componentOrientation_=(x: ComponentOrientation): Unit
- Definition Classes
- UIElement
-
def
constraintsFor(comp: Component): BorderPanel.Position.Value
Obtains the constraints for the given component from the underlying Swing layout manager.
Obtains the constraints for the given component from the underlying Swing layout manager.
- Attributes
- protected
- Definition Classes
- BorderPanel → LayoutContainer
-
def
contents: Seq[Component]
The child components of this container.
-
def
cursor: Cursor
- Definition Classes
- UIElement
-
def
cursor_=(c: Cursor): Unit
- Definition Classes
- UIElement
-
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
- Definition Classes
- UIElement
-
def
enabled: Boolean
- Definition Classes
- Component
-
def
enabled_=(b: Boolean): Unit
- Definition Classes
- Component
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Proxy → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
focusable: Boolean
- Definition Classes
- Component
-
def
focusable_=(b: Boolean): Unit
- Definition Classes
- Component
-
def
font: Font
- Definition Classes
- UIElement
-
def
font_=(f: Font): Unit
- Definition Classes
- UIElement
-
def
foreground: Color
- Definition Classes
- UIElement
-
def
foreground_=(c: Color): Unit
- Definition Classes
- UIElement
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasFocus: Boolean
- Definition Classes
- Component
-
def
hashCode(): Int
- Definition Classes
- Proxy → Any
-
def
ignoreRepaint: Boolean
- Definition Classes
- UIElement
-
def
ignoreRepaint_=(b: Boolean): Unit
- Definition Classes
- UIElement
-
var
initP: JComponent
- Definition Classes
- Component
-
def
inputVerifier: (Component) ⇒ Boolean
- Definition Classes
- Component
-
def
inputVerifier_=(v: (Component) ⇒ Boolean): Unit
- Definition Classes
- Component
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
layout: Map[Component, Constraints]
A map of components to the associated layout constraints.
A map of components to the associated layout constraints. Any element in this map is automatically added to the contents of this panel. Therefore, specifying the layout of a component via
layout(myComponent) = myConstraints
also ensures that myComponent is properly added to this container.
- Definition Classes
- LayoutContainer
- def layoutManager: BorderLayout
-
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
-
val
listeners: RefSet[Reaction] { val underlying: scala.collection.mutable.HashSet[scala.ref.Reference[scala.swing.Reactions.Reaction]] }
- Attributes
- protected
- Definition Classes
- Publisher
-
def
locale: Locale
- Definition Classes
- UIElement
-
def
location: java.awt.Point
- Definition Classes
- UIElement
-
def
locationOnScreen: java.awt.Point
- Definition Classes
- UIElement
-
def
maximumSize: java.awt.Dimension
- Definition Classes
- UIElement
-
def
maximumSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
-
def
minimumSize: java.awt.Dimension
- Definition Classes
- UIElement
-
def
minimumSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
-
def
name: String
- Definition Classes
- Component
-
def
name_=(s: String): Unit
- Definition Classes
- Component
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def onFirstSubscribe(): Unit
-
def
onLastUnsubscribe(): Unit
- Attributes
- protected
- Definition Classes
- UIElement → LazyPublisher
-
def
opaque: Boolean
- Definition Classes
- Component
-
def
opaque_=(b: Boolean): Unit
- Definition Classes
- Component
-
def
paint(g: Graphics2D): Unit
- Definition Classes
- Component
-
def
paintBorder(g: Graphics2D): Unit
- Attributes
- protected
- Definition Classes
- Component
-
def
paintChildren(g: Graphics2D): Unit
- Attributes
- protected
- Definition Classes
- Component
-
def
paintComponent(g: Graphics2D): Unit
For custom painting, users should usually override this method.
For custom painting, users should usually override this method.
- Attributes
- protected
- Definition Classes
- Component
-
lazy val
peer: JPanel with SuperMixin
The underlying Swing peer.
The underlying Swing peer.
- Definition Classes
- BorderPanel → Panel → Wrapper → Component → UIElement
-
def
preferredSize: java.awt.Dimension
- Definition Classes
- UIElement
-
def
preferredSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
-
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
- Definition Classes
- UIElement
-
def
repaint(): Unit
- Definition Classes
- UIElement
-
def
requestFocus(): Unit
- Definition Classes
- Component
-
def
requestFocusInWindow(): Boolean
- Definition Classes
- Component
-
def
revalidate(): Unit
- Definition Classes
- Component
-
def
self: java.awt.Component
- Definition Classes
- UIElement → Proxy
-
def
showing: Boolean
- Definition Classes
- UIElement
-
def
size: java.awt.Dimension
- Definition Classes
- UIElement
-
def
subscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Component → Proxy → AnyRef → Any
-
def
toolkit: Toolkit
- Definition Classes
- UIElement
-
def
tooltip: String
- Definition Classes
- Component
-
def
tooltip_=(t: String): Unit
- Definition Classes
- Component
-
def
unsubscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
-
def
validate(): Unit
- Definition Classes
- UIElement
-
def
visible: Boolean
- Definition Classes
- UIElement
-
def
visible_=(b: Boolean): Unit
- Definition Classes
- UIElement
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
xLayoutAlignment: Double
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
- Definition Classes
- Component
-
def
xLayoutAlignment_=(x: Double): Unit
- Definition Classes
- Component
-
def
yLayoutAlignment: Double
- Definition Classes
- Component
-
def
yLayoutAlignment_=(y: Double): Unit
- Definition Classes
- Component
-
object
keys
extends Publisher
- Definition Classes
- Component
-
object
mouse
Contains publishers for various mouse events.
Contains publishers for various mouse events. They are separated for efficiency reasons.
- Definition Classes
- Component