EnginePanel.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:DigitalMediaServer 作者:
/**
 * Creates a new instance using the specified parameters.
 *
 * @param player the {@link Player} this panel is to represent.
 * @param orientation the current {@link ComponentOrientation}.
 * @param engineSettings the settings panel for this {@link Player} or
 *            {@code null}.
 * @param configuration the {@link PmsConfiguration}.
 * @param tabListenerRegistrar the {@link TranscodingTabListenerRegistrar}.
 */
public EnginePanel(
    @Nonnull Player player,
    @Nonnull ComponentOrientation orientation,
    @Nullable JComponent engineSettings,
    @Nonnull PmsConfiguration configuration,
    @Nullable TranscodingTabListenerRegistrar tabListenerRegistrar
) {
    super(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    if (player == null) {
        throw new IllegalArgumentException("player cannot be null");
    }
    if (orientation == null) {
        throw new IllegalArgumentException("orientation cannot be null");
    }
    this.player = player;
    this.orientation = orientation;
    this.engineSettings = engineSettings;
    this.configuration = configuration;
    this.cardListenerRegistrar =
        tabListenerRegistrar == null ?
            null :
            new CardListenerRegistrar(tabListenerRegistrar, this);
    build();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号