/**
* 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();
}
EnginePanel.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:DigitalMediaServer
作者:
评论列表
文章目录