Package tripleplay.ui.layout

Examples of tripleplay.ui.layout.FlowLayout


        protected Element<?> newSection (String text, Layout.Constraint constraint, int bgColor,
            int flags) {
            Element<?> e;
            if (useGroups) {
                Background colorBg = Background.solid(bgColor);
                SizableGroup g = new SizableGroup(new FlowLayout());
                g.addStyles(Style.BACKGROUND.is(colorBg));

                if ((flags & 1) != 0) g.add(getSizer(g, "W+", 10, 0), getSizer(g, "W-", -10, 0));
                if ((flags & 2) != 0) g.add(getSizer(g, "H+", 0, 10), getSizer(g, "H-", 0, -10));
                e = g.setConstraint(constraint);
View Full Code Here


    @Override protected Group createIface () {
        Group root = new Group(
            AxisLayout.vertical().offStretch()).setConstraint(AxisLayout.stretched());

        final Group panel = new Group(new FlowLayout(), Styles.make(Style.BACKGROUND.is(
            Background.bordered(0xFFFFFFFF, 0xff000000, 2).inset(4))));

        Group buttons = new Group(AxisLayout.horizontal());
        for (final ElemType type : ElemType.values()) {
            buttons.add(new Button("Add " + type.toString()).onClick(new UnitSlot() {
View Full Code Here

                minWidth = new Slider(col.minWidth(), 0, 150).setIncrement(1);
        ToggleButton stretch = new ToggleButton("Stretch");
        Button halign = new Button(col.halign().name());

        ColumnEditor () {
            super(new FlowLayout());
            add(slider("Weight:", weight), slider("Min Width:", minWidth), stretch, halign);
            stretch.selected().update(col.isStretch());
            weight.value.connect(new Slot<Float>() {
                @Override public void onEmit (Float event) {
                    col = new ExposedColumn(col.halign(), col.isStretch(), event, col.minWidth());
View Full Code Here

     */
    public Tabs () {
        // use a simple vertical layout
        setLayout(AxisLayout.vertical().gap(0).offStretch());
        initChildren(
            buttons = new Group(new FlowLayout().gaps(3)),
            contentArea = new Group(AxisLayout.horizontal().stretchByDefault().offStretch()).
                setConstraint(AxisLayout.stretched()));

        final Selector tabButtonSelector = new Selector(buttons, null).preventDeselection();
        tabButtonSelector.selected.connect(new Slot<Element<?>> () {
View Full Code Here

TOP

Related Classes of tripleplay.ui.layout.FlowLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.