/** @param setVisDefaults if true default vis spacing defaults will be set */ public VisTable (boolean setVisDefaults) { super(VisUI.getSkin()); if (setVisDefaults) TableUtils.setSpacingDefaults(this); }
/** * @param targetToDisable target actor that will be disabled if form is invalid. Eg. you can pass form Confirm button. * May be null. * @param messageLabel label that text will be changed if from is valid or invalid. May be null. */ public SimpleFormValidator (Disableable targetToDisable, Label messageLabel, String styleName) { this(targetToDisable, messageLabel, VisUI.getSkin().get(styleName, FormValidatorStyle.class)); }
/** * @param firstWidget May be null. * @param secondWidget May be null. */ public VisSplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, String styleName) { this(firstWidget, secondWidget, vertical, VisUI.getSkin().get(styleName, VisSplitPaneStyle.class)); }
public VisList (String styleName) { super(VisUI.getSkin(), styleName); init(); }
public VisDialog (String title, WindowStyle windowStyle) { super(title, windowStyle); this.skin = VisUI.getSkin(); setSkin(skin); initialize(); }
public VisCheckBox (String text, boolean checked) { this(text, VisUI.getSkin().get(VisCheckBoxStyle.class)); setChecked(checked); }
public MenuItem (String text, ChangeListener changeListener) { this(text, (Image) null, VisUI.getSkin().get(MenuItemStyle.class)); addListener(changeListener); }
public VisDialog (String title) { super(title); this.skin = VisUI.getSkin(); setSkin(skin); initialize(); }
public VisImageTextButton (String text, String styleName, Drawable imageUp, Drawable imageDown) { super(new VisImageTextButtonStyle(VisUI.getSkin().get(styleName, VisImageTextButtonStyle.class))); style.imageUp = imageUp; style.imageDown = imageDown; init(text); }
public LinkLabel (CharSequence text, int alignment) { super(text, VisUI.getSkin().get(LinkLabelStyle.class)); setAlignment(alignment); init(text); }
/** * @param styleName skin style name * @param title chooser window title * @param mode whether this chooser will be used to open or save files */ public FileChooser (String styleName, String title, Mode mode) { super(title); this.mode = mode; style = VisUI.getSkin().get(styleName, FileChooserStyle.class); sizes = VisUI.getSizes(); init(null); }
public VisTextButton (String text, ChangeListener listener) { super(text, VisUI.getSkin().get(VisTextButtonStyle.class)); init(); addListener(listener); }
public VisTextButton (String text, String styleName, ChangeListener listener) { super(text, VisUI.getSkin().get(styleName, VisTextButtonStyle.class)); init(); addListener(listener); }
public LinkLabel (CharSequence text, Color textColor) { super(text, VisUI.getSkin().get(LinkLabelStyle.class)); setColor(textColor); init(text); }
public VisImageButton (Drawable imageUp, Drawable imageDown, Drawable imageChecked) { super(new VisImageButtonStyle(VisUI.getSkin().get(VisImageButtonStyle.class))); style.imageUp = imageUp; style.imageDown = imageDown; style.imageChecked = imageChecked; init(); }
private Tooltip (Builder builder) { super(true); TooltipStyle style = builder.style; if (style == null) style = VisUI.getSkin().get("default", TooltipStyle.class); init(style, builder.target, builder.content); if (builder.width != -1) { contentCell.width(builder.width); pack(); } }
/** * @param directory starting chooser directory * @param mode whether this chooser will be used to open or save files */ public FileChooser (FileHandle directory, Mode mode) { super(""); this.mode = mode; getTitleLabel().setText(TITLE_CHOOSE_FILES.get()); style = VisUI.getSkin().get(FileChooserStyle.class); sizes = VisUI.getSizes(); init(directory); }
private void addNormalWidgets () { Skin skin = VisUI.getSkin(); Label label = new Label("Lorem \nipsum \ndolor \nsit \namet", skin); Label label2 = new Label("Consectetur \nadipiscing \nelit", skin); VisTable table = new VisTable(true); VisTable table2 = new VisTable(true); table.add(label); table2.add(label2); SplitPane splitPane = new SplitPane(table, table2, false, skin); add(splitPane).fill().expand(); }