All Downloads are FREE. Search and download functionalities are using the official Maven repository.

swingtree.UIForMenuItem Maven / Gradle / Ivy

package swingtree;


import javax.swing.*;
import java.util.Objects;

/**
 *  A SwingTree builder node designed for configuring {@link JMenuItem} instances.
 */
public final class UIForMenuItem extends UIForAnyMenuItem, M>
{
    private final BuilderState _state;

    UIForMenuItem( BuilderState state ) {
        Objects.requireNonNull(state);
        _state = state;
    }

    @Override
    protected BuilderState _state() {
        return _state;
    }
    
    @Override
    protected UIForMenuItem _newBuilderWithState(BuilderState newState ) {
        return new UIForMenuItem<>(newState);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy