Package net.eksb.kswingutil.ext
Class ExtKt
-
- All Implemented Interfaces:
public final class ExtKt
-
-
Method Summary
Modifier and Type Method Description final static Unitbind(JLabel $self, Property<String> prop)Bind the supplied Property to this JLabel. final static <T extends Any> Unitbind(JComboBox<T> $self, MutableProperty<T> property)Bind the supplied MutableProperty to this JComboBox. final static JSeparatorseparator(Container $self, Object constraints, Integer alignment, Function1<JSeparator, Unit> block)final static JPanelpanel(Container $self, Object constraints, Function1<JPanel, Unit> block)final static ComponenthorizontalGlue(Container $self)final static UnitemptyBorder(JComponent $self, Integer size)final static JLabellabel(Container $self, Object constraints, String text, Function1<JLabel, Unit> block)final static <T extends Any> JComboBox<T>combobox(Container $self, Object constraints, Function1<JComboBox<T>, Unit> block)final static <T extends Any> Unitmodel(JComboBox<T> $self, Array<T> values)final static <T extends Any> Unitrenderer(JComboBox<T> $self, Function6<DefaultListCellRenderer, JList<T>, T, Integer, Boolean, Boolean, Component> block)final static JButtonbutton(Container $self, Object constraints, String text, Function1<JButton, Unit> block)-
-
Method Detail
-
bind
final static Unit bind(JLabel $self, Property<String> prop)
Bind the supplied Property to this JLabel. This label's value is immediately set from the property's value. Then changes to the property are propagated to this label.
-
bind
final static <T extends Any> Unit bind(JComboBox<T> $self, MutableProperty<T> property)
Bind the supplied MutableProperty to this JComboBox. This combobox's value is immediately set from the property's value. Then changes to either are propagated to the other.
-
separator
final static JSeparator separator(Container $self, Object constraints, Integer alignment, Function1<JSeparator, Unit> block)
-
horizontalGlue
final static Component horizontalGlue(Container $self)
-
emptyBorder
final static Unit emptyBorder(JComponent $self, Integer size)
-
label
final static JLabel label(Container $self, Object constraints, String text, Function1<JLabel, Unit> block)
-
combobox
final static <T extends Any> JComboBox<T> combobox(Container $self, Object constraints, Function1<JComboBox<T>, Unit> block)
-
renderer
final static <T extends Any> Unit renderer(JComboBox<T> $self, Function6<DefaultListCellRenderer, JList<T>, T, Integer, Boolean, Boolean, Component> block)
-
-
-
-