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>
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
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier 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, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, 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
-