Module is.codion.swing.common.ui
Interface MenuItemBuilder<C extends JMenuItem,B extends MenuItemBuilder<C,B>>
- All Superinterfaces:
ButtonBuilder<Void,
,C, B> ComponentBuilder<Void,
C, B>
- All Known Subinterfaces:
MenuBuilder
public interface MenuItemBuilder<C extends JMenuItem,B extends MenuItemBuilder<C,B>>
extends ButtonBuilder<Void,C,B>
Builds a JMenuItem.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> builder()
static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> builder
(Control.Builder controlBuilder) static <C extends JMenuItem,
B extends MenuItemBuilder<C, B>>
MenuItemBuilder<C,B> Methods inherited from interface is.codion.swing.common.ui.component.button.ButtonBuilder
action, actionListener, borderPainted, buttonGroup, contentAreaFilled, control, control, disabledIcon, disabledSelectedIcon, focusPainted, horizontalAlignment, horizontalTextPosition, icon, iconTextGap, includeText, margin, mnemonic, multiClickThreshold, pressedIcon, rolloverEnabled, rolloverIcon, rolloverSelectedIcon, selected, selectedIcon, text, verticalAlignment, verticalTextPosition
Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValue, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
-
Method Details
-
builder
- Type Parameters:
B
- the builder typeC
- the component type- Returns:
- a builder for a JMenuItem
-
builder
static <C extends JMenuItem,B extends MenuItemBuilder<C, MenuItemBuilder<C,B>> B> builder(Action action) - Type Parameters:
B
- the builder typeC
- the component type- Parameters:
action
- the button action- Returns:
- a builder for a JButton
-
builder
static <C extends JMenuItem,B extends MenuItemBuilder<C, MenuItemBuilder<C,B>> B> builder(Control control) - Type Parameters:
B
- the builder typeC
- the component type- Parameters:
control
- the button control- Returns:
- a builder for a JButton
-
builder
static <C extends JMenuItem,B extends MenuItemBuilder<C, MenuItemBuilder<C,B>> B> builder(Control.Builder controlBuilder) - Type Parameters:
B
- the builder typeC
- the component type- Parameters:
controlBuilder
- the button control builder- Returns:
- a builder for a JButton
-