
de.lessvoid.nifty.examples.defaultcontrols.tabs.TabsControlDialogDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nifty-examples Show documentation
Show all versions of nifty-examples Show documentation
Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.
The newest version!
package de.lessvoid.nifty.examples.defaultcontrols.tabs;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.builder.ControlBuilder;
import de.lessvoid.nifty.builder.ControlDefinitionBuilder;
import de.lessvoid.nifty.controls.tabs.builder.TabGroupBuilder;
import de.lessvoid.nifty.examples.defaultcontrols.common.DialogPanelControlDefinition;
import javax.annotation.Nonnull;
/**
* The ChatControlDialogRegister registers a new control (the whole ChatControlDialog) with Nifty. We can later simply
* generate the whole dialog using a control with the given NAME.
*
* @author void
*/
public class TabsControlDialogDefinition {
@Nonnull
public static final String NAME = "tabsControlDialogControl";
public static void register(@Nonnull final Nifty nifty) {
new ControlDefinitionBuilder(NAME) {{
controller(new TabsControlDialogController());
control(new ControlBuilder(DialogPanelControlDefinition.NAME) {{
control(new TabGroupBuilder("tabs") {{
height("100%");
}});
}});
}}.registerControlDefintion(nifty);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy