Skip to content

API | ResponsiveLayout

Jarek Toro edited this page Nov 8, 2016 · 3 revisions

Class ResponsiveLayout

This is at the core of the layout, its only purpose is to hold the ResponsiveRow objects @Viewport("width=device-width, initial-scale=1") this is required and should be above you UI.class

Methods

  • setScrollable(boolean scrollable)

    • If you just call .setsizeFull() then not only will it make the ResponsiveLayout fill its parent but it will also set the overflow to hidden which inhibits scrolling.

    • This is particularly important when the ResponsiveLayout is the core layout of the whole app. This methods allows for scrolling

  • addRow(Responsive row)

    • Adds a row to the layout similar to .addComponent(Component component).
  • setContainerType(ContainerType containerType)

    • Gives the Layout a FIXED or FLUID style

Convenience Methods

  • addRow() -> ResponsiveRow
    • Convenience Method that add a row to itself then returns the Row.
    • Basically this method does this for you
        ResponsiveRow row = new ResponsiveRow();
        self.addRow(row);
        return row;
    • Very handy when used with ResponsiveRow convenience methods.
Clone this wiki locally