Skip to content

@daveray /show-events.clj
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get Seesaw event and property info in the REPL
user=> (show-options (label))
javax.swing.JLabel
Option Notes/Examples
-------------------------- --------------
:background :aliceblue
"#f00"
"#FF0000"
(seesaw.color/color 255 0 0 0 224)
:border 5
"Border Title"
[5 "Compound" 10]
See (seesaw.border/*)
:bounds :preferred
[x y w h]
Use :* to leave component unchanged:
[x :* :* h]
:class :class-name
#{:multiple :class-names}
:cursor See (seesaw.cursor/cursor)
:drag-enabled? boolean
:enabled? boolean
:focusable? boolean
:font ARIAL-BOLD-18
:monospaced
:serif
:sans-serif
See (seesaw.font/font)
:foreground :aliceblue
"#f00"
"#FF0000"
(seesaw.color/color 255 0 0 0 224)
:h-text-position :center
:trailing
:leading
:right
:left
:halign :center
:trailing
:leading
:right
:left
:icon See (seesaw.icon/icon)
:id A keyword id for the widget
:layout A layout manager.
:listen vector of args for (seesaw.core/listen)
:location See (seesaw.core/move! :to)
:maximum-size [640 :by 480]
java.awt.Dimension
:minimum-size [640 :by 480]
java.awt.Dimension
:opaque? boolean
:paint See (seesaw.core/paintable)
:popup javax.swing.JPopupMenu
(fn [e]) that returns a seq of menu items
See (seesaw.core/popup)
:preferred-size [640 :by 480]
java.awt.Dimension
:resource A i18n prefix for a resource with keys
[:text :foreground :background :font :icon :tip]
:size [640 :by 480]
java.awt.Dimension
:text A string
Anything accepted by (clojure.core/slurp)
:tip A tooltip string
:transfer-handler See (seesaw.dnd/to-transfer-handler)
:v-text-position :bottom
:center
:top
:valign :bottom
:center
:top
:visible? boolean
:seesaw.core/with Internal use.
user=> (show-events (text))
:action [java.awt.event.ActionListener]
:action-performed
:caret [javax.swing.event.CaretListener]
:caret-update
:component [java.awt.event.ComponentListener]
:component-hidden
:component-moved
:component-resized
:component-shown
:focus [java.awt.event.FocusListener]
:focus-gained
:focus-lost
:key [java.awt.event.KeyListener]
:key-pressed
:key-released
:key-typed
:mouse [java.awt.event.MouseListener]
:mouse-clicked
:mouse-entered
:mouse-exited
:mouse-pressed
:mouse-released
:mouse-motion [java.awt.event.MouseMotionListener]
:mouse-dragged
:mouse-moved
:mouse-wheel [java.awt.event.MouseWheelListener]
:mouse-wheel-moved
:property-change [java.beans.PropertyChangeListener]
:property-change
:selection [javax.swing.event.CaretListener]
:caret-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.